Skip to main content
LaTeX is a document preparation system built on the TeX typesetting program: you write your text in a plain-text file with markup commands such as \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 include report, book and beamer for 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, acmart and llncs, 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

  1. You write a .tex file in any text editor.
  2. 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.
  3. The engine writes the PDF and a .log file 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.
To compile locally you install a TeX distribution, a bundle of the engines and packages, such as TeX Live or MiKTeX. A browser-based editor compiles on a server instead.

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

To try the source above without installing anything, start from the Basic Article template in LaTeX Cloud Studio and paste it into main.tex.