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: texlive-doc 2026.0-r0 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- arch rolling: texlive-doc 2026.1-1 ยท GPL
- debian bookworm: texlive-binaries 2022.20220321.62855-5.1+deb12u2
- debian trixie: texlive-binaries 2024.20240313.70630+ds-6 ยท TeX-Live
- fedora 43: texlive-ps2pk 11:svn66186-93.fc43 ยท MIT
- fedora 43: texlive-ps2pk 11:svn66186-95.fc43.1 ยท MIT
- fedora 44: texlive-ps2pk 12:svn75712-105.fc44 ยท MIT
- fedora 44: texlive-ps2pk 12:svn75712-111.fc44 ยท MIT
- opensuse-leap 16.0: texlive-ps2pk 2025.221.svn66186-160000.3.1 ยท LPPL-1.0
- ubuntu jammy: texlive-binaries 2021.20210626.59705-1build1
- ubuntu jammy: texlive-binaries 2021.20210626.59705-1ubuntu0.3
- ubuntu noble: texlive-binaries 2023.20230311.66589-9build3 ยท TeX-Live
- ubuntu questing: texlive-binaries 2024.20240313.70630+ds-6ubuntu2 ยท TeX-Live
- ubuntu resolute: texlive-binaries 2025.20250727.75242+ds-5build1 ยท TeX-Live
- ubuntu stonking: texlive-binaries 2026.20260303.78225+ds-5ubuntu1 ยท TeX-Live
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms