The TeX system

TeX is the programming language (Donald Knuth) that provides the typesetting instructions. Later, a simplified version of TeX, known as LaTeX (Leslie Lamport) was released. LaTeX is markup language, like HTML and Markdown. Authors enter both the document content and markup commands.

Installing LaTeX

One must install TeX, the Computer Modern fonts and then LaTeX, with any LaTeX extensions (known as LaTeX packages). Most LaTeX installations these days do this automatically.

A LaTeX project

A project is typically composed of:

  • Source files: extension tex, these contain the document content and markup commands
  • Class files: extension cls, these define the visual layout of all document elements and are always declared at the beginning of a source file when required
  • Auxiliary files: extension aux, these store e.g. cross-references and citations
  • Log files: extension log, these record warnings and messages from a typesetting (document composition) session

Authors typically update and save the source file (not the auxiliary file), then typeset the document. LaTeX will use the auxiliary file from the previous session (if it exists) and usually build a PDF. It then updates the auxiliary file. (Consequently, any changes to referencing will not normally appear until the author typesets the document twice).