GNU TeXmacsUser manualReferenceAboutEnglish
Other mathematical fonts

TeXmacs knows a few more mathematical fonts than it installs. The fonts of the first section below are used as soon as they are installed on your system: they then appear in the font menu like the fonts which come with TeXmacs, with their text companions. They are all free, and part of TeX Live, the TeX distribution. The second section is about the other OpenType math fonts, which TeXmacs can use without knowing them.

Each font is shown with a sample which is set in the font itself when it is installed. When it is not, TeXmacs sets the sample in the closest font it can find, which is the situation of a document that asks for a font your system does not have.

1.Fonts TeXmacs knows

XITS

A Times design derived from the first STIX fonts, with a bold mathematical font and right to left mathematics; STIX Two, which comes with TeXmacs, has superseded it. Text: XITS; mathematics: XITS Math, with 99% of the symbols. Where to find it: xits in TeX Live. Once installed, it appears in the submenu Other OpenType math fonts of the font menu.

Text in italic and bold: the quick brown fox, 0123456789.

\(\displaystyle \int_0^{\infty} e^{- x^2} \mathrm{d} x = \frac{\sqrt{\pi}}{2}, \qquad \sum_{n = 1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}, \qquad \alpha \beta \gamma, \quad \mathbb{R}^n, \quad \mathcal{F}\)
Asana

A Palatino design with a larger set of symbols than Pagella Math; it is set with Pagella text. Text: TeX Gyre Pagella; mathematics: Asana Math, with 94% of the symbols. Where to find it: asana-math in TeX Live. Once installed, it appears in the submenu Other OpenType math fonts of the font menu.

Text in italic and bold: the quick brown fox, 0123456789.

\(\displaystyle \int_0^{\infty} e^{- x^2} \mathrm{d} x = \frac{\sqrt{\pi}}{2}, \qquad \sum_{n = 1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}, \qquad \alpha \beta \gamma, \quad \mathbb{R}^n, \quad \mathcal{F}\)

2.Other OpenType math fonts

Any font with an OpenType MATH table can set formulas, even one TeXmacs knows nothing about: its formulas are laid out from the table, with no adjustment. Such a font does not appear in the font menu; name it in a rule of the font variable, followed by the text font to use with it, in the markup of the document

<assign|font|math=Cambria Math,Cambria>

The best known of these fonts are:

Cambria Math

The mathematical font of Microsoft Office, installed with Windows and Office. It cannot be shipped with TeXmacs, but works when it is present.

Lucida Bright Math

A commercial font, sold by the TeX Users Group, with a wide set of symbols and several weights.

Minion Math

A commercial companion of Adobe's Minion, with several weights and optical sizes.

A font without a MATH table only provides symbols: it cannot place scripts or build large delimiters, and is not a mathematical font in the above sense. Older versions of Noto Sans Math were of this kind; the one which comes with TeXmacs has a MATH table and is in the font menu as Noto Sans.

3.Installing fonts

TeXmacs looks for fonts in the directory fonts/truetype of its installation and of your TeXmacs home directory (~/.TeXmacs, or the folder TeXmacs of the application data on Windows), in the font directories of your system, in the TeX Live installations it finds (of any year, on macOS and Linux), and in the directories listed in the environment variable TEXMACS_FONT_PATH, which is the way to point it at another TeX Live. To add a font:

  1. Install it in the usual way for your system, with the package manager of TeX Live (tlmgr install xits, for instance), or copy its .otf files into ~/.TeXmacs/fonts/truetype.

  2. Run Tools\(\rightarrow\)Fonts\(\rightarrow\)Scan disk for fonts, so that TeXmacs records the new fonts. A mathematical font which TeXmacs knows is also recorded by itself the first time it is asked for.

  3. If a font still does not appear, Tools\(\rightarrow\)Fonts\(\rightarrow\)Clear font cache makes TeXmacs forget the fonts it used to find instead.

Remember that a document which uses a font you installed will look different on a system which does not have it.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".