source: people/munepi/ptl09vl6/00README.munepi @ 7083

Revision 7083, 7.6 KB checked in by munepi, 11 years ago (diff)

updated 00README.munepi

Line 
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..}
35kanjiEmbed ipa
36
37# Japanese font map
38KanjiMap ptex-@kanjiEmbed@.map
39#! KanjiMap utf-@kanjiEmbed@.map
40KanjiMap otf-@kanjiEmbed@.map
41#! KanjiMap otf-cktx.map
42KanjiMap morisawa.map
43
44#! KanjiMap vine.map
45#! KanjiMap otf-noEmbed.map
46
47
48* updmap を実行
49$ sudo updmap-sys
50
51
52* テスト
53pdffonts コマンドが必要
54$ sudo apt-get install poppler-utils
55
56beefplate.tex, test1.tex test2.tex から
57
58$ x=beefplate && platex $x && dvipdfmx $x && pdffonts $x.pdf
59This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
60(./beefplate.tex
61pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
62(/usr/share/texmf/ptex/platex/js/jsarticle.cls
63Document 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) )
67Output written on beefplate.dvi (1 page, 580 bytes).
68Transcript written on beefplate.log.
69beefplate.dvi -> beefplate.pdf
70[1]
71** WARNING ** UCS-4 TrueType cmap table...
72
7317315 bytes written
74name                                 type              emb sub uni object ID
75------------------------------------ ----------------- --- --- --- ---------
76EOYNBB+IPAMincho                     CID TrueType      yes yes no       5  0
77QFICKX+CMR10                         Type 1C           yes yes no       6  0
78
79$ x=test1 && platex $x && dvipdfmx $x && pdffonts $x.pdf
80This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
81(./test1.tex
82pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
83(/usr/share/texmf/ptex/platex/base/jarticle.cls
84Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
85(/usr/share/texmf/ptex/platex/base/jsize10.clo))
86No file test1.aux.
87[1] (./test1.aux) )
88Output written on test1.dvi (1 page, 328 bytes).
89Transcript written on test1.log.
90test1.dvi -> test1.pdf
91[1]
92** WARNING ** UCS-4 TrueType cmap table...
93** WARNING ** UCS-4 TrueType cmap table...
94
956817 bytes written
96name                                 type              emb sub uni object ID
97------------------------------------ ----------------- --- --- --- ---------
98ECDAMY+IPAMincho                     CID TrueType      yes yes no       5  0
99LGHAGF+IPAGothic                     CID TrueType      yes yes no       7  0
100KLQNXS+CMR10                         Type 1C           yes yes no       8  0
101
102$ x=test2 && platex $x && dvipdfmx $x && pdffonts $x.pdf
103This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
104(./test2.tex
105pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
106(/usr/share/texmf/ptex/platex/base/jarticle.cls
107Document 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))
111No file test2.aux.
112[1] (./test2.aux) )
113Output written on test2.dvi (1 page, 448 bytes).
114Transcript written on test2.log.
115test2.dvi -> test2.pdf
116[1]
117** WARNING ** UCS-4 TrueType cmap table...
118** WARNING ** UCS-4 TrueType cmap table...
119
1209265 bytes written
121name                                 type              emb sub uni object ID
122------------------------------------ ----------------- --- --- --- ---------
123CUFWZD+IPAMincho                     CID TrueType      yes yes no       5  0
124OOJODJ+IPAGothic                     CID TrueType      yes yes no       7  0
125CKHEOT+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
133This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
134(./beefplate.tex
135pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
136(/usr/share/texmf/ptex/platex/js/jsarticle.cls
137Document 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) )
141Output written on beefplate.dvi (1 page, 580 bytes).
142Transcript written on beefplate.log.
143beefplate.dvi -> beefplate.pdf
144[1]
145** WARNING ** UCS-4 TrueType cmap table...
146
14716960 bytes written
148name                                 type              emb sub uni object ID
149------------------------------------ ----------------- --- --- --- ---------
150ZBIQZB+IPAexMincho                   CID TrueType      yes yes no       5  0
151WNEUSF+CMR10                         Type 1C           yes yes no       6  0
152$ x=test1 && platex $x && dvipdfmx $x && pdffonts $x.pdf
153This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
154(./test1.tex
155pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
156(/usr/share/texmf/ptex/platex/base/jarticle.cls
157Document 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) )
160Output written on test1.dvi (1 page, 328 bytes).
161Transcript written on test1.log.
162test1.dvi -> test1.pdf
163[1]
164** WARNING ** UCS-4 TrueType cmap table...
165** WARNING ** UCS-4 TrueType cmap table...
166
1676877 bytes written
168name                                 type              emb sub uni object ID
169------------------------------------ ----------------- --- --- --- ---------
170NAZAQI+IPAexMincho                   CID TrueType      yes yes no       5  0
171ITXSBP+IPAexGothic                   CID TrueType      yes yes no       7  0
172GHJCDN+CMR10                         Type 1C           yes yes no       8  0
173$ x=test2 && platex $x && dvipdfmx $x && pdffonts $x.pdf
174This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
175(./test2.tex
176pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
177(/usr/share/texmf/ptex/platex/base/jarticle.cls
178Document 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) )
183Output written on test2.dvi (1 page, 448 bytes).
184Transcript written on test2.log.
185test2.dvi -> test2.pdf
186[1]
187** WARNING ** UCS-4 TrueType cmap table...
188** WARNING ** UCS-4 TrueType cmap table...
189
1909036 bytes written
191name                                 type              emb sub uni object ID
192------------------------------------ ----------------- --- --- --- ---------
193QTIFFT+IPAexMincho                   CID TrueType      yes yes no       5  0
194BVXWPR+IPAexGothic                   CID TrueType      yes yes no       7  0
195MBSKXS+CMR10                         Type 1C           yes yes no       8  0
Note: See TracBrowser for help on using the repository browser.