Re: [質問] Listingsパッケージ使用時でのエラー(解決済)

名前: スダ
日時: 2006-09-17 10:43:17
IPアドレス: 125.4.12.*

>>44890 回答いただき有難う御座いました。 ちょうど>>44891にて解決報告を記入中に回答頂いた為、返信が遅れました。 回答頂いた手順を、以前の環境にて試したところ同様のエラーが出ました。 またログを見たところ「listings.sty 2004/10/17 1.3b (Carsten Heinz)」の記述も見られました。 折角回答頂いたのですが、新しい環境にて動作しましたのでそちらを使用していこうと思います。 有難う御座いました。 >1. ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings.zipをDL listings.zipを解凍してできたlistingsフォルダに移動 latex listings-1.3.ins を実行してできたstyファイルを c:/usr/local/share/texmf/tex/latex/listings/ へコピー mktexlsr を実行 そして指示頂いた下記のソースにてコンパイルした結果を次に示します。 This is pTeX, Version 3.141592-p3.1.3 (sjis) (Web2C 7.5.2) (./listings01.tex pLaTeX2e <2001/09/04>+0 (based on LaTeX2e <2001/06/01> patch level 0) (c:/usr/local/share/texmf/ptex/platex/base/jarticle.cls Document Class: jarticle 2001/10/04 v1.3 Standard pLaTeX class (c:/usr/local/share/texmf/ptex/platex/base/jsize10.clo)) (c:/usr/local/share/texmf/tex/latex/listings/listings.sty (c:/usr/local/share/texmf/tex/latex/graphics/keyval.sty) (c:/usr/local/share/texmf/tex/latex/listings/lstpatch.sty) (c:/usr/local/share/texmf/tex/latex/listings/lstmisc.sty) (c:/usr/local/share/texmf/tex/latex/listings/listings.cfg)) (./listings01.aux) ! Invalid code (33118), should be in the range 0..255. <to be read again> \lccode l.5 \begin{lstlisting} ? ! Emergency stop. <to be read again> \lccode l.5 \begin{lstlisting} No pages of output. Transcript written on listings01.log. [ソース] \listfiles \documentclass{jarticle} \usepackage{listings} \begin{document} \begin{lstlisting} for i:=maxint to 0 do \end{lstlisting} \end{document} >2. 抜粋 (c:/usr/local/share/texmf/tex/latex/listings/lstpatch.sty File: lstpatch.sty 2004/10/17 1.3b (Carsten Heinz) ) (c:/usr/local/share/texmf/tex/latex/listings/lstmisc.sty File: lstmisc.sty 2004/09/07 1.3 (Carsten Heinz) \c@lstnumber=\count98 \lst@skipnumbers=\count99 \lst@framebox=\box42 ) (c:/usr/local/share/texmf/tex/latex/listings/listings.cfg File: listings.cfg 2004/09/05 1.3 listings configuration )) Package: listings 2004/10/17 1.3b (Carsten Heinz) (./listings01.aux) \openout1 = `listings01.aux'.

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)