Logo address

UTF8 TeX

/usr/local/teTeX/texmf/doc/latex/CJK/examples/UTF8.tex
/usr/local/teTeX/texmf/doc/latex/CJK/INSTALL
/usr/local/teTeX/texmf/tex/latex/CJK/UTF8

トラブル1

bash$ latex UTF8.tex
...
! LaTeX Error: File `CJK.sty' not found.

CJK.sty は

/usr/local/teTeX/texmf/tex/latex/CJK/CJK.sty
に置かれている。
対策
$HOME/bashrc
LATEX=/usr/local/teTeX/texmf/tex/latex
TEXINPUTS=.:$HOME/lib/tex/input:$LATEX//
export TEXINPUTS
ここに //
注意:TEXINPUTS でカレントディレクトリを指定しないと
bash$ latex a.tex
で a.tex を認識しない。

トラブル2

I can't find file cyberb00

README file

The file UTF8.tex uses the Unicode font `cyberbit.ttf' which can't be
distributed with the TeX Live CD 5 due to licensing restrictions.
It is available from
  ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbit.ZIP
Net info.

Cyberbit

http://www.esm.psu.edu/mac-tex/MacOSX-TeX-Digests/2003/MacOSX-TeX_Digest_05-24-03.html
- download "cyberbit.map" file from :
  http://delloye.free.fr/cyberbit.map
- move it to an appropriate directory on your local TeX-tree (I put it in
/usr/local/teTeX/share/texmf.local/pdftex/config)
- download "c70cyberbit.fd" file from :
  http://delloye.free.fr/c70cyberbit.fd
- move it to an appropriate directory on your local TeX-tree (I put it in
/usr/local/teTeX/share/texmf.local/tex/latex/misc)
- move the "Cyberbit.ttf" to an appropriate directory on your local TeX-tre=
e
(I put it in /usr/local/teTeX/share/texmf/fonts/truetype) (check in your
/usr/local/teTeX/share/texmf/web2c/texmf.cnf file the "%TrueType outline
fonts" line and the "TTFONTS" value. You have to copy the Cybebrbit.ttf fil=
e
in a directory included in the TTFONTS path.)

http://computing.ee.ethz.ch/sepp/ipe-6.0pre10-mo/manual_30.html

We now need a font map file to tell Pdflatex about the cyberbit font. Add a line

map +cyberb.map


to your pdftex.cfg. The contents of cyberb.map is as follows:


cyberb00 <cyberbit.ttf <cyberb00.enc
...
cyberbff <cyberbit.ttf <cyberbff.enc

Cannot find subfont definition ...

bash$ ttf2tfm cyberbit cyberb@Unicode@
This is ttf2tfm version 1.4
ttf2tfm: ERROR: Cannot find subfont definition file `Unicode.sfd'.
解決法:
Unicode.sfd/usr/local/teTeX/texmf/ttf2pk に置かれている。これを cyberbit.ttf と同じディレクトリにコピーする。但し多数のフォントファイルを作り出すのでこの展開は単独のディレクトリで行った方が良い。
生成されたファイルを /usr/local/teTeX/texmf/fonts/tfm/cyberbit にコピーする。
mktexlsr を実行する

Could not map typeface ...

/usr/local/teTeX/share/texmf/web2c/mktexnam: Could not map typeface abbreviation yb for cyberb00.
/usr/local/teTeX/share/texmf/web2c/mktexnam: Need to update /usr/local/teTeX/share/texmf/fontname/special.map?
なぜ /usr/local/teTeX/texmf/web2c/mktexnam ではなく /usr/local/teTeX/share/texmf/web2c/mktexnam なのか?

mktexnam のソースには
# maketexnam -- find PK and TFM names.
と書いてある。

font T1/song/m/n/10/cyberb00 at 12.0pts (or any other font) not loadable: Metric tfm file not found
http://lists.suse.com/archive/m17n/2003-Feb/0022.html

If you still have the font, this example file will work if you just
copy the font to /usr/X11R6/lib/X11/fonts/truetype/cyberbit.ttf and
run

    SuSEconfig --module cjk-latex

SuSEconfig: Command not found.

http://project.ktug.or.kr/dvipdfmx/