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:
Answered
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Last query:
2011-09-21
Last reply:
2011-09-21
Jendrik Seipp (jendrikseipp) said : #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.

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:
> https://answers.launchpad.net/rednotebook/+question/171904
>
> Status: Open => Answered
>
> 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.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/rednotebook/+question/171904/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/rednotebook/+question/171904
>
> You received this question notification because you asked the question.

Jendrik Seipp (jendrikseipp) said : #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>
     </math>
'''

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².

Can you help with this problem?

Provide an answer of your own, or ask Michael Anderson for more information if necessary.

To post a message you must log in.