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