Tx · LaTeX & TikZ

NewTX, Times, Termes, STIX, and XITS: What’s the Difference?

Published By the 9to5Science editorial team

At a glance

  1. 1. Separate text and math

    A text font does not automatically provide a matching mathematics font.

  2. 2. Identify the font family

    Times, Termes, STIX, and XITS are different typeface families or font projects.

  3. 3. Choose the engine

    Traditional LaTeX math packages suit pdfLaTeX; OpenType math fonts are usually used with LuaLaTeX or XeLaTeX.

  4. 4. Use a matched pair

    Select text and math fonts designed to work together, and avoid loading competing math packages.

Advertisement

The main functional difference is how the fonts provide text and mathematics, and which LaTeX engine can use them. “Times” is also ambiguous: it can mean the Times typeface generally or an older LaTeX package named times. The packages and font families below are related in appearance, but they are not identical or interchangeable.

Text fonts and math fonts do different jobs

A text font supplies letters and punctuation in ordinary paragraphs. Mathematics needs additional symbols and typesetting rules: italic variables, operators, large delimiters, extensible arrows, and many other glyphs. A text font that looks like Times does not necessarily include a matching math font.

With traditional LaTeX, math fonts are selected through the older font-selection system. With LuaLaTeX or XeLaTeX, you can instead use OpenType math fonts through unicode-math. The choice of engine therefore affects which font setup is practical.

What each name usually means

NameWhat it isTypical use
timesA legacy LaTeX package name, as well as a general typeface nameOlder Times-style text and math setups; often better replaced by NewTX
NewTXA Times-like font system with separate newtxtext and newtxmath packagesA coordinated setup with pdfLaTeX, LuaLaTeX, or XeLaTeX
TeX Gyre TermesA Times-like text family; a corresponding Termes Math OpenType font is also availableUse as text and math fonts with LuaLaTeX or XeLaTeX, or pair Termes text with a traditional math package
STIXA font project with text and math fonts and traditional LaTeX supportA broad mathematical symbol set, including for traditional LaTeX workflows
XITSAn OpenType font family based on the original STIX design, with XITS MathA Unicode-math setup with LuaLaTeX or XeLaTeX

NewTX is based on the TX font project and offers Times-like text and mathematics through distinct packages. This makes it more than a text-font substitution: newtxmath supplies math alphabets and symbols. The older times package is a legacy choice; if you want a Times-like setup today, NewTX is often the more useful starting point.

TeX Gyre Termes and NewTX look broadly similar, but they are not the same font. Termes is a text family, and Termes Math is a separate OpenType math font. If you use only tgtermes or set Termes as your main text font, do not assume that your document’s math has changed to Termes Math too.

STIX is the older family name; STIX Two is a later redesign, not another name for XITS. XITS is based on the original STIX design. STIX and XITS are especially useful when you need extensive mathematical symbols, but the recommended setup depends on whether you use traditional LaTeX font packages or OpenType math.

Example: Termes text and math with Unicode LaTeX

This complete example uses TeX Gyre Termes for text and TeX Gyre Termes Math for equations. Compile it with LuaLaTeX or XeLaTeX, not pdfLaTeX. The required packages are fontspec and unicode-math.

\documentclass{article}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}
\usepackage{unicode-math}
\setmathfont{TeX Gyre Termes Math}

\begin{document}
Ordinary text in Termes, with a matching math font:
\[
  \int_0^1 x^2\,dx = \frac{1}{3}.
\]
\end{document}

\setmainfont selects the text font; \setmathfont independently selects the OpenType math font. Both font names must be installed and available to your TeX system. For a traditional pdfLaTeX workflow, a common NewTX setup is \usepackage{newtxtext,newtxmath} instead. Do not combine unicode-math with legacy math-font packages such as newtxmath or stix in the same document: they use different math-font systems.

How to choose

  • Choose NewTX if you want a Times-like appearance and a coordinated text-and-math setup that works well in conventional LaTeX documents.
  • Choose Termes if you specifically want the TeX Gyre text family. For matching OpenType math, select TeX Gyre Termes Math separately with unicode-math.
  • Choose STIX or STIX Two when their design or symbol coverage suits the document. Check the package instructions for the exact family and engine you plan to use.
  • Choose XITS if you want its STIX-derived design in an OpenType math workflow.

Font availability is not guaranteed just because a package is installed: a package can provide LaTeX configuration without installing the font files, or vice versa. If LaTeX reports that it cannot find a font, check the font name and installation as well as the engine.

Common mistakes

  • Treating times as a precise font name. Clarify whether you mean the typeface, the old package, or a particular Times-like clone.
  • Changing only the text font. A Times-like text face does not automatically select matching math glyphs.
  • Mixing math systems. Load one math-font setup. Combining legacy math packages with unicode-math commonly causes conflicts or unexpected substitutions.
  • Assuming similar designs are identical. NewTX, Termes, STIX, and XITS differ in glyph shapes, spacing, symbol coverage, and font metrics. A document can reflow when you switch among them.

References

  1. The NewTX font package
  2. TeX Gyre fonts
  3. The unicode-math package

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.