* 最小環境 $ sudo apt-get install task-texlive $ sudo apt-get install TrueType-ipafont OpenType-ipaexfont * IPA/IPAEX 用の map ファイルを追加 /usr/share/texmf/fonts/map/dvipdfm/ptexlive |-- ... |-- ptex-ipa.map `-- ptex-ipaex.map /usr/share/texmf/fonts/map/dvipdfm/otf |-- ... |-- otf-ipa.map `-- otf-ipaex.map * texmf/fonts/truetype 以下にフォントのシンボリックリンクを張る(コピーしてもよい) $ cd /usr/share/texmf/fonts/truetype/public/ipaex $ sudo ln -sf $(rpm -ql {TrueType-ipa,OpenType-ipaex}font-{mincho,gothic} | egrep "ttf$") . # 実は、CIDFont 名でシンボリックリンクを張る方が、 # dvi (pxdvik, dvips, dvipdfmx), ps (ghostscript), pdf で一貫したフォント名管理ができるが…、ここでは省略。 # IPAMincho.ttf, IPAGothic.ttf, IPAexMincho.ttf, IPAexGothic.ttf * ls-R を更新 ** 追加した map ファイルと *.ttf たちが追加される。 $ sudo mktexlsr /usr/share/texmf * /usr/share/texmf-config/web2c/updmap.cfg を以下のようになるように「直接」編集 ** IPA 明朝、IPA ゴシックフォントを埋め込む ** ptex-ipa.map, otf-ipa.map を有効 ** vine.map を無効 # kanjiEmbed {noEmbed|hiragino|kozuka|morisawa|ipa-ttf|ipa-otf|etc..} kanjiEmbed ipa # Japanese font map KanjiMap ptex-@kanjiEmbed@.map #! KanjiMap utf-@kanjiEmbed@.map KanjiMap otf-@kanjiEmbed@.map #! KanjiMap otf-cktx.map KanjiMap morisawa.map #! KanjiMap vine.map #! KanjiMap otf-noEmbed.map * updmap を実行 $ sudo updmap-sys * テスト pdffonts コマンドが必要 $ sudo apt-get install poppler-utils beefplate.tex, test1.tex test2.tex から $ x=beefplate && platex $x && dvipdfmx $x && pdffonts $x.pdf This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) (./beefplate.tex pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) (/usr/share/texmf/ptex/platex/js/jsarticle.cls Document Class: jsarticle 2010/03/14 okumura ) (/usr/share/texmf/ptex/platex/otf/otf.sty (/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./beefplate.aux) [1] (./beefplate.aux) ) Output written on beefplate.dvi (1 page, 580 bytes). Transcript written on beefplate.log. beefplate.dvi -> beefplate.pdf [1] ** WARNING ** UCS-4 TrueType cmap table... 17315 bytes written name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- EOYNBB+IPAMincho CID TrueType yes yes no 5 0 QFICKX+CMR10 Type 1C yes yes no 6 0 $ x=test1 && platex $x && dvipdfmx $x && pdffonts $x.pdf This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) (./test1.tex pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) (/usr/share/texmf/ptex/platex/base/jarticle.cls Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class (/usr/share/texmf/ptex/platex/base/jsize10.clo)) No file test1.aux. [1] (./test1.aux) ) Output written on test1.dvi (1 page, 328 bytes). Transcript written on test1.log. test1.dvi -> test1.pdf [1] ** WARNING ** UCS-4 TrueType cmap table... ** WARNING ** UCS-4 TrueType cmap table... 6817 bytes written name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- ECDAMY+IPAMincho CID TrueType yes yes no 5 0 LGHAGF+IPAGothic CID TrueType yes yes no 7 0 KLQNXS+CMR10 Type 1C yes yes no 8 0 $ x=test2 && platex $x && dvipdfmx $x && pdffonts $x.pdf This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) (./test2.tex pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) (/usr/share/texmf/ptex/platex/base/jarticle.cls Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class (/usr/share/texmf/ptex/platex/base/jsize10.clo)) (/usr/share/texmf/ptex/platex/otf/otf.sty (/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) No file test2.aux. [1] (./test2.aux) ) Output written on test2.dvi (1 page, 448 bytes). Transcript written on test2.log. test2.dvi -> test2.pdf [1] ** WARNING ** UCS-4 TrueType cmap table... ** WARNING ** UCS-4 TrueType cmap table... 9265 bytes written name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- CUFWZD+IPAMincho CID TrueType yes yes no 5 0 OOJODJ+IPAGothic CID TrueType yes yes no 7 0 CKHEOT+CMR10 Type 1C yes yes no 8 0 * IPAEX に変更してもいけます $ sudo updmap-sys --setoption kanjiEmbed ipaex $ x=beefplate && platex $x && dvipdfmx $x && pdffonts $x.pdf This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) (./beefplate.tex pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) (/usr/share/texmf/ptex/platex/js/jsarticle.cls Document Class: jsarticle 2010/03/14 okumura ) (/usr/share/texmf/ptex/platex/otf/otf.sty (/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./beefplate.aux) [1] (./beefplate.aux) ) Output written on beefplate.dvi (1 page, 580 bytes). Transcript written on beefplate.log. beefplate.dvi -> beefplate.pdf [1] ** WARNING ** UCS-4 TrueType cmap table... 16960 bytes written name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- ZBIQZB+IPAexMincho CID TrueType yes yes no 5 0 WNEUSF+CMR10 Type 1C yes yes no 6 0 $ x=test1 && platex $x && dvipdfmx $x && pdffonts $x.pdf This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) (./test1.tex pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) (/usr/share/texmf/ptex/platex/base/jarticle.cls Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class (/usr/share/texmf/ptex/platex/base/jsize10.clo)) (./test1.aux) [1] (./test1.aux ) ) Output written on test1.dvi (1 page, 328 bytes). Transcript written on test1.log. test1.dvi -> test1.pdf [1] ** WARNING ** UCS-4 TrueType cmap table... ** WARNING ** UCS-4 TrueType cmap table... 6877 bytes written name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- NAZAQI+IPAexMincho CID TrueType yes yes no 5 0 ITXSBP+IPAexGothic CID TrueType yes yes no 7 0 GHJCDN+CMR10 Type 1C yes yes no 8 0 $ x=test2 && platex $x && dvipdfmx $x && pdffonts $x.pdf This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) (./test2.tex pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) (/usr/share/texmf/ptex/platex/base/jarticle.cls Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class (/usr/share/texmf/ptex/platex/base/jsize10.clo)) (/usr/share/texmf/ptex/platex/otf/otf.sty (/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./test2.aux) [1] (./test2.aux ) ) Output written on test2.dvi (1 page, 448 bytes). Transcript written on test2.log. test2.dvi -> test2.pdf [1] ** WARNING ** UCS-4 TrueType cmap table... ** WARNING ** UCS-4 TrueType cmap table... 9036 bytes written name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- QTIFFT+IPAexMincho CID TrueType yes yes no 5 0 BVXWPR+IPAexGothic CID TrueType yes yes no 7 0 MBSKXS+CMR10 Type 1C yes yes no 8 0