Short answer: Computer Modern
LaTeX uses Computer Modern as its default font. Donald Knuth designed it for TeX, the typesetting program that LaTeX is built on (see the difference between TeX and LaTeX). The body text is a roman, or serif, face. Computer Modern also includes sans serif and typewriter styles, which you can switch to with the commands in LaTeX fonts and font families explained.
Why LaTeX uses Computer Modern
Knuth based the design on an older printing style, Monotype Modern, which he liked for technical books. He wrote Computer Modern in Metafont, a program that describes letter shapes mathematically, and the family comes in several design sizes. Because it was built for TeX, it was designed to work with TeX’s math and line-breaking, so its letters and symbols were meant to fit together.
Latin Modern and the engine you use
Latin Modern is a later family based on Computer Modern. It keeps the same general design and has wider character coverage, including more accented letters. Most current installations can load it with \usepackage{lmodern}.
The engine you choose also matters:
- pdfLaTeX uses Computer Modern Type 1 fonts by default, unless your template loads another font.
- XeLaTeX and LuaLaTeX use system fonts through
fontspec. With them, Latin Modern is generally the default body font.
So two documents can look almost the same and still use different font files. Check the template or the preamble if you need to know exactly which font is in use.
Checking which font a PDF uses
Open the PDF in a viewer and look at its document properties, where many viewers list the fonts. On Linux or macOS, if the poppler utilities are installed, you can also run:
pdffonts yourfile.pdf
The output lists each font by name. Names beginning with CMR usually mean Computer Modern roman, and names beginning with LMRoman usually mean Latin Modern.
Changing the font
To use a different typeface, load a font package in the preamble. With pdfLaTeX, packages such as mathptmx and mathpazo set matching text and math fonts. With XeLaTeX or LuaLaTeX, use fontspec. The full options are in LaTeX fonts and font families explained.
Matching LaTeX’s look in Word
People often want a Word or Google Docs file that looks like LaTeX output. An exact match is not realistic. Opinions among LaTeX users are mixed on how close a Word font can get. Serif fonts such as Times New Roman come closer in style than sans serif fonts, but spacing and layout density still differ.
Frequently asked questions
Is LaTeX’s font the same as the one in Microsoft Word?
No. Word uses its own fonts, and the default changes between versions and templates. Computer Modern is a different design.
Can I make LaTeX use a different font?
Yes. Load a font package such as mathptmx or mathpazo with pdfLaTeX, or use fontspec with XeLaTeX or LuaLaTeX.
Is Latin Modern better than Computer Modern?
Neither is better in every case. Latin Modern covers more characters, and some readers find it easier to read on screen. The right choice depends on your language, your output format, and your template.