39

At the moment I'm having a problem when trying to view my LaTeX file as a PDF. Whether I do it internal or external I both the error "File not found.".

I have no idea what file it means. I've read somewhere it has to with my Acrobat Reader, but I still can't get it fixed. And I think it's worth mentioning that I work on Windows 7, as I've also read that Texmaker on Windows has some bugs.

Any help will be appreciated!

Torbjørn T.
  • 206,688

2 Answers2

34

The "View PDF" button in TeXmaker only opens an already existing file, that has the same basename as your .tex file. Meaning, if you're writing in a file called MyReport.tex, it will look for a file called MyReport.pdf in the same folder as the .tex file, and open this in the specified viewer.

To create a PDF from the source, you have to compile the document. The easiest way to do this is usually to use pdflatex, which in TeXmaker is called with Tools --> pdfLaTeX (shortcut F6), after which you can view the PDF (shortcut F7). There are also buttons on the toolbar for both

Torbjørn T.
  • 206,688
  • 5
    even after pressing f6 i am not getting any output in the pdf reader... please need help... –  Mar 14 '13 at 07:24
  • I have the same problem. I tried opening my tex file in another latex compiling software (Texshop) and it is still not producing a pdf. – esmitex Sep 04 '14 at 08:26
  • @esmitex Do you mean that you get an error when hitting the Typeset button in TeXShop? If so, I don't think you have the same problem, please ask a new question describing what you have tried (preferably in the form of a minimal working example (MWE)) and which error you get. – Torbjørn T. Sep 04 '14 at 08:59
  • 1
    I fixed the problem. I have no idea how. I tried compiling in Latex, pdflatex etc. In the end it created a pdf output when I compiled in Xelatex. – esmitex Sep 04 '14 at 15:02
  • 1
    @esmitex If it worked with xelatex but not with pdflatex, you have probably loaded a package that can only be used with the former, such as fontspec or unicode-math. Depending on package the error message may state this clearly. – Torbjørn T. Sep 04 '14 at 15:19
  • @Nearoo Well, the error is accurate (there is no PDF, so obviously the file cannot be found), though something like "No PDF found, have you compiled the document?" might have been more helpful. You could always direct your complaint directly at the developer though, there is a contact form at the bottom of http://www.xm1math.net/texmaker/ – Torbjørn T. Apr 20 '18 at 11:18
1

For anyone still struggling with this problem, this is what worked for me. I was using \includeonlyframes{current} to compile a single frame. This allows me to compile only frames with the label current. However, none of my frames were labelled as current. Consequently, when I do QuickBuild, TexMaker cannot find any frames with the label current and thus does not generate any pdf (although it compiles). As a result, I got the file not found error, which essentially means that there is not pdf in the first place because of the way I compiled.