I recently upgraded to Anki 2.1.44 on my Mac, and the ! macro is no longer working in MathJax commands.

For example:

\(X \perp ! ! ! \perp Y\)

no longer generates the “independent of” symbol ⫫.

I saw that Anki has upgraded to using MathJax 3, as mentioned here:

I have recently upgrade Anki to 2.1.43, and latex rendered with mathjax doesn’t work anymore with macros.
Previously, if I included
<script>
MathJax.Hub.Config({
TeX: {
Macros: {
d: "\\mathrm{d}"
}
}
})
</script>
in the template, I could use \d in a mathjax source, and it would show a right d.
After the update, it just shows \d in red, as if it was an undefined command…
But I tried out the macro on my own computer and a MathJax 3 demo page:

https://mathjax.github.io/MathJax-demos-web/input-tex2chtml.html

and it still works there.

Any insights would be greatly appreciated! Thanks!

Have you tryed applying the solution provided in the post you have linked?

1 Like

None of the linked solutions seem relevant to my problem.

I’m not trying to define a new macro. I’m trying to use the negative space command (\!) that is built into LaTeX and MathJax. This command works on my local use of MathJax and in the the MathJax 3 site hosted by MathJax that I linked to.

But not in Anki 2.1.44.

dae
June 1, 2021, 12:55am
4
Seems to work fine for me in the latest alphas.

Ah, perfect!

I just upgraded to:

anki-2.1.45+alpha3_f91f00a5

and it is working now.

Thanks so much for your help!