Certain latex commands work in the Anki editor, but they show an error when actually previewed. I have spent some time on downloading MikeTex and various packages etc., hoping it would work on anki but it didn’t work and I am hoping there is a straight-forward way to fix this.
also, if the problem is that I haven’t installed the required anki packages to use the commands, how come it renders perfectly in the editor but not in preview?
this is my anki card document preamble