\section{...}, and a compiler turns that file into a typeset document, usually a PDF. Because the markup describes what each part is rather than how it looks, LaTeX is widely used for academic papers, theses, books and technical reports, especially those with mathematics.
LaTeX is not a word processor: you do not format text on screen as you type. (It is also unrelated to latex rubber; the name is usually written with the capitals shown here.)
What LaTeX source and output look like
The source below marks a title, a section and an equation with a label. LaTeX chooses the fonts, numbers the section and the equation, and fills in the reference(1).
what-is-latex.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
The pieces in this file:
- Document class (
article): the overall layout. Others includereport,bookandbeamerfor slides. - Packages (
amsmath,geometry): extensions loaded in the preamble with\usepackage. - Commands and environments (
\section,\begin{equation}): markup for structure, math and references.
Where LaTeX is used
- Mathematics, physics, computer science and engineering papers. Many publishers distribute LaTeX classes for their journals and conferences; TeX Live 2026 includes
IEEEtran,elsarticle,acmartandllncs, for example. - Theses and dissertations, where numbering, cross-references, a table of contents and a bibliography have to stay correct over hundreds of pages.
- Books, lecture notes, slides (Beamer) and CVs, when a consistent layout and plain-text source matter.
LaTeX or a word processor?
LaTeX pays off for long, structured or math-heavy documents. For a one-page letter or a layout where you position every item yourself, a word processor or design tool is usually quicker.
How a .tex file becomes a PDF
- You write a
.texfile in any text editor. - A TeX engine reads it: pdfLaTeX, XeLaTeX or LuaLaTeX. They share the LaTeX syntax and differ in fonts and Unicode handling; Choosing a compiler compares them.
- The engine writes the PDF and a
.logfile with errors and warnings. Cross-references and a table of contents need a second run, and a bibliography also needs a run of BibTeX or Biber.
Where LaTeX comes from
Donald Knuth wrote TeX, the typesetting program underneath. Leslie Lamport wrote LaTeX on top of it in the 1980s as a set of higher-level commands. The current version, LaTeX2e, is maintained by the LaTeX Project; TeX Live 2026 ships the kernel release dated 2026-06-01.Next steps
- Create your first LaTeX document: a minimal file, then a title, sections, math and a package
- Learn LaTeX in 30 minutes
- Choosing a compiler
main.tex.