Last active
August 29, 2015 14:01
-
-
Save yuchan/16ff92978deb0a901ab8 to your computer and use it in GitHub Desktop.
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 | |
#Created and tested on Mac OS X only. | |
brew tap phinze/cask | |
brew install brew-cask | |
brew cask install basictex | |
if [[ $PATH =~ "texbin" ]]; then | |
echo "texbin is already in \${PATH}." | |
else | |
cat >> $HOME/.bash_profile <<EOF | |
export PATH=/usr/texbin:\$PATH | |
EOF | |
fi | |
. $HOME/.bash_profile | |
sudo tlmgr update --self --all | |
sudo tlmgr install ptex ptex2pdf jfontmaps jsclasses japanese-otf pxjaryper lmodern | |
sudo mkdir -p /usr/local/texlive/2013basic/texmf-local/fonts/opentype/local/hiragino/ | |
cd /usr/local/texlive/2013basic/texmf-local/fonts/opentype/local/hiragino/ | |
sudo ln -fs "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" ./HiraMinPro-W3.otf | |
sudo ln -fs "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" ./HiraMinPro-W6.otf | |
sudo ln -fs "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" ./HiraMaruPro-W4.otf | |
sudo ln -fs "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" ./HiraKakuPro-W3.otf | |
sudo ln -fs "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" ./HiraKakuPro-W6.otf | |
sudo ln -fs "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" ./HiraKakuStd-W8.otf | |
sudo mktexlsr | |
sudo updmap-sys --setoption kanjiEmbed hiragino | |
# From ctan | |
# download beamer and xcolor, but don't need pgf. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment