Skip to content

Instantly share code, notes, and snippets.

@caffo
Forked from kjhealy/gist:4049619
Created March 28, 2013 00:56

Revisions

  1. @kjhealy kjhealy revised this gist Nov 13, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -12,9 +12,9 @@
    # mkdir ~/tmp

    ## Destination. System wide:
    DEST=`kpsexpand '$TEXMFLOCAL'`
    # DEST=`kpsexpand '$TEXMFLOCAL'`
    ## Or single-user only:
    # DEST=~/Library/texmf
    DEST=~/Library/texmf

    ## Downloader:
    DOWNLOAD="curl -L -O"
  2. @kjhealy kjhealy revised this gist Nov 10, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    ## If you use Homebrew (http://mxcl.github.com/homebrew/), then uncomment:
    # brew install lcdf-typetools

    ## 0.1: If ~/tmp doesn't exist, make it.
    ## 0.2: If ~/tmp doesn't exist, create it.
    # mkdir ~/tmp

    ## Destination. System wide:
  3. @kjhealy kjhealy revised this gist Nov 10, 2012. 1 changed file with 9 additions and 5 deletions.
    14 changes: 9 additions & 5 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -3,13 +3,17 @@
    ## 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).
    ## 0.1: Install LCDF Typetools
    ## http://www.lcdf.org/type/
    ## If you use Homebrew (http://mxcl.github.com/homebrew/), then uncomment:
    # brew install lcdf-typetools

    ## 0.1: If ~/tmp doesn't exist, make it.
    # mkdir ~/tmp

    ## Destination. I like it here, but
    ## Destination. System wide:
    DEST=`kpsexpand '$TEXMFLOCAL'`
    ## might be better for a computer-wide install.
    ## Or single-user only:
    # DEST=~/Library/texmf

    ## Downloader:
  4. @kjhealy kjhealy revised this gist Nov 10, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ DEST=`kpsexpand '$TEXMFLOCAL'`
    # DEST=~/Library/texmf

    ## Downloader:
    DOWNLOAD=curl -L
    DOWNLOAD="curl -L -O"

    ## Directory where minion fonts can be found:
    #MINIONSRC=/Applications/Adobe\ Reader.app/Contents/Resources/Resource/Font/
    @@ -25,7 +25,7 @@ cd ~/tmp

    ## 1: MnSymbol
    ## http://www.ctan.org/tex-archive/fonts/mnsymbol/
    $DOWNLOAD http://mirror.ctan.org/fonts/mnsymbol.zip
    $DOWNLOAD http://mirror.ctan.org/fonts/mnsymbol.zip

    unzip mnsymbol
    cd mnsymbol/tex
  5. @kjhealy kjhealy revised this gist Nov 10, 2012. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -8,16 +8,17 @@
    ## I used --without-kpathsea to configure (with MacTeX 2011).

    ## Destination. I like it here, but
    # DEST=`kpsexpand '$TEXMFLOCAL'`
    DEST=`kpsexpand '$TEXMFLOCAL'`
    ## might be better for a computer-wide install.
    DEST=~/Library/texmf
    # DEST=~/Library/texmf

    ## Downloader:
    DOWNLOAD=snarf
    DOWNLOAD=curl -L

    ## Directory where minion fonts can be found:
    MINIONSRC=/Applications/Adobe\ Reader.app/Contents/Resources/Resource/Font/
    MINIONSRC=~/tmp/minionsrc
    #MINIONSRC=/Applications/Adobe\ Reader.app/Contents/Resources/Resource/Font/
    #MINIONSRC=~/tmp/minionsrc
    MINIONSRC=~/Library/Fonts

    ## Everything gets done in a temporary directory
    cd ~/tmp
  6. @richfitz richfitz revised this gist Jul 31, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -73,6 +73,8 @@ 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:
    @@ -91,4 +93,4 @@ updmap --enable MixedMap MinionPro.map

    ## Test:
    # $DOWNLOAD http://carlo-hamalainen.net/blog/myfiles/minionpro/minionpro-test.tex
    # pdflatex minionpro-test.tex
    # pdflatex minionpro-test.tex
  7. @richfitz richfitz renamed this gist Apr 7, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. @richfitz richfitz created this gist Apr 7, 2012.
    94 changes: 94 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,94 @@
    #!/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).

    ## Destination. I like it here, but
    # DEST=`kpsexpand '$TEXMFLOCAL'`
    ## might be better for a computer-wide install.
    DEST=~/Library/texmf

    ## Downloader:
    DOWNLOAD=snarf

    ## Directory where minion fonts can be found:
    MINIONSRC=/Applications/Adobe\ Reader.app/Contents/Resources/Resource/Font/
    MINIONSRC=~/tmp/minionsrc

    ## Everything gets done in a temporary directory
    cd ~/tmp

    ## 1: MnSymbol
    ## http://www.ctan.org/tex-archive/fonts/mnsymbol/
    $DOWNLOAD http://mirror.ctan.org/fonts/mnsymbol.zip

    unzip mnsymbol
    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

    # $DOWNLOAD http://carlo-hamalainen.net/blog/myfiles/minionpro/mnsymbol-test.tex
    # pdflatex mnsymbol-test.tex

    ## 2: MinionPro
    mkdir -p ~/tmp/minionpro
    cd ~/tmp/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
    ./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