Skip to content
protz edited this page Sep 14, 2010 · 14 revisions

Welcome to the LatexIt wiki!

Quick troubleshooting

Install the latest development version from here. If some step fails, it will display the exact command that failed (the output will be “I ran [some command line”]). Then, copy/paste this command in a terminal and run it for yourself. You will be able to see what went wrong. The temporary files won’t be deleted, so that you can reproduce the error!

Detailed troubleshooting

If you’re getting the “convert failed with error N” error message, please use the following procedure to determine what’s wrong.

First, create a file named test.tex and put the contents below in it

\documentclass{article}
\usepackage[utf8x]{inputenc}
\pagestyle{empty}
\begin{document}
Hello, world
\end{document}

We’re going to run the exact same procedure as LatexIt!. Assuming your file is named test.tex, please run

latex -output-directory /tmp -interaction=batchmode test.tex

This should create a test.dvi file in your /tmp directory. If you’re on Windows, replace /tmp with the appropriate location (usually TEMP, which means, for instance, c:\documents and settings\yourusername\local settings\temp).

Now we need to crop the dvi file and convert it to ps.

dvips -o /tmp/test.ps -E /tmp/test.dvi

Finally, and this is where it usually fails, you need to run convert.

convert -units PixelsPerInch -density 300 /tmp/test.ps -trim /tmp/test.png

Possible raisons for failure include:

  • you’re on Windows, and LatexIt found c:\system32\convert.exe instead of ImageMagick’s convert utility. Please double-check in Tools > Addons > LatexIt > Preferences that the path to convert.exe looks like c:\program files\imagemagickQ4blahblahblah\bin\convert.exe
  • you’re on Windows and you’re using a 64-bit version of ImageMagick, please see this thread
Clone this wiki locally