-
-
Save pbt001/11708f3cc8d361c5a4a92041bb8916e9 to your computer and use it in GitHub Desktop.
Install MinionPro on OSX
This file contains 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/sh | |
## Information | |
## http://carlo-hamalainen.net/blog/2007/12/11/installing-minion-pro-fonts/ | |
## http://www.ctan.org/tex-archive/fonts/mnsymbol/ | |
## 0: Install | |
## http://www.lcdf.org/type/ | |
## I used --without-kpathsea to configure (with MacTeX 2011): | |
## | |
## ./configure --without-kpathsea | |
## make | |
## sudo make install | |
## Destination. I like it here, but | |
# DEST=`kpsexpand '$TEXMFLOCAL'` | |
## might be better for a computer-wide install. | |
DEST=~/Library/texmf | |
## Downloader: | |
DOWNLOAD="curl -OL" | |
## Directory where minion fonts can be found: | |
MINIONSRC=/Applications/Adobe\ Reader.app/Contents/Resources/Resource/Font/ | |
MINIONSRC=~/tmp/minionpro/minion | |
## 1: MnSymbol | |
## http://www.ctan.org/tex-archive/fonts/mnsymbol/ | |
$DOWNLOAD http://mirror.ctan.org/fonts/mnsymbol.zip | |
unzip mnsymbol.zip | |
cd mnsymbol/tex | |
## Generates MnSymbol.sty | |
latex MnSymbol.ins | |
mkdir -p $DEST/tex/latex/MnSymbol/ \ | |
$DEST/fonts/source/public/MnSymbol/ \ | |
$DEST/doc/latex/MnSymbol/ | |
cp MnSymbol.sty $DEST/tex/latex/MnSymbol/MnSymbol.sty | |
cd .. # we were in mnsymbol/tex | |
cp source/* $DEST/fonts/source/public/MnSymbol/ | |
cp MnSymbol.pdf README $DEST/doc/latex/MnSymbol/ | |
mkdir -p $DEST/fonts/map/dvips/MnSymbol \ | |
$DEST/fonts/enc/dvips/MnSymbol \ | |
$DEST/fonts/type1/public/MnSymbol \ | |
$DEST/fonts/tfm/public/MnSymbol | |
cp enc/MnSymbol.map $DEST/fonts/map/dvips/MnSymbol/ | |
cp enc/*.enc $DEST/fonts/enc/dvips/MnSymbol/ | |
cp pfb/*.pfb $DEST/fonts/type1/public/MnSymbol/ | |
cp tfm/* $DEST/fonts/tfm/public/MnSymbol/ | |
## I believe that this is not strictly needed if DEST is in the home | |
## tree on OSX, but might be needed otherwise | |
sudo mktexlsr | |
updmap --enable MixedMap MnSymbol.map | |
cd .. | |
# $DOWNLOAD http://carlo-hamalainen.net/blog/myfiles/minionpro/mnsymbol-test.tex | |
# pdflatex mnsymbol-test.tex | |
## 2: MinionPro | |
$DOWNLOAD http://mirrors.ctan.org/fonts/minionpro/enc-2.000.zip | |
$DOWNLOAD http://mirrors.ctan.org/fonts/minionpro/metrics-base.zip | |
$DOWNLOAD http://mirrors.ctan.org/fonts/minionpro/metrics-full.zip | |
$DOWNLOAD http://mirrors.ctan.org/fonts/minionpro/scripts.zip | |
## This will make the otf directory, among other things. | |
unzip scripts.zip | |
cp $MINIONSRC/Minion*otf otf/ | |
## Generate the pfb files | |
## This step requires that the LCDF type tools are installed. Get them here: | |
## http://www.lcdf.org/type/ | |
./convert.sh | |
## Copy the pfb files to where they belong: | |
mkdir -p $DEST/fonts/type1/adobe/MinionPro | |
cp pfb/*.pfb $DEST/fonts/type1/adobe/MinionPro | |
SRC=`pwd` | |
cd $DEST | |
unzip $SRC/enc-2.000.zip | |
unzip $SRC/metrics-base.zip | |
unzip $SRC/metrics-full.zip | |
cd $SRC | |
sudo mktexlsr | |
updmap --enable MixedMap MinionPro.map | |
## Test: | |
# $DOWNLOAD http://carlo-hamalainen.net/blog/myfiles/minionpro/minionpro-test.tex | |
# pdflatex minionpro-test.tex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment