GeneralTeXnicCenter | PDF document cannot be opened

General information and discussion about TeXnicCenter
Post Reply
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

TeXnicCenter | PDF document cannot be opened

Post by rainz »

Hi everyone,

I am using TexnicCenter to write my document. Things were going just fine when suddenly it wouldn't open the pdf anymore. There were errors before however, it perfectly compiled and opened the pdf but somehow it started not to open even though I have decreased the number of errors. I need help urgently!!
Last edited by Stefan Kottwitz on Sun Apr 22, 2012 1:32 pm, edited 1 time in total.
Reason: title changed

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: TeXnicCenter | PDF document cannot be opened

Post by Stefan Kottwitz »

Hi rainz,

welcome to the board!

I changed the topic title. "Urgent help needed!" doesn't belong to a title. Just try to choose a title which shortly describes the problem or question in the best possible way.

Also, provide some further information, besides that it doesn't work any more - error messages for example. You also post the .log file as attachment to a post. Once we got some information, we could very probably help.

Stefan
LaTeX.org admin
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: TeXnicCenter | PDF document cannot be opened

Post by rainz »

Thanks for the heads up Stefan how can I copy/paste the error log.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: TeXnicCenter | PDF document cannot be opened

Post by Stefan Kottwitz »

Below the edit text field, when you are editing, there's a link "Upload attachment". Just click, browse and add your .log file.

Stefan
LaTeX.org admin
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: TeXnicCenter | PDF document cannot be opened

Post by rainz »

log file attached
Attachments
thesis.log
log file
(21.4 KiB) Downloaded 400 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

TeXnicCenter | PDF document cannot be opened

Post by Stefan Kottwitz »

You really need to fix the errors, otherwise it just can happen that no PDF is produced. Just sometimes LaTeX can be convinced to skip the error and to continue, but that's not always possible.

For example line 18:

Code: Select all

E[\epsilon_{t}\left|{x_{t2},...,x_{tk}}] &=& 0
Always, when you use \left, you need to use \right in the same context. Here, you need it before ending the column by &. Either write \right. before the & for an invisible delimiter, or use \big, \Big etc. instead of \left.

Line 49, 50:
Extra alignment tab has been changed to \cr
...
Too many columns in eqnarray environment
...
Misplaced alignment tab character &.
There's something wrong with your eqnarray environment. eqnarray is obsolete, I recommend using align of amsmath instead. See eqnarray vs. align for an explanation.

Line 72:
Misplaced alignment tab character &
Seems also to be an an eqnarray problem. I can tell you details, if you would post this code.

There are more errors need to be fixed. Read the log, locate the problem, try to fix it. If it's too difficult, post a question here with details: error message and problematic code. For different problem, post a different topic.

This is the final error, which probably prevents producing the PDF finally:
! LaTeX Error: \begin{table} on input line 153 ended by \end{document}.
...
\end{document}
Your command was ignored.
You probably forgot to write

Code: Select all

\end{table}
So \end{document} has been ignored, the document is not finished.

Stefan
LaTeX.org admin
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: TeXnicCenter | PDF document cannot be opened

Post by rainz »

thanks a lot I will try to clean the errors hope it works
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: TeXnicCenter | PDF document cannot be opened

Post by rainz »

I have too many bad box errors rather than normal errors and I cannot seem to fix bad box errors starting with \hbox
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: TeXnicCenter | PDF document cannot be opened

Post by rainz »

I think there might be another problem for not opening the pdf because I nearly cleaned all of the errors and bad boxes. My log file does not show why it does not open the document. It opens the pdf but not the document.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

TeXnicCenter | PDF document cannot be opened

Post by Stefan Kottwitz »

The badbox messages are warnings. They don't prevent compilation.

If you would like to see the bad boxes in the output, use draft as class option, i.e. as optional argument to \documentclass. This way bad boxes would be marked by black rules at the margin. Just don't forget to remove the draft option later, or replace it by final.

Stefan
LaTeX.org admin
Post Reply