That's right;  I only illustrated a math block.  Mathjax does a nice math 
rendering, doesn't it?

On Saturday, October 3, 2020 at 8:52:11 PM UTC-4, zhaohe wang wrote:
>
> 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 $
>
> 在2020年10月4日星期日 UTC+8 上午12:06:37<[email protected]> 写道:
>
>> 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
>>
>> @string vr3-mathjax-url = 
>> https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js 
>>
>> 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}$$
>>
>> On Saturday, October 3, 2020 at 11:26:01 AM UTC-4 [email protected] 
>> wrote:
>>
>>> It is great to display  mathematical 
>>> <https://cn.bing.com/dict/search?q=mathematical&FORM=BDVSP6&mkt=zh-cn> 
>>> formulas 
>>> <https://cn.bing.com/dict/search?q=formulas&FORM=BDVSP6&mkt=zh-cn> in 
>>> vr3.
>>>
>>> For example:
>>>
>>>     $$ \frac{1}{n}\sum\limits_{x,y}\frac{1}{2}(y-Model(x))^2 $$
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f1f18400-ca62-4b71-9901-40bf96d2ed3do%40googlegroups.com.

Reply via email to