mathematical formulas display in vr3

49 views
Skip to first unread message

zhaohe wang

unread,
Oct 3, 2020, 11:26:01 AM10/3/20
to leo-editor
It is great to display  mathematical formulas in vr3.

For example:

    $$ \frac{1}{n}\sum\limits_{x,y}\frac{1}{2}(y-Model(x))^2 $$

tbp1...@gmail.com

unread,
Oct 3, 2020, 12:06:37 PM10/3/20
to leo-editor
Yes, it is great, isn't it?  Are you asking how to make it work?  You have to set a setting:

For ReStructured Text, the setting is @bool vr3-math-output = True
For Markdown, the setting is @bool vr3-md-math-output = True

You also have to tell it where the MathJax script file is located.  The setting is


It is better - faster to render, and you don't need an internet connection - if you download the files to your own computer.  Then the url would be something like this:

file:///D:/utility/mathjax/es5/tex-chtml.js

This information and more is in the VR3 Help, which you can display from the Plugins/Viewrendered3/About menu item.

Once you have the settings set up, you don't need to write the "$$", etc. if you are usng RsT.  For math in RsT use standard RsT syntax for math:

.. math::

    \sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n} + (\frac{5 - \frac{1}{x}}{4})
    α_t(i) = P(O_1, O_2, … O_t, q_t) = S_i λ

For Markdown, you do use the syntax you showed:

$$\frac{2 \pm \sqrt{7}}{3}$$

zhaohe wang

unread,
Oct 3, 2020, 8:52:11 PM10/3/20
to leo-editor
Thanks a lot! It is excellent!

The inline mode is \\( [(0.2-0)^2 + (0.7-0)^2 + (0.1-1)^2]*0.5=0.67 \\)

Not

$ [(0.2-0)^2 + (0.7-0)^2 + (0.1-1)^2]*0.5=0.67 $

Thomas Passin

unread,
Oct 3, 2020, 10:15:39 PM10/3/20
to leo-editor
That's right;  I only illustrated a math block.  Mathjax does a nice math rendering, doesn't it?
Reply all
Reply to author
Forward
0 new messages