# A question about math and equation support

Asked by Michael Anderson on 2011-09-21

This software seems to use a wiki like interface. Is there any support for the entering of equations? I'm trying to use this as a digital lab notebook of sorts and I'd like to be able to have this functionality.

## Question information

Language:
English Edit question
Status:
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Last query:
2011-09-21
2011-09-21
 Jendrik Seipp (jendrikseipp) said on 2011-09-21: #1

You can enter latex equations with the '' and ''' markup (2 and 3
single-quotes). 2 single quotes for a one-line formula and 3 single
quotes for a paragraph:

''$a^2$''

'''
$$\sum_{i=1}^{n} i = \frac{n \cdot (n+1)}{2}$$
$$a^2 + b^2 = c^2$$
'''

The formula will however only be rendered in the latex export, not in
the preview or html or pdf export.

 Michael Anderson (michael-danderson) said on 2011-09-21: #2

Would it be possible to implement the mediawiki functionality (see below) so these could be rendered in the RedNotebook Preview?

http://en.wikipedia.org/wiki/Help:Displaying_a_formula

Thanks,

M﻿

On Sep 21, 2011, at 09:20 AM, Jendrik Seipp <email address hidden> wrote:

> Your question #171904 on RedNotebook changed:
>
>
> Jendrik Seipp proposed the following answer:
> You can enter latex equations with the '' and ''' markup (2 and 3
> single-quotes). 2 single quotes for a one-line formula and 3 single
> quotes for a paragraph:
>
> ''$a^2$''
>
> '''
> $$\sum_{i=1}^{n} i = \frac{n \cdot (n+1)}{2}$$
> $$a^2 + b^2 = c^2$$
> '''
>
> The formula will however only be rendered in the latex export, not in
> the preview or html or pdf export.
>
> --
> know that it is solved:
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
>

 Jendrik Seipp (jendrikseipp) said on 2011-09-21: #3

The mediawiki math functionality is mediawiki specific and requires an
additional program that converts the formula into an image. Probably in
some future RedNotebook version it will be possible to enter and preview
latex formulas directly. For now you can use latex formulas for latex
exports or MathML for html exports. MathML is only rendered correctly in
firefox at the moment though. Here is an example (untested):

'''
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup><mi>a</mi><mn>2</mn></msup>
<mo>+</mo>
<msup><mi>b</mi><mn>2</mn></msup>
<mo>=</mo>
<msup><mi>c</mi><mn>2</mn></msup>
</mrow>
[/itex]
'''

If you enter this (with the single quotes) in RedNotebook and export it
to html then open it in firefox you should see a² + b² = c².