Open sp-droid opened 1 year ago
The issue comes from what works fine on Latex but doesn't on revealJs. Placing an underscore directly after a normal letter like T, before a multiple symbol subscript doesn't work, we have to leave a space in between. Like this: T _{sun} Not like this: T_{sun}
This doesn't happen with every equation, which could have to do with the fact that i used HTML spacers before and after the ";" in this eq
Thanks for reporting this error and the solution you found. I've ran into similar problems, and I too think these are quirks of the math rendering library used by Reveal.
As of today, Reveal can change which library is used for math rendering (https://revealjs.com/math/#typesetting-libraries). I think we should provide a way to choose which library will be used. Something like this:
[comment]: # (Values should be one of 'katex', 'mathjax2', 'mathjax3'.)
[comment]: # (MATH_RENDERING = 'katex')
(So it's an option of markdown-slides which determines how the Reveal.initialize
call is made).
I'm reopening this issue until I (or somebody else) implements this.
Why isn't this equation rendering?
$$ \Large \mathbf{\ddot{r}} = -\upsilon \phi _EC_R\frac{A}{m}\mathbf{\widehat{r}} \hspace{2mm};\hspace{2mm} \phi _E = \phi 0\left ( \frac{R{sun}}{r{sun}} \right )^2 \hspace{2mm};\hspace{2mm} \phi 0 = \sigma T{sun}^4 $$
Other equations work fine