1 | * 最小環境 |
---|
2 | $ sudo apt-get install task-texlive |
---|
3 | $ sudo apt-get install TrueType-ipafont OpenType-ipaexfont |
---|
4 | |
---|
5 | * IPA/IPAEX 用の map ファイルを追加 |
---|
6 | |
---|
7 | /usr/share/texmf/fonts/map/dvipdfm/ptexlive |
---|
8 | |-- ... |
---|
9 | |-- ptex-ipa.map |
---|
10 | `-- ptex-ipaex.map |
---|
11 | |
---|
12 | /usr/share/texmf/fonts/map/dvipdfm/otf |
---|
13 | |-- ... |
---|
14 | |-- otf-ipa.map |
---|
15 | `-- otf-ipaex.map |
---|
16 | |
---|
17 | * texmf/fonts/truetype 以下にフォントのシンボリックリンクを張る(コピーしてもよい) |
---|
18 | $ cd /usr/share/texmf/fonts/truetype/public/ipaex |
---|
19 | $ sudo ln -sf $(rpm -ql {TrueType-ipa,OpenType-ipaex}font-{mincho,gothic} | egrep "ttf$") . |
---|
20 | |
---|
21 | # 実は、CIDFont 名でシンボリックリンクを張る方が、 |
---|
22 | # dvi (pxdvik, dvips, dvipdfmx), ps (ghostscript), pdf で一貫したフォント名管理ができるが…、ここでは省略。 |
---|
23 | # IPAMincho.ttf, IPAGothic.ttf, IPAexMincho.ttf, IPAexGothic.ttf |
---|
24 | |
---|
25 | * ls-R を更新 |
---|
26 | ** 追加した map ファイルと *.ttf たちが追加される。 |
---|
27 | $ sudo mktexlsr /usr/share/texmf |
---|
28 | |
---|
29 | * /usr/share/texmf-config/web2c/updmap.cfg を以下のようになるように「直接」編集 |
---|
30 | ** IPA 明朝、IPA ゴシックフォントを埋め込む |
---|
31 | ** ptex-ipa.map, otf-ipa.map を有効 |
---|
32 | ** vine.map を無効 |
---|
33 | |
---|
34 | # kanjiEmbed {noEmbed|hiragino|kozuka|morisawa|ipa-ttf|ipa-otf|etc..} |
---|
35 | kanjiEmbed ipa |
---|
36 | |
---|
37 | # Japanese font map |
---|
38 | KanjiMap ptex-@kanjiEmbed@.map |
---|
39 | #! KanjiMap utf-@kanjiEmbed@.map |
---|
40 | KanjiMap otf-@kanjiEmbed@.map |
---|
41 | #! KanjiMap otf-cktx.map |
---|
42 | KanjiMap morisawa.map |
---|
43 | |
---|
44 | #! KanjiMap vine.map |
---|
45 | #! KanjiMap otf-noEmbed.map |
---|
46 | |
---|
47 | |
---|
48 | * updmap を実行 |
---|
49 | $ sudo updmap-sys |
---|
50 | |
---|
51 | |
---|
52 | * テスト |
---|
53 | pdffonts コマンドが必要 |
---|
54 | $ sudo apt-get install poppler-utils |
---|
55 | |
---|
56 | beefplate.tex, test1.tex test2.tex から |
---|
57 | |
---|
58 | $ x=beefplate && platex $x && dvipdfmx $x && pdffonts $x.pdf |
---|
59 | This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) |
---|
60 | (./beefplate.tex |
---|
61 | pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) |
---|
62 | (/usr/share/texmf/ptex/platex/js/jsarticle.cls |
---|
63 | Document Class: jsarticle 2010/03/14 okumura |
---|
64 | ) (/usr/share/texmf/ptex/platex/otf/otf.sty |
---|
65 | (/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./beefplate.aux) [1] |
---|
66 | (./beefplate.aux) ) |
---|
67 | Output written on beefplate.dvi (1 page, 580 bytes). |
---|
68 | Transcript written on beefplate.log. |
---|
69 | beefplate.dvi -> beefplate.pdf |
---|
70 | [1] |
---|
71 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
72 | |
---|
73 | 17315 bytes written |
---|
74 | name type emb sub uni object ID |
---|
75 | ------------------------------------ ----------------- --- --- --- --------- |
---|
76 | EOYNBB+IPAMincho CID TrueType yes yes no 5 0 |
---|
77 | QFICKX+CMR10 Type 1C yes yes no 6 0 |
---|
78 | |
---|
79 | $ x=test1 && platex $x && dvipdfmx $x && pdffonts $x.pdf |
---|
80 | This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) |
---|
81 | (./test1.tex |
---|
82 | pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) |
---|
83 | (/usr/share/texmf/ptex/platex/base/jarticle.cls |
---|
84 | Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class |
---|
85 | (/usr/share/texmf/ptex/platex/base/jsize10.clo)) |
---|
86 | No file test1.aux. |
---|
87 | [1] (./test1.aux) ) |
---|
88 | Output written on test1.dvi (1 page, 328 bytes). |
---|
89 | Transcript written on test1.log. |
---|
90 | test1.dvi -> test1.pdf |
---|
91 | [1] |
---|
92 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
93 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
94 | |
---|
95 | 6817 bytes written |
---|
96 | name type emb sub uni object ID |
---|
97 | ------------------------------------ ----------------- --- --- --- --------- |
---|
98 | ECDAMY+IPAMincho CID TrueType yes yes no 5 0 |
---|
99 | LGHAGF+IPAGothic CID TrueType yes yes no 7 0 |
---|
100 | KLQNXS+CMR10 Type 1C yes yes no 8 0 |
---|
101 | |
---|
102 | $ x=test2 && platex $x && dvipdfmx $x && pdffonts $x.pdf |
---|
103 | This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) |
---|
104 | (./test2.tex |
---|
105 | pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) |
---|
106 | (/usr/share/texmf/ptex/platex/base/jarticle.cls |
---|
107 | Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class |
---|
108 | (/usr/share/texmf/ptex/platex/base/jsize10.clo)) |
---|
109 | (/usr/share/texmf/ptex/platex/otf/otf.sty |
---|
110 | (/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) |
---|
111 | No file test2.aux. |
---|
112 | [1] (./test2.aux) ) |
---|
113 | Output written on test2.dvi (1 page, 448 bytes). |
---|
114 | Transcript written on test2.log. |
---|
115 | test2.dvi -> test2.pdf |
---|
116 | [1] |
---|
117 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
118 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
119 | |
---|
120 | 9265 bytes written |
---|
121 | name type emb sub uni object ID |
---|
122 | ------------------------------------ ----------------- --- --- --- --------- |
---|
123 | CUFWZD+IPAMincho CID TrueType yes yes no 5 0 |
---|
124 | OOJODJ+IPAGothic CID TrueType yes yes no 7 0 |
---|
125 | CKHEOT+CMR10 Type 1C yes yes no 8 0 |
---|
126 | |
---|
127 | |
---|
128 | |
---|
129 | * IPAEX に変更してもいけます |
---|
130 | $ sudo updmap-sys --setoption kanjiEmbed ipaex |
---|
131 | |
---|
132 | $ x=beefplate && platex $x && dvipdfmx $x && pdffonts $x.pdf |
---|
133 | This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) |
---|
134 | (./beefplate.tex |
---|
135 | pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) |
---|
136 | (/usr/share/texmf/ptex/platex/js/jsarticle.cls |
---|
137 | Document Class: jsarticle 2010/03/14 okumura |
---|
138 | ) (/usr/share/texmf/ptex/platex/otf/otf.sty |
---|
139 | (/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./beefplate.aux) [1] |
---|
140 | (./beefplate.aux) ) |
---|
141 | Output written on beefplate.dvi (1 page, 580 bytes). |
---|
142 | Transcript written on beefplate.log. |
---|
143 | beefplate.dvi -> beefplate.pdf |
---|
144 | [1] |
---|
145 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
146 | |
---|
147 | 16960 bytes written |
---|
148 | name type emb sub uni object ID |
---|
149 | ------------------------------------ ----------------- --- --- --- --------- |
---|
150 | ZBIQZB+IPAexMincho CID TrueType yes yes no 5 0 |
---|
151 | WNEUSF+CMR10 Type 1C yes yes no 6 0 |
---|
152 | $ x=test1 && platex $x && dvipdfmx $x && pdffonts $x.pdf |
---|
153 | This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) |
---|
154 | (./test1.tex |
---|
155 | pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) |
---|
156 | (/usr/share/texmf/ptex/platex/base/jarticle.cls |
---|
157 | Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class |
---|
158 | (/usr/share/texmf/ptex/platex/base/jsize10.clo)) (./test1.aux) [1] (./test1.aux |
---|
159 | ) ) |
---|
160 | Output written on test1.dvi (1 page, 328 bytes). |
---|
161 | Transcript written on test1.log. |
---|
162 | test1.dvi -> test1.pdf |
---|
163 | [1] |
---|
164 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
165 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
166 | |
---|
167 | 6877 bytes written |
---|
168 | name type emb sub uni object ID |
---|
169 | ------------------------------------ ----------------- --- --- --- --------- |
---|
170 | NAZAQI+IPAexMincho CID TrueType yes yes no 5 0 |
---|
171 | ITXSBP+IPAexGothic CID TrueType yes yes no 7 0 |
---|
172 | GHJCDN+CMR10 Type 1C yes yes no 8 0 |
---|
173 | $ x=test2 && platex $x && dvipdfmx $x && pdffonts $x.pdf |
---|
174 | This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009) |
---|
175 | (./test2.tex |
---|
176 | pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0) |
---|
177 | (/usr/share/texmf/ptex/platex/base/jarticle.cls |
---|
178 | Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class |
---|
179 | (/usr/share/texmf/ptex/platex/base/jsize10.clo)) |
---|
180 | (/usr/share/texmf/ptex/platex/otf/otf.sty |
---|
181 | (/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./test2.aux) [1] (./test2.aux |
---|
182 | ) ) |
---|
183 | Output written on test2.dvi (1 page, 448 bytes). |
---|
184 | Transcript written on test2.log. |
---|
185 | test2.dvi -> test2.pdf |
---|
186 | [1] |
---|
187 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
188 | ** WARNING ** UCS-4 TrueType cmap table... |
---|
189 | |
---|
190 | 9036 bytes written |
---|
191 | name type emb sub uni object ID |
---|
192 | ------------------------------------ ----------------- --- --- --- --------- |
---|
193 | QTIFFT+IPAexMincho CID TrueType yes yes no 5 0 |
---|
194 | BVXWPR+IPAexGothic CID TrueType yes yes no 7 0 |
---|
195 | MBSKXS+CMR10 Type 1C yes yes no 8 0 |
---|