Ubuntu の日本語レポジトリの TeX を導入してみた ここを参考にさせていただいた
$ wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add - $ wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add - $ sudo wget https://www.ubuntulinux.jp/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/ubuntu-ja.list $ sudo apt-get update $ sudo apt-get upgrade
$ sudo aptitude install latex-env-ja $ sudo aptitude install latex-extra-ja $ sudo jisftconfig add $ sudo aptitude install ghostscript $ sudo aptitude install gs-cjk-resource $ sudo aptitude install gv $ sudo aptitude install cmap-adobe-japan1
/usr/local/bin に以下の platex.sh を作成
#!/bin/sh name=`echo $1 | sed 's/\.tex$//' | xargs basename` temp=`mktemp /tmp/$name.XXXXXXXX` nkf -e $1 > $temp /usr/bin/platex $temp rm -f $temp
$ chmod 777 /usr/local/bin/platex.sh
$ sudo apt-get install nkf $ cd $ echo "alias platex='source /usr/local/bin/platex.sh'" >> ~/.bashrc
ここを参考にさせてもらう
** WARNING ** Failed to load AGL file "pdfglyphlist.txt"... ** WARNING ** Failed to load AGL file "glyphlist.txt"... ** ERROR ** Could not find encoding file "H".
$ echo f jis-cjk.map | sudo tee -a /etc/texmf/dvipdfmx/dvipdfmx.cfg $ wget http://w32tex.org/current/dvipdfm-w32.tar.bz2 $ tar jxvf dvipdfm-w32.tar.bz2 $ cd ./share/texmf/fonts/map/agl/ $ sudo cp -v pdfglyphlist.txt glyphlist.txt /etc/texmf/dvipdfmx $ sudo vim /etc/texmf/texmf.cnf 412行目を以下のように変更 % CMap files.
CMAPFONTS = .;$TEXMF/fonts/cmap//;/usr/share/fonts/cmap//
$ sudo update-texmf