Directory fonts/utilities/hep-math-font
The hep-math-font package
Composable math alphabets that follow the text font, and dashed and dotted vector accents
Introduction
The hep-math-font package provides math fonts matching the text fonts of the hep-font package. Its math alphabet commands are composable: bold, upright and the serif, sans-serif and typewriter families can be combined in any order, e.g. \mathbf{\mathsf{x}} and \mathsf{\mathbf{x}} give the same bold sans-serif x. Math follows the surrounding text, so that math in a sans-serif or bold heading is sans-serif or bold as well. The package also provides vector accents with a dashed and a dotted shaft. With LuaLaTeX and XeLaTeX the package uses the New Computer Modern math fonts, with pdfLaTeX it uses Latin Modern and Computer Modern fonts combined into virtual fonts.
The package is loaded using \usepackage{hep-math-font}.
Author
Jan Hajer
License
This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version. The latest version of this license is in http://www.latex-project.org/lppl.txt and version 1.3c or later is part of all distributions of LaTeX version 2005/12/01 or later.
Download the contents of this package in one zip archive (998.3k).
HEP-math-font – Math alphabets following the text font, with extra vector accents
The hep-math-font package adjusts the math fonts to follow the text font: if the document is set in a sans-serif font, so is the math. Greek letters are always italic in math mode and upright in text mode. The math alphabets can be combined with each other, some math font macros are adjusted to give the expected results more consistently, and dashed and dotted vector accents are provided.
The package is loaded with \usepackage{hep-math-font}.
| Package | HEP-math-font |
| Bug tracker | |
| Repository | |
| Version | 2.0 2026-11-13 |
| Licenses | The LaTeX Project Public License 1.3c |
| Copyright | 2019–2025 Jan Hajer |
| Maintainer | Jan Hajer |
| Contained in | TeX Live as hep-math-font MiKTeX as hep-math-font |
| Topics | Font supp maths Font use Font Font management |