I asked this question on the tex StackExchange and they suggested we ask here. The StackExchange post has better formatting than this email.
We use MathJax 2.7 on our course website, which is implemented in Jekyll and hosted on GitHub pages. For small, straightforward equations, MathJax works great but I've never been able to get even slightly more complicated equations to work. I've spent many hours investigating and experimenting, so I thought I'd finally ask here.
For example, the following fails to render:
$$ S_{i} = \begin{cases} X_{1} & \text{if i = 1}\\ \alpha \cdot X_{i} + (1 - \alpha) \cdot S_{i-1} & \text{if i $>$ 1} \end{cases} $$The rendered output in the web browser is literally blank.
When I look at the rendered html, I see:
<p> <span class="MathJax_Preview" style="color: inherit; display: none;"></span> <span id="MathJax-Element-5-Frame" class="mjx-chtml MathJax_CHTML" tabindex="0" data-mathml=" <math xmlns="http://www.w3.org/1998/Math/MathML" />" role="presentation" style="font-size: 113%; position: relative;"> <span id="MJXc-Node-149" class="mjx-math" aria-hidden="true"> <span id="MJXc-Node-150" class="mjx-mrow"></span> </span> <span class="MJX_Assistive_MathML" role="presentation"> <math xmlns="http://www.w3.org/1998/Math/MathML"> </math> </span> </span> <script type="math/tex" id="MathJax-Element-5">% <![CDATA[ S_{i} = \begin{cases} X_{1} & \text{if i = 1}\\ \alpha \cdot X_{i} + (1 - \alpha) \cdot S_{i-1} & \text{if i $>$ 1} \end{cases} %]]> </script> </p>I'm not a LaTeX expert so I often write equations (or at least check them) in online editors like https://www.codecogs.com/latex/eqneditor.php or OverLeaf. They render fine there.
Thanks,
Jon
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/alpine.LRH.2.21.2104281119180.4392%40li375-150.members.linode.com.
<script type="math/tex">% <![CDATA[... your expression...% ]]></script>
<script type="math/tex">% <![CDATA[... your expression...% ]]></script>
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/CAK%3D9EhnSv3-sKuL0H4t1HzHDrGsPKQo%2BEeP_cdwoXNmiE99Tog%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "MathJax Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathjax-users/YKftPSymXOA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/6391CD4A-E1D5-4C7E-8166-A93C42E0FA3F%40gmail.com.
You mentioned that my Jekyll plugin might be the problem? I'm using the "github-pages" gem with the "pmarsceill/just-the-docs" remote theme. Maybe it's the github-pages part that is the problem?
--
You received this message because you are subscribed to a topic in the Google Groups "MathJax Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathjax-users/YKftPSymXOA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/A1D8F217-9A77-47AA-B2A0-5FF15C67571B%40mathjax.org.