MBAのghostscript(in MacPorts)をアップデートしたら、dvipdfmxがうまく動作しなくなった。TeX環境を整備しなおす。

今回はMacPortsptexを入れることにする。

$ sudo port install ptex +utf8 +no_x11

      • > Computing dependencies for pTeX
      • > Dependencies to be installed:

gd2 autoconf help2man gettext expat libiconv ncurses p5.12-locale-gettext perl5.12 gdbm m4 perl5 automake fontconfig freetype bzip2 zlib jpeg libpng libtool ghostscript-fonts-hiragino ghostscript jbig2dec lcms2 tiff libidn libpaper pkgconfig nkf t1lib t1utils texi2html texinfo

で、OK。TeXShopの設定を変更する。

  1. 「書類」タグをクリックし、 エンコーディングを「Unicode (UTF-8)」に変更。
  2. 「内部設定」タグをクリックし、 TeX、Distiller のパス設定を「/opt/local/bin」に設定
  3. TeX + dvips + distiller の TeX プログラムを「~/Library/TeXShop/bin/ptex2pdf-utf8」に設定。
  4. TeX + dvips + distiller の LaTeX プログラムを「~/Library/TeXShop/bin/platex2pdf-utf8」に設定。

「/opt/local/share/texmf-local」に以下のファイルをコピーして、ターミナルから以下のコマンドを実行する。

$ sudo mktexlsr

  • bounddvi.sty
  • endnotesj.sty
  • furikana.sty (here)
  • furiknkt.sty (here)
  • jdkintou.sty (here)
  • prruby.sty
  • tarticle2.cls (original)

link