Render LaTeX equations in preview

Bug #851471 reported by mroe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
RedNotebook
Fix Released
Wishlist
Jendrik Seipp

Bug Description

When inputting the following into a note:
''$2^x$''
I would expect to see a LaTeX formula when previewing, however, this is not the case in my experience.
I have attached my configuration file.

Revision history for this message
mroe (mitchellroe-236) wrote :
Revision history for this message
mroe (mitchellroe-236) wrote :

I forgot to include my log and version numbers.
My log is attached; the version of RedNotebook is 1.1.8, and here's the relevant uname info:
Linux 2.6.40.4-5.fc15.x86_64 GNU/Linux

Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

This is expected. You will only see the correct rendering in the rendered latex export (with pdflatex). I will keep this bug open as a wishlist bug.

Changed in rednotebook:
importance: Undecided → Wishlist
summary: - LaTeX equations not displaying correctly
+ Render LaTeX equations in preview
Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

I have looked into this and mathjax seems to be the best alternative here. However I wouldn't want to distribute mathjax with RedNotebook. Using the remote mathjax installation doesn't work reliably and will of course require an internet connection.

I just tried it and it seems inserting MathML will work, of course it's XML representation isn't exactly concise ;) However you will get a nice preview. Try inserting the following example from wikipedia:

'''
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>x</mi>
    <mo>=</mo>
    <mfrac>
      <mrow>
        <mo form="prefix">&#x2212;<!-- &minus; --></mo>
        <mi>b</mi>
        <mo>&#x00B1;<!-- &PlusMinus; --></mo>
        <msqrt>
          <msup>
            <mi>b</mi>
            <mn>2</mn>
          </msup>
          <mo>&#x2212;<!-- &minus; --></mo>
          <mn>4</mn>
          <mo>&#x2062;<!-- &InvisibleTimes; --></mo>
          <mi>a</mi>
          <mo>&#x2062;<!-- &InvisibleTimes; --></mo>
          <mi>c</mi>
        </msqrt>
      </mrow>
      <mrow>
        <mn>2</mn>
        <mo>&#x2062;<!-- &InvisibleTimes; --></mo>
        <mi>a</mi>
      </mrow>
    </mfrac>
  </mrow>
</math>
'''

Changed in rednotebook:
status: New → Confirmed
Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

Eastern comes early this year ;) Formula support has now been added to the RedNotebook development code. Check it out: https://answers.launchpad.net/rednotebook/+faq/1925 Does it work for you?

Changed in rednotebook:
status: Confirmed → Fix Committed
assignee: nobody → Jendrik Seipp (jendrikseipp)
Revision history for this message
Stefan Meir (spamtostefan) wrote :

Jendrik,
these are great news. Latex-formulae work fine here (Ubuntu 12.04, v.1.4.0 from ppa:rednotebook/stable)!
Thanks a lot.

Changed in rednotebook:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.