Theses, Books, Title pagesOrder to compile a Latex document

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Order to compile a Latex document

Post by Colin93 »

Hi everyone

I have a Latex internship reports containing : main.tex, acknowledgements.tex, abstract.tex, listofsymbols.tex, Chapter1.tex, Chapter2
tex, references.bib and aappendix.tex

I know this document works but I can't get it to work. What order do I compile them ?

Recommended reading 2024:

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

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

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Order to compile a Latex document

Post by Johannes_B »

This should be explained in eveery introduction to LaTeX. You have to compile the main file by calling pdflatex main or hit the button in your editor.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Order to compile a Latex document

Post by cgnieder »

Colin93 wrote:What order do I compile them?
The usual order is this:
  1. pdflatex
  2. any auxiliary program: biber (or bibtex, depending on how the bibliography is built), makeindex (if an index is used), makeglossaries (if glossaries is used), …
  3. pdflatex (at least twice)
Regards
site moderator & package author
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Re: Order to compile a Latex document

Post by Colin93 »

Thankyou !
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: Order to compile a Latex document

Post by cgnieder »

Keep in mind that you need to repeat this if changes like new index entries or new citations are added. So when you've finished your document you should repeat the whole compilation process.

You should also take a look at the log file every now and then because it often contains messages telling to recompile.

Regards
site moderator & package author
Post Reply