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?
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.
Texmaker -> Options/Configure Texmaker/Commands/LaTeX...
click on the folder icon and find this file:
C:/Program Files/MiKTeX 2.9/miktex/bin/x64/latex.exe
Texmaker -> Options/Configure Texmaker/Commands/PdfLaTeX...
find
C:/Program Files/MiKTeX 2.9/miktex/bin/x64/pdflatex.exe
log file not found
– Axel Bregnsbo
Sep 30 '16 at 21:21
I solved the problem in one hour by uninstalling MikTex and Texmaker and reinstalling it again ... (after many hours struggling to solve the problem...)
I already posted this in the comments, but it seems to be a common problem. As @texenthusiast mentions, you want to make sure that you can use pdflatex (or whatever LaTeX compiler you want to use) from command line. The following is for Windows:
First, test it out. Press Windows-Key+R (for Run). Then, type cmd to open Windows' command line terminal. Now type pdflatex. If you, like some people in the comments, encounter command not found, below is a way to fix this. If this is not your problem, the following won't help you (press CTRL+C to exit the program).
c:\Program Files\MiKTeX 2.9\miktex\bin\x64\.Good luck!
I was using LaTeX on ubuntu initially. It was running nicely but after installation of Mint I found this error and solved by installing TeX Live for linux platform from www.tug.org/texlive. TeX Live works as platform for TeXMaker.
I had the same problem, but it was solved like this:
In Options->Commands, I didn't use the complete paths, just the names of the commands for latex, pdflatex and xelatex.
I.e. I typed latex -interaction=nonstopmode %.tex and not C:\MikTex\miktex\bin\latex -interaction=nonstopmode %.tex
Before trying this, open command prompt and make sure these commands exist.
I am using Windows XP in an old machine (2007), but the latest versions of MiKTEX and texmaker.
I don't know if this works for you, but you could try...
I solved this problem in latex version of Texmaker by putting a ".tex" extension on the filename, which texmaker doesn't seem to do automatically with "Save As."
So I had "document.v2" as a filename and it gave me this same error, but "document.v2.tex" resolved it.
I was able to resolve this error on Ubuntu 14.04 with TexMaker 4.1 by going to Options -> Settings File -> Reset Settings.
I figured there was a configuration file somewhere that was still linking to the old path after I deleted all the files except the .tex file in my project folder.
In my case, the problem was a double space in the name of the tex file. Replacing it with single space solved the problem completely.
On Windows, there seems to be an issue when the path variable contains a space character.
The defaults in Options -> Configure TexMaker -> Commands were:
latex -interaction=nonstopmode %.tex and pdflatex -synctex=1 -interaction=nonstopmode %.texThis should work because both binaries (latex and pdflatex) are in the PATH environment variable (pdflatex can be run from cmd without the full path). However, and this is my best guess, it seems that Texmaker does not escape the paths properly and having a space in the path does not work. To work around this, you should provide the full commands in the settings, escaping them properly:
"C:\Users\YOUR_USERNAME\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\latex.exe" -interaction=nonstopmode %.tex"C:\Users\YOUR_USERNAME\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\pdflatex.exe" -synctex=1 -interaction=nonstopmode %.texThese paths might differ for you, but at the very least, YOUR_USERNAME must be replaced of course. The main thing is that there is a space, namely in the MiKTeX 2.9 part, making it necessary that there are quotes (") around the path to the binary.
On top of this, we created the .log file manually in the folder. I am not sure if this is necessary after fixing the aforementioned configuration issue.
In my case, the problem was due to the fact that I checked "use build directory" box. This directory did not exist. When I unchecked the box, it all went fine.
I had the same issues and I was able to get it to work as follows. Go to the following menu:
texmaker -> Preferences
In the commands window I unchecked... 'Use a "build" subdirectory for output files". Things started to work after that.
I use Mac and got the same issue in TexMaker "Log File not Found". It was solved by just clicking "Reset Settings"
pdflatex sample2eto get asample2e.pdfdocument to ensure TeX distribution installed properly. BTW Are you using latest version TeXmaker. Save the filename asfilename.texwith.texextension – texenthusiast Jun 04 '13 at 16:02pdflatex sample2eon the command line window, it sayspdflatex is not recognized as an internal or external command, operable program or batch file. – Jun 14 '13 at 03:36