MathJax doesn't render - Cloze note

MathJax doesn’t render is there is no MathJax outside of clozes.

I’ve been trying to create a cloze flashcard: {{c1:: (\Delta H^o_{\text{soln}}) }} = {{c2:: (\Delta H^o_{\text{LE}}) (+ve)}} + {{c3:: (\Delta H^o_{\text{soln}})(-ve)}}

MathJax just doesn’t seem to render no matter what I do (removing spaces, adding spaces, adding text, modifying contents, updating both Anki and AnkiDroid). If I add MathJax outside the clozes everything renders correctly. I haven’t faced this issue with any other notes

Just managed to resolve it somewhat. If I remove \text{} and instead keep wants inside it directly it renders correctly. That’s still not how it’s supposed to work though

However, I now have a new issue, {{c1::Polarising power}} \(\propto\) {{c2::\(\frac{1}{\text{size of cation}}\)}} \(\propto\) {{c3::no of +ve charges on cation}} renders so:

I believe the issue is in the }} after cation, which Anki incorrectly assumes to be the end of the cloze. Any way to resolve this?

Add a space between the curly brackets. Math & Symbols - Anki Manual

1 Like

TIL

I’ve been using MathJax extensively for months and yet I didn’t know this. Lots to learn :slight_smile:

Thanks a lot for your help!

1 Like

Should this information be moved to a better place on that page? As it stands, it’s buried in the LaTeX section, but if it applies equally to MathJax, maybe it should be a separate section?

[I’m asking because I don’t use either one, so I wouldn’t have thought to help someone with that link! :+1:t4:]

2 Likes

To be honest, no. It was a mistake on my part, the fix to my issue is clearly mentioned in the manual

However, a disclaimer at the start of the Cloze Conflicts section that it also occurs with MathJax would help

Yes. Since it applies to anything that uses }} or :: like C++ code, I think it better fits in the cloze section of the manual.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.