teTeXでPDF

日付 2006.11.15
タイトル teTeXでPDF
本文
teTeXでPDF


[download] ====================================================
以下の4ファイルをどこか一箇所にまとめてダウンロードします。

tetex-src-3.0.tar.gz
(from ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/)

tetex-texmf-3.0.tar.gz
(from ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/)

ptetex3-20050803.tar.gz
(from http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/)

ptetex-cmap-20050607.tar.gz
(from http://tutimura.ath.cx/~nob/tex/ptetex/ptetex-cmap/)



[展開とpatch] =================================================
tar xzvf ptetex3-20050803.tar.gz &&
tar xzvf ptetex-cmap-20050607.tar.gz &&
cd ptetex3-20050803 &&
rm /usr/local/src/tetex-src-3.0/ /usr/local/teTeX/ -rf


cat << 'EOT' | patch -p0 4make-install.sh
@@ -42,18 +42,18 @@
echo "[--tetex--] make install"
$MAKE $install || exit

-cat <<EOF > $TEXMF/xdvi/vfontmap || exit
-%
-% vfontmap -- Do NOT edit this file BY HAND!!
-%
-% An effective file is
-% "$REAL_DATA/texmf-var/fonts/map/xdvi/updmap/vfontmap"
-% which is generated by 'updmap-sys'.
-%
-% Use "updmap-sys --setoption xdviRml mincho-font"
-% and "updmap-sys --setoption xdviGbm gothic-font".
-%
-EOF
+#cat <<EOF > $TEXMF/xdvi/vfontmap || exit
+#%
+#% vfontmap -- Do NOT edit this file BY HAND!!
+#%
+#% An effective file is
+#% "$REAL_DATA/texmf-var/fonts/map/xdvi/updmap/vfontmap"
+#% which is generated by 'updmap-sys'.
+#%
+#% Use "updmap-sys --setoption xdviRml mincho-font"
+#% and "updmap-sys --setoption xdviGbm gothic-font".
+#%
+#EOF

echo "[--ptex--] configure"
cd $TETEX/texk/web2c/ptex || exit
EOT


cat << 'EOT' | patch -p0 7test.sh
@@ -40,7 +40,7 @@

dvips testpage.dvi || exit
dvipdfm testpage.dvi || exit
-xdvi -debug 8 testpage.dvi || exit
+#xdvi -debug 8 testpage.dvi || exit

# $TEXMF/ptex/platex/jsclasses/jsclasses.dtx
platex jsclasses.dtx || exit
@@ -48,14 +48,14 @@

dvips jsclasses.dvi || exit
dvipdfmx jsclasses.dvi || exit
-xdvi -debug 8 jsclasses.dvi || exit
+#xdvi -debug 8 jsclasses.dvi || exit

# $TEXMF/ptex/platex209/sample.tex
platex209 sample.tex || exit

dvips sample.dvi || exit
dvipdfmx sample.dvi || exit
-xdvi -debug 8 sample.dvi || exit
+#xdvi -debug 8 sample.dvi || exit

# $TEXMF/packages/utfsrc/test/utfsmpl.tex
if test -f $TEXMF/packages/utfsrc/test/utfsmpl.tex; then
EOT




[コンパイルとインストール] ====================================
CONF_OPTION='--without-xdvik --without-oxdvik' make &&
make font &&
pushd . && cd ../ptetex-cmap-20050607 && make


[設定] ========================================================
vi /etc/profile.d/teTex.sh
>>>
export PATH=/usr/local/teTeX/bin:$PATH
<<<


[使ってみる] ==================================================
# tex形式のファイルを作成
echo '\documentclass{jarticle}
\begin{document}
どらどらぽんぽん\\
\end{document}' > pdftest.tex

# platexでコンパイル
platex pdftest

# dvi形式をPDFへ変換
dvipdfmx pdftest

# 以上でpdftest.pdfが出来ているはず


[依存性等メモ] ================================================
印刷サポート関連の依存性が結構ある。ghostscriptを入れるのに以下のような依存性
があった。

perl-URI-1.21-7.noarch.rpm
perl-HTML-Tagset-3.03-28.noarch.rpm
perl-HTML-Parser-3.26-17.i386.rpm
perl-libwww-perl-5.65-6.noarch.rpm

perl-XML-Parser-2.31-15.i386.rpm
perl-libxml-perl-0.07-28.noarch.rpm

perl-DateManip-5.40-30.noarch.rpm
perl-Parse-Yapp-1.05-30.noarch.rpm
perl-XML-Encoding-1.01-23.noarch.rpm
perl-libxml-enno-1.02-29.noarch.rpm

perl-XML-Dumper-0.4-25.noarch.rpm
perl-XML-Twig-3.09-3.noarch.rpm
perl-XML-Grove-0.46alpha-25.noarch.rpm

Omni-0.7.2-4.i386.rpm
urw-fonts-2.0-29.noarch.rpm
cups-libs-1.1.17-13.i386.rpm
XFree86-truetype-fonts-4.3.0-2.i386.rpm
VFlib2-2.25.6-10.i386.rpm

gimp-print-4.2.4-5.i386.rpm
ghostscript-fonts-5.50-9.noarch.rpm
ghostscript-7.05-32.i386.rpm