Start here
LaTeX Fonts and Font Families Explained
Learn how LaTeX sorts fonts into families, series, and shapes, which font it uses by default, how to change it, and how to fix the fi ligature problem.
Setup and Layout
Font families, text color, line spacing, alignment, hyphenation and text boxes.
Start here
Learn how LaTeX sorts fonts into families, series, and shapes, which font it uses by default, how to change it, and how to fix the fi ligature problem.
Control where LaTeX breaks words with exception lists, discretionary hyphens, German babel settings, and keeping hyphenated compounds together.
Change line spacing in LaTeX with the setspace package: whole-document spacing, spacing for single blocks, and the linespread command without packages.
Change text color in LaTeX with the xcolor package, covering textcolor, color blocks, named and hex colors, custom colors, mixing, and boxes.
Format text in LaTeX with bold, italic, emphasis, underline, small caps, font sizes, alignment, and super- and subscripts, with short examples.
Make a text box in LaTeX with fbox, parbox, and minipage, plus colored boxes with tcolorbox, and choose the right option for short or long text.
LaTeX sets body text justified by default. Learn when left alignment with ragged-right text reads better, and how to switch in LaTeX documents.
Right-align text in LaTeX with hfill, raggedleft, and flushright, and fill a line with dot leaders using dotfill, including how to set a fixed length.
LaTeX uses Computer Modern by default, a font designed by Donald Knuth. Learn what changes with XeLaTeX or LuaLaTeX and how to switch to another font.
Set up Spanish in LaTeX with the babel package: language option, accents and inverted punctuation, Spanish captions, quotation marks, and dates.
Related topics