Error with cloze trig function flashcard

When trying to study this card, it is not shown properly. Could you please help me? (images as reference).

{{c1::<anki-mathjax>\cos(x)</anki-mathjax>}} =
{{c2::<anki-mathjax>\Sigma_{i=0}^{\infty}\frac{(-1)^{i}x^{2i}}{(2i)!}</anki-mathjax>}} =
{{c3::<anki-mathjax>1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!}+\ldots</anki-mathjax>}}


Could you try moving the cloze inside the mathjax instead? Change ({{c1::\(Text\)}} to \({{c1:Text}}\)

Ah, just noticed that classic issue of cloze interfering with MathJax closing brackets. Cloze requires there to be a double brace without separation and it searches for the first occurence. Now, because of this portion x^{2i}}, the cloze is closed off instead of MathJax function being clozed. To fix this, separate your }} as } } (MathJax ignores all spaces between braces, so this should work)

1 Like

Yeah, the lack of space in }} was the problem. Thank you so much!