GeneralMain file not compiling anymore

LaTeX specific issues not fitting into one of the other forums of this category.
poeli
Posts: 19
Joined: Tue Mar 11, 2014 10:59 am

Re: Main file not compiling anymore

Post by poeli »

This is getting weird. Now there is no error anymore, but if I compile the mainfile, the only thing appearing is the titlepage.
Sorry for what may seem stupid questions, I'm a totally new person to Latex and it's a learning curve!

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: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Main file not compiling anymore

Post by Stefan Kottwitz »

I guess you have also a line

\end{document}

at the end of your titlepage.tex, remove that line. Also, if you have such lines in other included files. This would cause LaTeX to stop.

No problems with such questions. If I could see all code I could tell more what might help, so I can just respond to each error or observation, one by one. ;-)

Stefan
LaTeX.org admin
poeli
Posts: 19
Joined: Tue Mar 11, 2014 10:59 am

Re: Main file not compiling anymore

Post by poeli »

Thanks, what I have done now is remove all the \begin{document} and \end{document} from each file. Now I can see the pdfs again in the mainfile. What happened though is that all my references to bibliography, and reference to figures and equations (which are in this chapter) have disappeared. Now I only get figure ?? where previously there was figure 2.7 in the text (where i refer to figures, worked previously) for example. Uploading all the files would be a bit crazy as there are lots of figures.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: Main file not compiling anymore

Post by Stefan Kottwitz »

Did you compile several times? You need to compile at least twice to see references. One run to generate the references (written to the .aux files) and in another run they would be read.

Stefan
LaTeX.org admin
poeli
Posts: 19
Joined: Tue Mar 11, 2014 10:59 am

Re: Main file not compiling anymore

Post by poeli »

This solves all of the problems concerning this topic. Still have some issues with some other things but will look things up on the forum first.
Post Reply