GeneralPDFLaTeX: log file with 0 pages but correct file output

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kaisquared
Posts: 14
Joined: Tue Jun 03, 2008 10:56 pm

PDFLaTeX: log file with 0 pages but correct file output

Post by kaisquared »

Hello,

I've got a new question: sometimes, when I compile files with pdf latex (texniccenter), the final line of the log file says
LaTeX-Results: 0 Error(s), n Warning(s), 0 Bad Box(es), 0 Page(s)
Yet the output file is perfectly functional and everything is fine. I should also add that when it happens, restarting texniccenter does not help, and that it only happens with some files.

Do you know where this problem comes from, if it is a simple bug?

Thanks!

Recommended reading 2024:

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

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

kaisquared
Posts: 14
Joined: Tue Jun 03, 2008 10:56 pm

Re: PDFLaTeX: log file with 0 pages but correct file output

Post by kaisquared »

Actually I might have a hint of an answer. I think it has to do with the length of the file name.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

PDFLaTeX: log file with 0 pages but correct file output

Post by localghost »

kaisquared wrote:Actually I might have a hint of an answer. I think it has to do with the length of the file name.
Be more precise. Provide the source and/or log file as attachment. Attach also external files if necessary.


Best regards
Thorsten¹
kaisquared
Posts: 14
Joined: Tue Jun 03, 2008 10:56 pm

Re: PDFLaTeX: log file with 0 pages but correct file output

Post by kaisquared »

Try to compile a file which name is 36 character long (extension not included).

For example try the name "abcdefghijklmnopqrstuvwxyz0123456789". If your PDFLaTeX compilator works like mine, your file will compile normally, regardless of the content, but the final line of the log will state 0 page.

All the rest will be absolutely normal and functionalm, including the output PDF.

Then try with the same file, but remove one character. Things should now be back to usual.

Maybe the maximum string length for the page count is limited. It's surprising. As the compilation works except for this, it means the file name is correctly stored for all other purposes.
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: PDFLaTeX: log file with 0 pages but correct file output

Post by phi »

Does not work on my system (pdfTeX 3.141592-1.40.3-2.2), even file names with 200 characters don't show this behavior.
kaisquared
Posts: 14
Joined: Tue Jun 03, 2008 10:56 pm

Re: PDFLaTeX: log file with 0 pages but correct file output

Post by kaisquared »

OK, I think it's even sillier than this. It's not the compiler's fault, but TeXnicCenter's.

The log file in itself doesn't display the recap line with the number of errors, warnings, pages. It is TeXnicCenter which does.

What's your configuration? I bet we don't use the same editor.

Vista, MikTeX 2.7 and TeXnicCenter Beta 7.50 for me.
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

PDFLaTeX: log file with 0 pages but correct file output

Post by Montag »

kaisquared wrote:Try to compile a file which name is 36 character long (extension not included).

For example try the name "abcdefghijklmnopqrstuvwxyz0123456789". If your PDFLaTeX compilator works like mine, your file will compile normally, regardless of the content, but the final line of the log will state 0 page.

All the rest will be absolutely normal and functionalm, including the output PDF.

Then try with the same file, but remove one character. Things should now be back to usual.

Maybe the maximum string length for the page count is limited. It's surprising. As the compilation works except for this, it means the file name is correctly stored for all other purposes.
I found this throug G00gle via

Code: Select all

latex texniccenter zero pages output
and kaisquared is correct. I had this problem too, but once I've shortened the .tex-file's name, it worked again.
Although this is more than 2 years ago, thank you!
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply