
Ubuntu日本語フォーラム

ログインしていません。
初めまして、こんにちは。Ubuntu 8.04 を使用しています。
latexを使いたくて以下のページに記載されていると通りにインストールを進めてきたのですが、うまくいきません。
https://wiki.ubuntulinux.jp/JapaneseLocalizedDerivative/LaTeXForJapanese
一通りインストールし、「$platex test.tex」を実行すると以下のメッセージが表示され、「test.dvi」が生成されるのですが、英語の部分だけしか表示されず、日本語の部分は空白になってしまいます。
<メッセージここから>
This is pTeXk, Version 3.141592-p3.1.10 (euc) (Web2C 7.5.4)
%&-line parsing enabled.
(./test.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2005/12/01> patch level 0)
(/usr/share/texmf/ptex/platex/base/pl209.def
Entering pLaTeX 2.09 compatibility mode.
(/usr/share/texmf-texlive/tex/latex/base/latex209.def
Entering LaTeX 2.09 COMPATIBILITY MODE
*************************************************************
!!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!!
This mode attempts to provide an emulation of the LaTeX 2.09
author environment so that OLD documents can be successfully
processed. It should NOT be used for NEW documents!
New documents should use Standard LaTeX conventions and start
with the \documentclass command.
Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style
files that change any internal macros, especially not with
those that change the FONT SELECTION or OUTPUT ROUTINES.
Therefore such style files MUST BE UPDATED to use
Current Standard LaTeX: LaTeX2e.
If you suspect that you may be using such a style file, which
is probably very, very old by now, then you should attempt to
get it updated by sending a copy of this error message to the
author of that file.
*************************************************************
(/usr/share/texmf-texlive/tex/latex/base/tracefnt.sty)
(/usr/share/texmf-texlive/tex/latex/base/latexsym.sty))
(/usr/share/texmf/ptex/platex/base/ptrace.sty))
(/usr/share/texmf/ptex/platex/misc/jsarticle.cls
Document Class: jsarticle 2007/10/24 okumura
) (/usr/share/texmf-texlive/tex/latex/ntgclass/a4.sty)
No file test.aux.
(/usr/share/texmf-texlive/tex/latex/base/ulasy.fd) [1] (./test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 852 bytes).
Transcript written on test.log.
<メッセージここまで>
試した「test.tex」は以下の通りです。
\documentstyle[a4,12pt]{jsarticle}
\pagestyle{empty}
\title{Sample}
\author{Ichiro Tanaka}
\date{2008.4.20}
\begin{document}
\maketitle
\thispagestyle{empty}
\section{\LaTeXのテストです。}
LaTeXのテストです。
\end{document}
また、「test.dvi」を開くと「missfont.log」というファイルが生成されます。内容は
mktexpk --mfmode / --bdpi 600 --mag 1+199/600 --dpi 799 gbm-jis
mktexpk --mfmode / --bdpi 600 --mag 0+555/600 --dpi 555 rml-jis
mktexpk --mfmode / --bdpi 600 --mag 1+199/600 --dpi 799 gbm-jis
mktexpk --mfmode / --bdpi 600 --mag 0+555/600 --dpi 555 rml-jis
となっています。
Ubuntu linux を始めてまだ日が浅く、どういう状況に陥っているのかもわかりません。
どうか改善策をご享受ください。よろしくお願いします。
オフライン
documentstyleは古いLaTeX2.09用のコマンドです。一応、最新版LaTeX2eでも互換モードとして利用できるはずですが、特に理由がなければLaTeX2eに従って、documentstyleではなくdocumentclassを使った方がいいでしょう。
あと、TeXのソースファイルはEUC-JPで書いてください。
オフライン
お早いお返事ありがとうございます。
早速、documentclassに変更し、EUC-JPで保存して「$platex test2.tex」を実行しました。
すると以下のようなメッセージが表れ、残念なことにうまくいきません。
<メッセージここから>
This is pTeXk, Version 3.141592-p3.1.10 (euc) (Web2C 7.5.4)
%&-line parsing enabled.
(./test2.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2005/12/01> patch level 0)
(/usr/share/texmf/ptex/platex/misc/jsarticle.cls
Document Class: jsarticle 2007/10/24 okumura
)
LaTeX Warning: Unused global option(s):
[a4].
(./test2.aux) [1] (./test2.aux) )
(see the transcript file for additional information)
Output written on test2.dvi (1 page, 408 bytes).
Transcript written on test2.log.
<メッセージここまで>
「test2.tex」の内容は以下の通りです。
¥documentclass[a4,12pt]{jsarticle}
¥pagestyle{empty}
¥title{Sample}
¥author{Ichiro Tanaka}
¥date{2006.4.20}
¥begin{document}
¥section{¥LaTeXのテストです」}
こんにちは、LaTeXのテストです。
¥end{document}
「test2.dvi」を開くと「こんにちは、LaTeXのテストです。」が「ALaTeXgB」という具合に文字化けしてしまっています。「test2.log」を見ると「Missing character: There is no ^^82 in font cmss12!」といった文字列がズラリと並んでいます。日本語フォントに関して何か問題があるのでしょうか?
オフライン
ゆういぬ による投稿:
LaTeX Warning: Unused global option(s):
[a4].
jsarticleだと、a4じゃなくてa4paperじゃないですっけ?
ゆういぬ による投稿:
「test2.dvi」を開くと「こんにちは、LaTeXのテストです。」が「ALaTeXgB」という具合に文字化けしてしまっています。「test2.log」を見ると「Missing character: There is no ^^82 in font cmss12!」といった文字列がズラリと並んでいます。日本語フォントに関して何か問題があるのでしょうか?
何を使ってDVIを表示させようとしているのでしょうか。例えばNautilusからダブルクリックだと文書ビューア(Evince)が起動しますが、これは日本語DVIファイルに対応していません。日本語DVIファイルを表示させたい場合は、端末から
xdvi test2.dvi
と実行してください。それでも表示されないとすれば、Ubuntuのバグかもしれません。今は確認できる環境をまだ作成していないので、出来次第こちらでも確認してみようと思います。
オフライン
「xdvi test2.dvi」を実行したところ、無事日本語が表示されました!
Evinceで見ていました。解決です。どうも、ありがとうございました!!
オフライン