I'm currently having a problem using TexMaker.

When I'm selecting a section of the document in the structure view, TexMaker jumps to this specific section within the tex document but also displays the error "File not found" and closes the pdf preview in the internal viewer.

This seems to be due to the fact that I'm using a subdirectory for the output files - but I don't seem to be able to find an option fixing this problem.

Any help would be greatly appreciated!

2 Answers 2


I just had this same problem. I was able to solve it by going to my "main.tex" and selecting "Options->Define Current Document as 'Master Document'".

It seems the error was caused because when I selected a chapter/section in the "Structure" pane, or right-clicked and selected "Jump to pdf", it was looking for "current_file.pdf", which didn't exist, instead of "main.pdf".

It's possible that this won't actually serve as a fix for you, but hopefully leaving this as an answer will be useful to someone.

(I don't know if this will work with the "Use a 'build' subdirectory" option, though I imagine it should. I wanted to use that myself, but that feature I found, while perhaps not literally buggy, is too messy to make it worth it: having to manually first create the directory for every project, having to manually edit the command-line options for all pdfLaTeX, XeLaTeX, LuaLaTeX, LaTeXMK, etc.. None of these are big deals, but then again, neither was having a "build" subdirectory, so I just decided to not waste my time.)

  • 2
    You fantastic person you
    – rwolst
    Oct 22, 2016 at 8:38

Just adapt the commands for the pdf viewer (Configure Texmaker -> commands) or use the "Use a 'build' subdirectory..." option for the (pdf)latex command.

  • 2
    Incase if you are the authors of Texmaker, please update your profile to let others know it and it will bring genuinity and weightage to your answers. A friendly suggestion: Do us a favour and change your username to something more telling than "user1234". Mar 11, 2014 at 19:16
  • I'm already using the "Use a 'build' subdirectory" option. Everything there works fine, unless I click on anything in the structure pane to navigate to a specific section of the tex document - then the error is shown and the preview is closed.
    – J K
    Mar 13, 2014 at 9:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .