Summary
OS X 10.11 El Capitan で TeX 環境の構築。
homebrew, brewcask で ghostscirpt, imagemagick, mactex をインストール
$ brew install ghostscript imagemagick
$ brew cask install mactex
$ sudo chown -R USERNAME:admin /usr/local/texlive
mactexをアップデート
$ tlmgr update --self --all
texmf.cnf を作成
$ mkdir /usr/local/texlive/texmf-local/web2c
$ vi /usr/local/texlive/texmf-local/web2c/texmf.cnf
texmf.cnf
shell_escape_commands = \
bibtex,bibtex8,bibtexu,upbibtex,biber,\
kpsewhich,\
makeindex,mendex,texindy,\
mpost,upmpost,\
repstopdf,epspdf,extractbb
日本語フォント対応
$ cd /usr/local/texlive/2015/texmf-dist/scripts/cjk-gs-integrate
$ ./cjk-gs-integrate.pl --link-texmf --force
$ mktexlsr
mktexlsr: Updating /usr/local/texlive/2015/texmf-config/ls-R...
mktexlsr: Updating /usr/local/texlive/2015/texmf-dist/ls-R...
mktexlsr: Updating /usr/local/texlive/2015/texmf-var/ls-R...
mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R...
mktexlsr: Done.
ヒラギノをPDFに埋め込み
$ updmap-sys --setoption kanjiEmbed hiragino-elcapitan
updmap will read the following updmap.cfg files (in precedence order):
/usr/local/texlive/2015/texmf-config/web2c/updmap.cfg
/usr/local/texlive/2015/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
/usr/local/texlive/2015/texmf-config/web2c/updmap.cfg
dvips output dir: "/usr/local/texlive/2015/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/usr/local/texlive/2015/texmf-var/fonts/map/dvipdfmx/updmap"
updmap is creating new map files
using the following configuration:
LW35 font names : URWkb (/usr/local/texlive/2015/texmf-dist/web2c/updmap.cfg)
prefer outlines : true (/usr/local/texlive/2015/texmf-dist/web2c/updmap.cfg)
texhash enabled : true
download standard fonts (dvips) : true (/usr/local/texlive/2015/texmf-dist/web2c/updmap.cfg)
download standard fonts (pdftex) : true (/usr/local/texlive/2015/texmf-dist/web2c/updmap.cfg)
kanjiEmbed replacement string : hiragino (/usr/local/texlive/2015/texmf-config/web2c/updmap.cfg)
kanjiVariant replacement string : (default)
create a mapfile for pxdvi : false (default)
Scanning for LW35 support files [ 3 files]
Scanning for MixedMap entries [ 44 files]
Scanning for KanjiMap entries [ 6 files]
Scanning for Map entries [248 files]
Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...
Files generated:
/usr/local/texlive/2015/texmf-var/fonts/map/dvips/updmap:
15796 2016-02-20 23:39:55 builtin35.map
21269 2016-02-20 23:39:55 download35.map
1607557 2016-02-20 23:39:56 psfonts_pk.map
1868452 2016-02-20 23:39:56 psfonts_t1.map
1862662 2016-02-20 23:39:55 ps2pk.map
14 2016-02-20 23:39:56 psfonts.map -> psfonts_t1.map
/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap:
1862669 2016-02-20 23:39:56 pdftex_dl14.map
1861004 2016-02-20 23:39:56 pdftex_ndl14.map
15 2016-02-20 23:39:56 pdftex.map -> pdftex_dl14.map
/usr/local/texlive/2015/texmf-var/fonts/map/dvipdfmx/updmap:
6592 2016-02-20 23:39:55 kanjix.map
Transcript written on "/usr/local/texlive/2015/texmf-var/web2c/updmap.log".
updmap: Updating ls-R files.
TexShopの削除とbrewcask から最新版をインストール
$ sudo rm /Applications/TeXShop.app
$ brew cask install texshop
TeXShopの環境設定
Sourceタブ
[Set Default Values]から "pTeX (ptex2pdf)" を選択
Encoding で Unicode (UTF-8) を選択
Engineタブ
pdfTeX の Tex
pdftex --file-line-error --synctex=1
pdfTeX の Latex
pdflatex --file-line-error --synctex=1
TeX + dvips + distiller の Tex
ptex2pdf -e -ot "-synctex=1 -file-line-error"
TeX + dvips + distiller の Latex
ptex2pdf -l -ot "-synctex=1 -file-line-error"
定期的なアップデート
$ tlmgr update --self --all
Reference
TeX Wiki - OS X 10.11 El Capitan への対応
https://texwiki.texjp.org/?TeX%20Live%2FMac#elcapitan