Skip to content

Instantly share code, notes, and snippets.

@nagae
Created November 9, 2011 07:29
Show Gist options
  • Select an option

  • Save nagae/1350710 to your computer and use it in GitHub Desktop.

Select an option

Save nagae/1350710 to your computer and use it in GitHub Desktop.
TeXLive2011のインストーラ(install-tl)用 profile
# texlive.profile written on Fri Nov 4 19:10:22 2011 UTC
# It will NOT be updated and reflects only the
# installation profile at installation time.
selected_scheme scheme-full
TEXDIR /usr/local/texlive/2011
TEXMFCONFIG ~/.texlive2011/texmf-config
TEXMFHOME ~/home/_work/texmf
TEXMFLOCAL /usr/local/texlive/texmf-local
TEXMFSYSCONFIG /usr/local/texlive/2011/texmf-config
TEXMFSYSVAR /usr/local/texlive/2011/texmf-var
TEXMFVAR ~/.texlive2011/texmf-var
binary_universal-darwin 1
binary_x86_64-darwin 1
collection-basic 1
collection-bibtexextra 1
collection-binextra 1
collection-context 1
collection-documentation-arabic 1
collection-documentation-base 1
collection-documentation-bulgarian 1
collection-documentation-chinese 1
collection-documentation-czechslovak 1
collection-documentation-dutch 1
collection-documentation-english 1
collection-documentation-finnish 1
collection-documentation-french 1
collection-documentation-german 1
collection-documentation-italian 1
collection-documentation-japanese 1
collection-documentation-korean 1
collection-documentation-mongolian 1
collection-documentation-polish 1
collection-documentation-portuguese 1
collection-documentation-russian 1
collection-documentation-serbian 1
collection-documentation-slovenian 1
collection-documentation-spanish 1
collection-documentation-thai 1
collection-documentation-turkish 1
collection-documentation-ukrainian 1
collection-documentation-vietnamese 1
collection-fontsextra 1
collection-fontsrecommended 1
collection-fontutils 1
collection-formatsextra 1
collection-games 1
collection-genericextra 1
collection-genericrecommended 1
collection-htmlxml 1
collection-humanities 1
collection-langafrican 1
collection-langarabic 1
collection-langarmenian 1
collection-langcjk 1
collection-langcroatian 1
collection-langcyrillic 1
collection-langczechslovak 1
collection-langdanish 1
collection-langdutch 1
collection-langenglish 1
collection-langfinnish 1
collection-langfrench 1
collection-langgerman 1
collection-langgreek 1
collection-langhebrew 1
collection-langhungarian 1
collection-langindic 1
collection-langitalian 1
collection-langlatin 1
collection-langlatvian 1
collection-langlithuanian 1
collection-langmongolian 1
collection-langnorwegian 1
collection-langother 1
collection-langpolish 1
collection-langportuguese 1
collection-langspanish 1
collection-langswedish 1
collection-langtibetan 1
collection-langturkmen 1
collection-langvietnamese 1
collection-latex 1
collection-latexextra 1
collection-latexrecommended 1
collection-luatex 1
collection-mathextra 1
collection-metapost 1
collection-music 1
collection-omega 1
collection-pictures 1
collection-plainextra 1
collection-pstricks 1
collection-publishers 1
collection-science 1
collection-texinfo 1
collection-texworks 1
collection-xetex 1
in_place 0
option_autobackup 1
option_backupdir tlpkg/backups
option_desktop_integration 1
option_doc 1
option_file_assocs 1
option_fmt 1
option_letter 0
option_path 0
option_post_code 1
option_src 1
option_sys_bin /usr/local/bin
option_sys_info /usr/local/info
option_sys_man /usr/local/man
option_w32_multi_user 0
option_write18_restricted 1
portable 0
@nagae
Copy link
Copy Markdown
Author

nagae commented Nov 9, 2011

Easy installation of TeXLive2011 on Mac OS X Lion

Requirements

How to install

  1. Download and install texlive

    wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
    tar -xzf install-tl-unx.tar.gz
    cd install-tl* curl -o texlive.profile https://raw.github.com/gist/1350710 # or use your own texlive.profile

    Edit the following line of [texlive.profile] according to your preference:

    7: TEXMFHOME ~/home/_work/texmf
    

    Run the installer:

    ./install-tl --profile texlive.profile
    
  2. Add path

    export PATH=/usr/local/texlive/2011/bin/x86_64-darwin:${PATH}
    export MANPATH=/usr/local/texlive/2011/texmf/doc/man:$MANPATH
    

    Or, copy and paste the following into the terminal:

    if ! cat ~/.bash_profile | grep -q "#add_path_texlive2011"; then
    echo 'export PATH=/usr/local/texlive/2011/bin/x86_64-darwin:$PATH #add_path_texlive2011' >> ~/.bash_profile;
    echo 'export MANPATH="/usr/local/texlive/2011/texmf/doc/man:$MANPATH" #add_path_texlive2011'>>~/.bash_profile;
    fi
    source ~/.bash_profile
    
  3. Set your fontmap for oty package

    mkdir -p /usr/local/texlive/texmf-local/fonts/map/dvipdfm/
    cd  /usr/local/texlive/texmf-local/fonts/map/dvipdfm/
    curl -o hiragino-mini-embed.map https://raw.github.com/gist/1353863
    curl -o hiragino-embed.map https://raw.github.com/gist/1354092
    mkdir -p /usr/local/texlive/texmf-local/fonts/opentype/public/hiragino/
    cd /usr/local/texlive/texmf-local/fonts/opentype/public/hiragino/
    ln -fs "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" ./HiraMinPro-W3.otf
    ln -fs "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" ./HiraMinPro-W6.otf
    ln -fs "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" ./HiraMaruPro-W4.otf
    ln -fs "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" ./HiraKakuPro-W3.otf
    ln -fs "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" ./HiraKakuPro-W6.otf
    ln -fs "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" ./HiraKakuStd-W8.otf
    mktexlsr
    
  4. Test platex and dvipdfm

    curl -o sample.tex https://raw.github.com/gist/1350983
    platex sample.tex
    dvipdfm -f hiragino-mini-embed sample
    open sample.pdf
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment