LaTeX Tutorials and Reference: Learn LaTeX Step by Step

A 48-lesson LaTeX course in five languages — from your first document to TikZ — plus a 24-page reference library where every notation gets the exact command, a rendered example and a live editor.

    48 lessons 24 reference topics EN · ZH · RU · JA · KO

    The learning path

    48 LaTeX tutorials in six stages, from the very first document to a book-class thesis with a working bibliography. Read them in sequence and you hold the whole map of LaTeX — every lesson comes with rendered examples, annotated diagrams, real source listings, the mistakes that break it and a live editor.

    Stage 1 · Foundations 8 lessons

    Stage 2 · Text and documents 8 lessons

    LaTeX Font Sizes and Typefaces: Tiny to Huge, Bold, Italic

    LaTeX Font Sizes and Typefaces: Tiny to Huge, Bold, Italic

    Font sizes in LaTeX are ten named rungs on a ladder the class file defines, and typeface changes are three separate attributes: family, series and shape. This lesson gives the exact numbers behind each rung, the declaration-versus-command distinction that decides where a change stops, why bold italic silently comes out bold upright in Computer Modern, and which font packages to load when you want a different look without breaking the mathematics.

    ≈ 18 min read · 7 sections

    Line Breaks and Spacing in LaTeX: What Actually Works

    Line Breaks and Spacing in LaTeX: What Actually Works

    A double backslash ends a line; a blank line ends a paragraph. Those are different operations with different visible results, and most spacing problems in a beginner document come from using the first when the second was meant. This lesson separates the two, lists the four places a forced break is the right tool, names the registers that own your vertical space, and gives the knobs that fix an overfull line without faking a break.

    ≈ 17 min read · 7 sections

    LaTeX Special Characters and Accents: Escape % $ & # _ { }

    LaTeX Special Characters and Accents: Escape % $ & # _ { }

    Percent, dollar, ampersand, hash, underscore, caret, tilde, the braces, the backslash and the math shift are reserved because TeX gives every character a role before your text is set. This lesson explains those roles, the escape for each character and why some of them change behaviour between text and maths, then covers the accent commands, the encodings underneath them, and the three ways to print material that refuses to be typeset.

    ≈ 18 min read · 7 sections

    LaTeX Sectioning and the Table of Contents

    LaTeX Sectioning and the Table of Contents

    Sectioning commands in LaTeX are counters, levels and formatting macros at once, and the table of contents is a file written on one pass and read back on the next. This lesson gives the level numbers that secnumdepth and tocdepth count against, the exact difference a star makes, how to put an unnumbered heading into the contents list, and how to restyle headings with titlesec or KOMA-script without breaking numbering or references.

    ≈ 17 min read · 7 sections

    LaTeX Page Layout: Margins, Paper Size and Line Spacing

    LaTeX Page Layout: Margins, Paper Size and Line Spacing

    TeX lays out one box and everything else on the page is a distance from an edge of the paper to that box, measured after an one-inch offset TeX assumes on its own. This lesson walks the vertical and horizontal stack of lengths, the geometry keys that write them, the paper-size options and driver interaction that decide what comes out of the printer, and the leading and penalty registers that finish the page.

    ≈ 20 min read · 8 sections

    Stage 3 · Mathematics 8 lessons

    Stage 4 · Structure and cross-references 8 lessons

    Stage 5 · Figures, tables and bibliography 8 lessons

    LaTeX Bibliography with biblatex and biber: A Working Setup

    LaTeX Bibliography with biblatex and biber: A Working Setup

    The bibliography is a small build pipeline: your source writes citation keys, biber reads a control file and a .bib database, and the formatted result comes back as a .bbl that LaTeX reads. This page sets that up so it works on the first try, then goes through what each option in biblatex really changes, how names and sorting keys are built, and how to write a driver when a house style insists on something odd.

    ≈ 20 min read · 8 sections

    Stage 6 · Production, macros and packages 8 lessons

    LaTeX Beamer: Building a Presentation Slide by Slide

    LaTeX Beamer: Building a Presentation Slide by Slide

    Beamer looks like a document class that makes slides and behaves like a document class the whole way through — until a frame overflows, an overlay jumps, or a verbatim line fails to parse. It is a presentation model with its own geometry, its own page numbering and its own way of deciding what appears when. Here is that model, plus the theme and note machinery that turns it into a deck you can actually present.

    ≈ 16 min read · 7 sections

    XeLaTeX, LuaLaTeX and fontspec: Unicode and System Fonts

    XeLaTeX, LuaLaTeX and fontspec: Unicode and System Fonts

    Under XeLaTeX and LuaLaTeX a font is no longer reached through an encoding file: fontspec asks the operating system for a named OpenType face and asks that face for its features. That one change explains why inputenc disappears from a migrated preamble, why dashes and quotes work in some families and not in others, why a missing bold weight is invented instead of reported, and why Chinese text needs one further package on top of the font. This page covers the whole stack: the three family commands and the defaults that fontspec actually ships, the ligature mapping and the two good reasons to switch it off, the shape slot table and its overrides, a second script through polyglossia, babel or xeCJK, unicode-math ranges, what LuaLaTeX buys and what it costs, and an iftex-guarded preamble that still builds with pdfLaTeX.

    ≈ 26 min read · 8 sections

    Speeding Up LaTeX Builds and Debugging a Broken Document

    Speeding Up LaTeX Builds and Debugging a Broken Document

    A slow build and a broken build are the same skill: find out where the time or the failure actually is, then change that and nothing else. TeX sets a page of text in single-digit milliseconds, so a ninety-second build is a document asking for expensive work repeatedly — plots resampled on every pass, a table rebuilt from tokens three times, more passes than the content needs. This page covers the instruments and the switches: reading the per-rule timing output of latexmk, what a hand-typed tabular and a pgfplots plot with samples=1000 really cost, the draft and demo switches and what each one stops doing, the tracing counters which show you an expansion or a shipped box, the bisection that turns a 4000-line failure into a nine-line one, and the version and timestamp work which makes a build reproducible in CI.

    ≈ 24 min read · 7 sections

    The reference library

    24 single-notation pages: the exact command, what it renders to, the mistakes that break it, and the lesson that teaches it.

    Find the notation by the question you are asking

    Every question below is answered in full on the page it links to — each one is the exact wording readers use when they search.

    How to use this hub

    Start at lesson one and follow the path — each lesson builds on the previous one and ends with a live editor you can type into. When you need one specific notation while writing, jump straight into the reference library above: every page there is a single notation with the exact source to copy.

    Everything here is written in plain LaTeX maths and renders in KaTeX, MathJax and pdfLaTeX alike. Where a command needs amsmath, the page says so.