[Tex/LaTex] Texmaker-log file not found

texmaker

I encountered a problem when trying to run pdfLaTeX using Texmaker: I get

log file not found

for the test "hello world" script.

I tried reinstalling MikTeX and Texmaker, but still get the same problem.

Anybody has any idea?

Best Answer

I have "log file not found" errors, but the PDF is successfully generated.

This appears to be caused by the -output-directory=/tmp option in my configuration for the latex executable. Texmaker looks for the logfile in the same directory as your source file.

I was able to solve this by creating an empty file in the same directory as my .tex file.

For example, if your file is called myfile.tex, create an empty file in that same directory called myfile.log. It suppresses the error.

You can also ln -s /tmp/myfile.log ./ in your project directory, which suppresses the error and shows you the error log if you make when you make errors.

I am using Texmaker v3.2 on Ubuntu 12.04.