Skip to content

Instantly share code, notes, and snippets.

@papaeye
Created May 16, 2015 06:59
Show Gist options
  • Save papaeye/984b6d124dea913ded51 to your computer and use it in GitHub Desktop.
Save papaeye/984b6d124dea913ded51 to your computer and use it in GitHub Desktop.
Update MacTeX and setup Japanese environment
#!/bin/bash
# http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?Mac#p3c663c9
tlmgr update --self --all
# http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?Mac#i9febc9b
mkdir -p /usr/local/texlive/texmf-local/fonts/opentype/hiragino
ln -s "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraMinPro-W3.otf
ln -s "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraMinPro-W6.otf
ln -s "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraMaruPro-W4.otf
ln -s "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraKakuPro-W3.otf
ln -s "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraKakuPro-W6.otf
ln -s "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraKakuStd-W8.otf
ln -s "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraMinProN-W3.otf
ln -s "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraMinProN-W6.otf
ln -s "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraMaruProN-W4.otf
ln -s "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraKakuProN-W3.otf
ln -s "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraKakuProN-W6.otf
ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf" /usr/local/texlive/texmf-local/fonts/opentype/hiragino/HiraKakuStdN-W8.otf
mktexlsr
kanji-config-updmap-sys --jis2004 hiragino-pron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment