Latex rendering problems in review window

Hi everyone,
I’m using the Anki Windows app. I have created a lot of cards with latex formulas like \( A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{bmatrix} \).
In the card editor it renders fine, but not in the review window.
Review window:
image
Editor:

Does anyone has a similar problem?
Greetings

Max

When there’s a difference between the note editor and the displayed card, you should always look at the card template.

  • Is there something going on in your card template that is limiting what that field replacement will display?
  • Which of those versions do you see when you click Preview from the note editor? Presumably it’s the same as the study window, but if not, we should consider that too.

Does the issue also exist in the rc version posted in the beta testing section of this forum?

Thank you for your answer.
It is the basic card template I havent changed anything here.
And if I do the formula manually without “\( \)” in the MathJax editor it works also fine in the study window.
Yes, in the preview its the same as in the study window.

I just tried it. Yes its the same.

I suspect it’s a difference between the svg and chtml backends used by the review screen and editing screen. As far as I recall, last time we tried to unify them, we had to back out the change due to it causing regressions.

Ah ok. Thank you very much for your response.
I have just noticed that I can copy and paste the formula block in the edit window then it works for the copied block:

  • Are you using a type-answer note type (or a type-answer field)?
  • What is the difference between the 2 of those in the HTML view of the field in the editor?
1 Like

I use a type-note type.

In the HTML view is the difference:

The problem is solved with find and replace <code>
The <code> came from the fact that I copied the latex code from chatgpt.

Thank you very much for your help

Yeah, that looks like the chatbot gave it to you in a code element so you wouldn’t lose any of the text.

That could cause you problems too, since the type-answer field will strip out all formatting.