[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:56857] Re: euc-jp encoded LaTeX file on Wheezy system



アドバイス有難うございます.

>> On Fri, 19 Jul 2013 21:05:04 +0900
>> munepixyz@xxxxxxxxx (Munehiro Yamamoto) said as follows:

>> 完全に新規インストールした Wheezy 環境からスタートして,
>>
>>     % sudo apt-get install texlive-lang-cjk xdvik-ja
>>     % sudo updmap-setup-kanji-sys nofont

>まず、sample-euc.tex を日本語 pTeX で組版する環境は、すでに整っています。

>> それで,以下のようなファイルを euc-jp で用意して,
>>
>> \documentclass{jsarticle}
>> \begin{document}
>> これはテストです.
>> \end{document}

># どうしてわざわざ TeX 文章を euc-jp にして、
># (platex ではなく)uplatex で typeset するのか分からないのですが…、

本当は,過去の原稿データをそのまま処理するのが目的★なのですが,そちらに
そもそも失敗したので,とりあえずまずはエラーが発生する最小限の状態のサン
プルを作ってみました.

>> uplatex に処理させてみたのですが,以下のようなエラーで失敗しました.

>jsarticle.cls に対して uplatex オプションを与えれば、JY2/mc, JY2/gt に切
>り替わりますので、これで uplatex で sample-euc を typeset できます。
>\documentclass[uplatex]{jsarticle}

なるほど,確かに.これはうまくいきました.

>> jsarticle のかわりに jarticle とかに変えてみても状況は変わりませんでし
>> た.

>この場合は、ujarticle.cls を利用すれば、uplatex で typeset できます。
>\documentclass{ujarticle}

こちらは以下のようにエラーになりました.

$ printenv LANG
ja_JP.eucJP
$ cat sample-euc.tex
\documentclass{ujarticle}
\begin{document}
これはテストです.
\end{document}
$ uplatex --kanji=euc sample-euc.tex
This is e-upTeX, Version 3.1415926-p3.3-u1.10-110825-2.4 (euc.uptex) (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(./sample-euc.tex
pLaTeX2e <2011/05/07u00>+0 (based on LaTeX2e <2011/06/27> patch level 0)
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, pi
nyin, thai, loaded.
(/usr/share/texlive/texmf-dist/tex/uplatex/base/ujarticle.cls
Document Class: ujarticle 2011/05/07 v1.6_u00 Standard upLaTeX class
! Text line contains an invalid character.
l.119   \AtBeginDocument{\tate\message{※※文字化け※※}%
? 


しかし,本当にやりたいことは,上記★の通りなのですが,こちらはまだうまく
いっていません.アドバイスにしたがって,platex を使ってみようとしたので
すが,添付の PDF のように文字化けします.

まず,環境変数は euc-jp にしました.

$ printenv LANG
ja_JP.eucJP

ファイルは以下のように最小限で,かつ euc-jp です.

$ cat sample-euc.tex
\documentclass{jsarticle}
\begin{document}
これはテストです.
\end{document}
$ nkf --guess sample-euc.tex
EUC-JP (LF)

これを platex + dvipdfmx で処理しました.

$ platex sample-euc.tex
This is e-pTeX, Version 3.1415926-p3.3-110825-2.4 (utf8.euc) (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(./sample-euc.tex
pLaTeX2e <2006/11/10> (based on LaTeX2e <2011/06/27> patch level 0)
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, pi
nyin, thai, loaded.
(/usr/share/texlive/texmf-dist/tex/platex/jsclasses/jsarticle.cls
Document Class: jsarticle 2010/03/14 okumura
) (./sample-euc.aux) [1] (./sample-euc.aux) )
(see the transcript file for additional information)
Output written on sample-euc.dvi (1 page, 264 bytes).
Transcript written on sample-euc.log.
$ dvipdfmx sample-euc.dvi 
sample-euc.dvi -> sample-euc.pdf
[1]
1617 bytes written

しかし,添付の PDF のように文字化けします.参考のために,sample-euc.log
も添付しました.

日本語フォントの扱いについては,以下のように埋め込まない設定にしています.

$ updmap-setup-kanji-sys status
CURRENT family : noEmbed
Standby family : ipa
Standby family : ipaex

という状態なのですが,これはどのように対処したら良いでしょうか?

-- 
土屋 雅稔 ( TSUCHIYA Masatoshi )

Attachment: sample-euc.pdf
Description: Adobe PDF document

This is e-pTeX, Version 3.1415926-p3.3-110825-2.4 (utf8.euc) (TeX Live 2012/Debian) (format=platex 2013.7.19)  19 JUL 2013 21:17
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**sample-euc.tex
(./sample-euc.tex
pLaTeX2e <2006/11/10> (based on LaTeX2e <2011/06/27> patch level 0)
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, pi
nyin, thai, loaded.
(/usr/share/texlive/texmf-dist/tex/platex/jsclasses/jsarticle.cls
Document Class: jsarticle 2010/03/14 okumura
LaTeX Info: Redefining \rmfamily on input line 332.
LaTeX Info: Redefining \sffamily on input line 335.
LaTeX Info: Redefining \ttfamily on input line 338.
\symmincho=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `mincho' in version `bold'
(Font)                  JY1/mc/m/n --> JY1/gt/m/n on input line 403.
LaTeX Font Info:    Font shape `JT1/mc/m/n' will be
(Font)              scaled to size 9.60999pt on input line 592.
LaTeX Font Info:    Font shape `JY1/mc/m/n' will be
(Font)              scaled to size 9.60999pt on input line 592.
\fullwidth=\dimen118
LaTeX Font Info:    Font shape `JT1/mc/m/n' will be
(Font)              scaled to size 7.68799pt on input line 739.
LaTeX Font Info:    Font shape `JY1/mc/m/n' will be
(Font)              scaled to size 7.68799pt on input line 739.
\c@part=\count81
\c@section=\count82
\c@subsection=\count83
\c@subsubsection=\count84
\c@paragraph=\count85
\c@subparagraph=\count86
\@abstractbox=\box41
\c@figure=\count87
\c@table=\count88
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\@lnumwidth=\dimen119
\bibindent=\dimen120
LaTeX Info: Redefining \TeX on input line 1693.
LaTeX Info: Redefining \LaTeX on input line 1719.
LaTeX Info: Redefining \LaTeXe on input line 1744.
\heisei=\count89
) (./sample-euc.aux)
\openout1 = `sample-euc.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for JY1/mc/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for JT1/mc/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
Missing character: There is no ^^a1 in font cmr10!
Missing character: There is no ^^cf in font cmr10!
Missing character: There is no ^^a5 in font cmr10!
Missing character: There is no ^^c6 in font cmr10!
Missing character: There is no ^^a5 in font cmr10!
Missing character: There is no ^^c8 in font cmr10!
Missing character: There is no ^^a4 in font cmr10!
Missing character: There is no ^^c7 in font cmr10!
Missing character: There is no ^^a4 in font cmr10!
Missing character: There is no ^^a5 in font cmr10!
 [1

] (./sample-euc.aux) ) 
Here is how much of TeX's memory you used:
 374 strings out of 495281
 3717 string characters out of 3186456
 53136 words of memory out of 3000000
 3770 multiletter control sequences out of 15000+200000
 8380 words of font info for 36 fonts, out of 3000000 for 9000
 19 hyphenation exceptions out of 8191
 23i,4n,19p,136b,163s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on sample-euc.dvi (1 page, 264 bytes).