GeneralCan't generate pdf file

General information and discussion about TeXnicCenter
Post Reply
La82
Posts: 18
Joined: Sun Feb 01, 2009 11:48 pm

Can't generate pdf file

Post by La82 »

Hi Everybody,

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

adrian
Posts: 8
Joined: Thu Nov 12, 2009 5:24 pm

Re: Can't generate pdf file

Post by adrian »

I have also run into this problem occasionally. I find that simply
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.
La82
Posts: 18
Joined: Sun Feb 01, 2009 11:48 pm

Re: Can't generate pdf file

Post by La82 »

Hi, thanks for the reply, I tried closing down TeXnicCenter yesterday too since that often solves these strange problems but it didn't work. 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.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Can't generate pdf file

Post by localghost »

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.
Check the settings of the concerned build profile, especially those for the viewer. Presumably the path is wrong.

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
La82
Posts: 18
Joined: Sun Feb 01, 2009 11:48 pm

Re: Can't generate pdf file

Post by La82 »

Hi Thorsten,

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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Can't generate pdf file

Post by localghost »

La82 wrote:[…] I checked the folder where my latex files are lying and no pdf is generated at all. […]
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
Posts: 18
Joined: Sun Feb 01, 2009 11:48 pm

Re: Can't generate pdf file

Post by La82 »

Hi Thorsten,

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 614 times
La82
Posts: 18
Joined: Sun Feb 01, 2009 11:48 pm

Re: Can't generate pdf file

Post by La82 »

Just wanted to add that I looked at the log and tried taking out the \input{VaeksthusEks} since the log said it didn't excist but this didn't help either.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Can't generate pdf file

Post by localghost »

La82 wrote:The compiler shows no errors […]
I think the last lines of the log file say it all.

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!
There are a some other warnings which you should fix.

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.
La82
Posts: 18
Joined: Sun Feb 01, 2009 11:48 pm

Re: Can't generate pdf file

Post by La82 »

Hi Thorsten,

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
Post Reply