On Tue, Dec 10, 2002 at 06:32:49AM +0100, Tomasz Wegrzanowski wrote: > What do I have to install and do to be able to use CJK in UTF8 with LaTeX ? > > 1. > UTF8 example from cjk-latex doesn't work (tons of errors) I got this one working last night, on Debian unstable... I have a whole bunch of packages installed, so no guarantees what does what, but running latex on it produced only missing font errors. So I grabbed the Cyberbit font recommended from Mozilla.org (actually it comes from Netscape.org's website) and put it in as /usr/local/share/texmf/fonts/truetype/cyberbit.ttf and then ran ttf2tfm cyberbit cyberb@Unicode@ (I got this line from /etc/ttf2pk/ttfonts.map which, the docs imply to me, should happen automatically, but it didn't) as root, which found the font and created a whole bunch of tfm files called cyberbxx (xx is 00-ff), which I put in /usr/local/share/texmf/fonts/tfm/ And then the example worked, and dvips was able to DVI it acceptably, as was ps2pdf. I got better looking results from pdflatex though, which has generally been my experience. :-) Now I have to work out how I can use other fonts in UTF-8 mode (I'm not that good at latex yet to really understand what the tfm files are doing and what the font commands in the UTF-8 test file are doing) and whether I can make this work with the ucs.sty method of UTF-8ing latex. (I might be able to, since I now have C40/m/n working...) Anyway, here's the output of my successful run of the UTF-8 file using pdflatex, in case it has any clues to making it work... I can try and work out what packages do what if it's needed. This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5) (format=pdflatex 2003.3.7) 10 MAR 2003 03:36 **UTF8.tex (./UTF8.tex{/usr/share/texmf/pdftex/config/pdftex.cfg} LaTeX2e <2001/06/01> Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n ohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2001/04/21 v1.4e Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size12.clo File: size12.clo 2001/04/21 v1.4e Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texmf/tex/latex/CJK/CJK.sty Package: CJK 2002/06/17 4.5.1 (/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty File: MULEenc.sty 2002/06/17 4.5.1 ) (/usr/share/texmf/tex/latex/CJK/CJK.enc File: CJK.enc 2002/06/17 4.5.1 ) LaTeX Info: Redefining \selectfont on input line 661. \CJK@indent=\box26 ) (/usr/share/texmf/tex/latex/base/fontenc.sty Package: fontenc 2001/06/05 v1.94 Standard LaTeX package (/usr/share/texmf/tex/latex/base/t1enc.def File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file LaTeX Font Info: Redeclaring font encoding T1 on input line 38. )) (./UTF8.aux) \openout1 = `UTF8.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C00/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C09/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C10/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C20/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C19/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C40/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C42/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C43/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C50/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C52/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C49/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C60/mj/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C61/mj/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C63/mj/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C64/mj/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C65/mj/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C70/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C31/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C32/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C33/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C34/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C35/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C36/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C37/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C80/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C81/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C01/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C11/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C21/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C41/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for C62/song/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. (/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.bdg File: UTF8.bdg 2002/06/17 4.5.1 ) (/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.enc File: UTF8.enc 2002/06/17 4.5.1 ) (/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.chr File: UTF8.chr 2002/06/17 4.5.1 ) LaTeX Font Info: Try loading font information for C70+song on input line 25. (/usr/share/texmf/tex/latex/CJK/UTF8/c70song.fd File: c70song.fd 2002/06/17 4.5.1 ) [1 {/usr/share/texmf/dvips/config/pdftex.map}{/usr/share/texmf/dvips/config/arphic.map}] (./UTF8.aux) ) Here is how much of TeX's memory you used: 1328 strings out of 95437 12902 string characters out of 1190234 58898 words of memory out of 1000001 4374 multiletter control sequences out of 10000+50000 6324 words of font info for 21 fonts, out of 500000 for 1000 14 hyphenation exceptions out of 1000 22i,4n,21p,169b,228s stack positions out of 1500i,500n,5000p,200000b,5000s 9 PDF objects out of 300000 0 named destinations out of 131072 0 words of extra memory for PDF output out of 65536 </var/cache/fonts/pk/modeless/cyberb75.720pk> </var/cache/fonts/pk/modeless/cyberb4e.720pk> </var/cache/fonts/pk/modeless/cyberb30.720pk> </var/cache/fonts/pk/modeless/cyberb03.720pk> </var/cache/fonts/pk/modeless/cyberb00.720pk> Output written on UTF8.pdf (1 page, 13809 bytes). -- ----------------------------------------------------------- Paul "TBBle" Hampson, MCSE 6th year CompSci/Asian Studies student, ANU The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361) Paul.Hampson@Anu.edu.au Of course Pacman didn't influence us as kids. If it did, we'd be running around in darkened rooms, popping pills and listening to repetitive music. -- Kristian Wilson, Nintendo, Inc, 1989 This email is licensed to the recipient for non-commercial use, duplication and distribution. -----------------------------------------------------------
Attachment:
pgp00000.pgp
Description: PGP signature