Last active
August 20, 2019 12:42
-
-
Save roguephysicist/753b7c9449c9fe8ce4ae1e2352efa028 to your computer and use it in GitHub Desktop.
adobe2latex: build and use Adobe fonts within a TeX distribution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# Allows the user to install and make use of Adobe fonts with a TeX distribution | |
# Requires installation of 'lcdf-typetools' using package manager | |
function adobe2latex () { | |
FONT="$1" | |
cp ~/Dropbox/link/Docs/backup/fonts/adobe/${FONT}*.otf otf/ | |
./scripts/makeall ${FONT} | |
sudo ./scripts/install $(kpsewhich -var-value TEXMFLOCAL) | |
sudo mkdir -p $(kpsewhich -var-value TEXMFLOCAL)/web2c | |
echo "Map ${FONT}.map" | sudo tee -a $(kpsewhich -var-value TEXMFLOCAL)/web2c/updmap.cfg | |
sudo mktexlsr $(kpsewhich -var-value TEXMFLOCAL) | |
sudo updmap-sys | |
} | |
git clone https://github.com/sebschub/FontPro.git && cd FontPro && mkdir otf | |
adobe2latex MinionPro | |
adobe2latex MyriadPro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment