Anki error message when i use latex

I wanted to use Anki to learn my math lessons, so I had to use MiKTeX but after installing the necessary programs an error message was displayed. I searched on different forums but the solution didn’t work for me so here is my error message and i don’t understand if someone can help me.

This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.7)
entering extended mode
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-09-03>
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
For additional information on amsmath, use the `?’ option.

-dvips.def) (tmp.aux)

! LaTeX Error: \begin{math} on input line 9 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.

l.10 \end{document}

! Missing inserted. <inserted text>
l.10 \end{document}

[1] (tmp.aux) )
(\end occurred inside a group at level 1)

semi simple group (level 1) entered at line 9 (\begingroup)

bottom level

(see the transcript file for additional information)
Output written on tmp.dvi (1 page, 300 bytes).
Transcript written on tmp.log.

Looks like you simply didn’t close the math environment. If you want more details, you have to provide the actual LaTeX input.

oh thank you very much!
I started the latex this morning and so I didn’t pay attention that I needed a terminal to close my line. I was in a hurry and I didn’t follow the tutorials properly.

That seems to have been ambiguous. What I meant was: When you write \begin{equation} you have to write \end{equation} as well at some point. (Same with the shorthand $$.)
However, since this is not problem with Anki but with LaTeX, there are more suitable places to ask about this. But like you said, a proper LaTeX tutorial will probably clear everything up. :slight_smile:

1 Like