Created
June 4, 2017 23:47
-
-
Save tkamishima/4faa70a0a9c6466be6a3a6e2f03a89cd to your computer and use it in GitHub Desktop.
My MacTeX2017 setup script
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
#!/user/bin/env bash | |
tlmgr=/Library/TeX/texbin/tlmgr | |
#### 最新版に更新 | |
${tlmgr} update --self --all | |
#### フォント設定 | |
# 漢字フォントのリンク | |
cd /usr/local/texlive/2017/texmf-dist/scripts/cjk-gs-integrate | |
perl cjk-gs-integrate.pl --link-texmf --force | |
# ls-lR の更新 | |
/Library/TeX/texbin/mktexlsr | |
# 埋め込みフォントの選択 | |
# ${embed}=noEmbed # 埋め込まない(初期設定値) | |
embed=hiragino-elcapitan-pron # ヒラギノフォントを埋め込む | |
# ${embed}=ipa # IPAフォントを埋め込む | |
# ${embed}=ipaex # IPAexフォントを埋め込む | |
# ${embed}=kozuka-pr6n # 小塚書体を埋め込む | |
# ${embed}=morisawa # モリサワフォントを埋め込む | |
/Library/TeX/texbin/kanji-config-updmap-sys ${embed} | |
#### 紙の大きさをA4にする | |
${tlmgr} paper a4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment