MAG(1)
๐ MAG(1) ยท General Commands Manual ๐
โจ NAME โจ
bestie, meet mag ๐ it computes TeX fontsizes and magsteps. literally the tool for when your fonts need to be the perfect size ๐ฅ
๐ฆ SYNOPSIS ๐ฆ
mag [-Rdpi] magstep . . .
mag [-r] [-Rdpi] fontsize . . .
๐ DESCRIPTION ๐
okay so the text opens with delim $$, which is just part of the page, so don't panic ๐
mag calculates fontsizes from magsteps โจ TeX fonts come in two flavors: true sized fonts, or magnifications. ngl the fontsize of a true sized font is just the resolution of the printer (ex. 300) ๐จ๏ธ
for a font magnified n magsteps, the math goes like this: 1.2^n times 300, then rounded to its nearest integer value ๐งฎ it's giving clean math energy fr fr
and TeX font names usually have four parts: the name (cmr), the pointsize (10), the type (pk), and the fontsize (360). so a full one looks like cmr10.360pk ๐ iconic naming
๐ธ EXAMPLES ๐ธ
the result of mag -R240 -2 0 0.5 1 will be:
167 240 263 288
the inverse function is what the -r option is for ๐ so mag -r -R240 167 240 263 288 gives you the fontsteps back:
-2 0 0.5 1
and the UNIX shells let you do command substitution, so you can chain them together like this ๐ซถ
mag -r -R240 `mag -R240 -2 0 0.5 1`
๐ง DATE ๐ง
18 December, 1989
๐ AUTHOR ๐
Piet Tutelaers University of Technology Eindhoven
Maintained in TeX Live. please send bug reports or other correspondence to tex-k@tug.org (http://lists.tug.org/tex-k) ๐
bestie, that's MAG(1) all wrapped up ๐ last updated 1 Feb 2016, so go slay your fontsizes responsibly ๐โจ
๐ฆ where this page comes from
- alpine 3.24: texmf-dist-fontutils-doc 2026.0-r0 ยท LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms