General ⇒ Can't generate pdf file
Can't generate pdf file
I have been working all day in TeXnicCenter without any problems. Then all of a sudden I can't generate a pdf file. The compiler shows no errors, I havn't changed in the template and the output profile: Latex->Pdf is guided to the correct path, but then again, I have been able to generate all day so I would be strange otherwise.
I get the folowing pop up:
[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Cannot Execute the Command.
I Hope you guys can help me,
Lonnie
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: Can't generate pdf file
exiting and restarting TeXnicCenter solves the problem. (I experienced
this problem on a Windows XP machine. It doesn't happen very often,
but invariably, restarting helps. There are other posts about this,
I think.) I have never taken the time to try and narrow down the
exact problem.
Please post back whether this helps for you.
Re: Can't generate pdf file
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Can't generate pdf file
Check the settings of the concerned build profile, especially those for the viewer. Presumably the path is wrong.La82 wrote:[…] I have tried searchin the net for answers, but the error seems to be experienced by people who have downloaded a new version of acrobat, miktex or texniccenter and therefore have changed the pdf-path.
I think the PDF output is created very well. Move to the folder where you have your source file and see if you can find the resulting PDF file.
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Can't generate pdf file
The path to the viewers are all correct, but wouldn't it also have been strange that they should have gone "bad" all of a sudden when I havn't downloaded any updates of any kinds?
I checked the folder where my latex files are lying and no pdf is generated at all.
Lonnie
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Can't generate pdf file
So there must be a hint in the log file. Prepare a short but full example and attach it to your next post together with the log file.La82 wrote:[…] I checked the folder where my latex files are lying and no pdf is generated at all. […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Can't generate pdf file
I don't know what is important, so I'm sending you the entire log, I hope it is ok.
Lonnie
- Attachments
-
- template-of-report.log
- (39.49 KiB) Downloaded 618 times
Re: Can't generate pdf file
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Can't generate pdf file
I think the last lines of the log file say it all.La82 wrote:The compiler shows no errors […]
Code: Select all
LaTeX Warning: File `Figurer/Inf12G.png' not found on input line 24.!pdfTeX error: (file Figurer/Inf12G.png): cannot find image file==> Fatal error occurred, no output PDF file produced!
Code: Select all
LaTeX Font Warning: Command \normalsize invalid in math mode on input line 75.LaTeX Font Warning: Command \normalsize invalid in math mode on input line 75.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Can't generate pdf file
I have been reading the wrong log file, but as you said it was rather straight foreward. Thanx alot for the help, it runs like a charm now.
Lonnie