Definition · Plain-language
LaTeX
LaTeX is a high-quality document preparation and typesetting system widely used for compiling technical and scientific manuscripts with complex mathematical formulas.
The step most authors miss
Doing CRediT right? Don’t stop at the statement.
A CRediT statement credits you inside one paper. The recognition CRediT was built for happens when those roles are tied to you, persistently. Sign in with your ORCID — free — and claim your CRediT contributions on casrai.org, the home of the standard. They become a verified, portable part of your identity, not a line that disappears into one PDF.
Free: claim your contributions, then export a journal-ready CRediT statement, schema.org structured data, JATS XML, CSV or BibTeX — and preview your public profile. A membership publishes that profile publicly and verifies the journals you serve.
The markup philosophy of LaTeX
LaTeX operates on a declarative markup philosophy rather than the visual design model of traditional word processors. When writing a document, authors focus purely on logical structure — indicating chapters, sections, citations, and emphasis using specific commands. The formatting is determined by class files (.cls) and style packages (.sty) loaded in the preamble. This separation ensures that the visual design remains perfectly consistent throughout the document, freeing the writer from manually adjusting margins, page numbers, or font sizes for headings. It is highly valued in the scientific community because it ensures that document formatting complies exactly with publisher guidelines without manual adjustments.
Preamble and document structure
A LaTeX file is divided into two primary sections: the preamble and the document body. The preamble starts with a document class declaration (such as article, report, or book) and is where packages are loaded to extend functionality, such as amsmath for mathematics or graphicx for images. The body begins with the command begin{document} and contains the actual text. Sections, tables, figures, and lists are wrapped in specific environments, which the compiler parses to generate consistent layouts, cross-references, and lists of tables or figures automatically. This strict structural segregation prevents accidental formatting changes, making long manuscripts highly stable and easy to maintain over multi-year writing projects.
Math rendering and bibliography management
LaTeX is the industry standard for typesetting mathematics and managing academic citations. Its mathematical mode renders equations with typographical precision, handling subscripts, integration signs, and matrices effortlessly. For citations, LaTeX works with BibTeX or BibLaTeX. By referencing a central database file containing bibliographic metadata, authors insert simple citation keys into the text. The compiler then generates the bibliography and formats every in-text citation according to the chosen style, maintaining accuracy even across hundreds of references. This automation prevents mismatch errors between the main text and the bibliography, which is crucial for maintaining academic integrity in research publications and avoiding manual checking of references.
Key facts
At a glance
- Logical separation: separates content creation from the visual formatting layout.
- Math engine: renders complex mathematical formulas and equations with high precision.
- Preamble configuration: document class and package dependencies are defined at the start.
- Automated references: automatically manages page numbers, cross-references, and tables.
- Bibliographic control: works with BibTeX/BibLaTeX to format bibliographies and citations.
- Plain text format: source documents are saved in portable, plain-text files (.tex).
Common misconceptions
What people often get wrong
Often heard: LaTeX is a programming language for writing software.
Actually: LaTeX is a markup language for typesetting and document preparation. While it supports programming logic through macros, its primary purpose is layout design and document structuring.
Often heard: A LaTeX document must be manually formatted page by page.
Actually: LaTeX automates document-wide formatting. Changing a single setting in the preamble or switching the document class instantly reformats the entire document automatically, regardless of its length.
Common questions
FAQ
Why is LaTeX preferred for mathematical typesetting?+
LaTeX uses specialised algorithms designed to optimise spacing, alignment, and sizing of mathematical symbols. This prevents the overlapping and awkward formatting common in standard visual text editors.
What is the difference between TeX and LaTeX?+
TeX is the low-level typesetting engine created by Donald Knuth. LaTeX is a set of high-level macros built on top of TeX by Leslie Lamport, designed to make document structure and command usage much simpler for writers.
Going deeper







