I'm using latex to format my Anki cards and ran into an error:
"! LaTeX Error: Cannot determine size of graphic in"
\begin{center}
\includegraphics{supplementary.PNG}\\\relax {{c1::Supplementary angle}}
\end{center}
I'm using TexLive if this helps.
latexexecutable (i.e. pdfLaTeX with DVI output) doesn't work with.pngimages. Try changing the executable topdflatex– Phelype Oleinik Nov 03 '19 at 19:18pdflatexinstead of justlatex. Ah, it seems thatlatexis hard-coded in the program (see here). Try changing that topdflatexin the source of the program. – Phelype Oleinik Nov 03 '19 at 19:42dvipngto a PDF based workflow. – TeXnician Nov 03 '19 at 22:17"pngCommands":the"latex"line to"pdflatex"and as @TeXnician suggested, I changed the"dvipng"to"dvipdfmx"which based on my research what TexLive supports.However, a new problem occurs. The error begins with:
– Vocaloidas Nov 04 '19 at 10:19This is pdfTeX, Version 3.14159265-2.6-1.40.20which seems like a good sign and this seems to be the interesting partOverfull \hbox (1005.7175pt too wide) detected at line 27.1005 pttoo large to fit there (which is a pretty large amount, so it should be visible from the output). If it's the picture, you need to resize it somehow (Sorry, I have no idea how this Anki thingy works). – Phelype Oleinik Nov 04 '19 at 12:49