From 84e0df2ee640ef4bb61a82409b3090550d8b6f74 Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Mon, 13 Nov 2023 17:35:35 -0600 Subject: [PATCH] better insctructions to install macros --- groff/README.md | 19 ++++++++++++++++--- groff/math.tmac | 9 --------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/groff/README.md b/groff/README.md index 10f6b73..8dbc526 100644 --- a/groff/README.md +++ b/groff/README.md @@ -5,11 +5,24 @@ that macro is exclusive to groff v1.23.0, which is not present on Debian 12. Compiling it from source is really easy though, thanks to GNU's coding standards. +# To install CM font +```shell +wget www.ams.org/arc/tex/amsfonts.zip +unzip -d amsfonts amsfonts.zip +groff-install-font -F CM -f +R amsfonts/fonts/type1/public/amsfonts/cm/cmr10.pfb +groff-install-font -F CM -f +I amsfonts/fonts/type1/public/amsfonts/cm/cmmi10.pfb +groff-install-font -F CM -f +B amsfonts/fonts/type1/public/amsfonts/cm/cmbx10.pfb +groff-install-font -F CM -f +SS amsfonts/fonts/type1/public/amsfonts/euler/eusm10.pfb \" Euler symbols +groff-install-font -F CM -f +SE amsfonts/fonts/type1/public/amsfonts/symbols/msam10.pfb \" Euler extra +groff-install-font -F CM -f +SB amsfonts/fonts/type1/public/amsfonts/symbols/msbm10.pfb \" Blackboard +groff-install-font -F CM -f +SF amsfonts/fonts/type1/public/amsfonts/euler/eufm10.pfb \" Blackletter (Fraktur) +``` + # Custom fonts & glyphs -In order to install a font with U+2112 '_Laplace transform_' -glyph, search in your system for fonts with that glyph, and -create a groff font with afmtodit. +In order to install a font with custom glyphs like +U+2112 '_Laplace transform_', search in your system for +fonts with that glyph, and create a groff font with afmtodit. ```shell grep -r '2112' /usr/share/fonts/* 2>/dev/null # Check for .afm font files with the glyph diff --git a/groff/math.tmac b/groff/math.tmac index 8c9e159..884cc3d 100644 --- a/groff/math.tmac +++ b/groff/math.tmac @@ -45,15 +45,6 @@ define arccsch 'roman "arccsch"' .EN . .\" SYMBOLS -.\" To install CM and CMSS: -.\" wget www.ams.org/arc/tex/amsfonts.zip -.\" groff-install-font -F CM -f +R cmr12.pfb -.\" groff-install-font -F CM -f +I cmmi12.pfb -.\" groff-install-font -F CM -f +B cmbx12.pfb -.\" groff-install-font -F CM -f +SS eusm10.pfb \" Euler symbols -.\" groff-install-font -F CM -f +SE msam10.pfb \" Euler extra -.\" groff-install-font -F CM -f +SB msbm10.pfb \" Blackboard -.\" groff-install-font -F CM -f +SF eufm10.pfb \" Blackletter (Fraktur) . .\" Laplace transform/Lagrangian (CMSS or generic URW) .\".char \[letterlikeL] \f[U-HR]\[u2112]