I installed texlive in Ubuntu 10.04LTS according to this site ;-)
Step1. install dvipsk-ja (default package is broken at 2011.06.11 JST)
> sudo add-apt-repository ppa:cosmos-door/dvipsk-ja
> sudo aptitude update
> sudo aptitude upgrade
> sudo aptitude install dvipsk-ja
Step2. install packages
> sudo aptitude install texlive texlive-math-extra texlive-latex-extra texlive-latex-extra-doc texlive-fonts-extra texlive-fonts-extra-doc texlive-fonts-recommended texlive-fonts-recommended-doc texlive-formats-extra texlive-latex-recommended texlive-latex-recommended texlive-extra-utils texlive-font-utils texlive-doc-ja ptex-bin jbibtex-bin mendexk okumura-clsfiles latex-cjk-japanese cmap-adobe-japan1 cmap-adobe-japan2 cmap-adobe-cns1 cmap-adobe-gb1 gs-cjk-resource ghostscript xdvik-ja dvi2ps dvi2ps-fontdesc-morisawa5 jmpost latexmk latex-mk pybliographer yatex
Step3. update latex environment
> updmap
> sudo mktexlsr
> sudo updmap-sys
> sudo dpkg-reconfigure ptex-jisfonts
> sudo jisftconfig add
Test. Can I make japanese document with texlive?
Firstly, I prepare for a sample latex document encoded by EUC-JP.
----------------------------------------------
[ex1.tex]
\documentclass{jarticle}
\begin{document}
ちょっとチェック
\end{document}
----------------------------------------------
> platex ex1.tex
This is pTeXk, Version 3.141592-p3.1.11 (euc) (Web2C 7.5.4)
%&-line parsing enabled.
(./ex1.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
(/usr/share/texmf/ptex/platex/base/jarticle.cls
Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
(/usr/share/texmf/ptex/platex/base/jsize10.clo)) (./ex1.aux) [1] (./ex1.aux) )
(see the transcript file for additional information)
Output written on ex1.dvi (1 page, 268 bytes).
Transcript written on ex1.log.
> xdvi ex1.dvi
[Japanese characters are displayed correctly :-)]
> dvipdfmx ex1.dvi
ex1.dvi -> ex1.pdf
** WARNING ** Failed to load AGL file "pdfglyphlist.txt"...
** WARNING ** Failed to load AGL file "glyphlist.txt"...
[1
** ERROR ** Could not find encoding file "H".
Output file removed.
> sudo vi /usr/share/texmf/web2c/texmf.cnf
% CMap files.
CMAPFONTS = .;$TEXMF/fonts/cmap//;/usr/share/ghostscript/CMap
> dvipdfmx ex1.dvi
ex1.dvi -> ex1.pdf
** WARNING ** Failed to load AGL file "pdfglyphlist.txt"...
** WARNING ** Failed to load AGL file "glyphlist.txt"...
[1]
2248 bytes written
> acroread ex1.pdf
[Japanese characters are displayed correctly :-)]
No comments:
Post a Comment