Re: 汎用的な浮動体

名前: しっぽ愛好家
日時: 2003-08-25 15:42:10
IPアドレス: 210.234.44.*

>>21184 やはり(?)バグがありました. 先の変更を施した場合,\lstinputlisting を用いると不都合があります. \lst@check@chartype@BOL の定義を \def\lst@check@chartype@BOL#1{% \edef\@tempa{\lst@nextchar=`\string#1\relax}% \afterassignment\remove@to@nnil \@tempa\@nnil \ifnum\lst@nextchar<\@cclvi\else \lst@whitespacefalse \expandafter\lst@AppendJchar \fi #1} のように変更した後,下記の記述を追加してください. \def\lst@InputListing#1{% \begingroup \lsthk@PreSet \gdef\lst@intname{#1}% \expandafter\lstset\expandafter{\lst@set}% \lsthk@DisplayStyle \catcode\active=\active \lst@Init\relax \let\lst@gobble\z@ \lst@SkipToFirst \lst@ifprint \def\lst@next{\lst@get@filecontents{#1}}% \else \let\lst@next\@empty \fi \lst@next \lst@DeInit \endgroup} \newread\lst@inputfile \def\lst@get@filecontents#1{% \let\lst@filecontents\@empty \openin\lst@inputfile=#1\relax \let\@lst@get@filecontents@prevline\relax \lst@get@filecontents@loop \closein\lst@inputfile \lst@filecontents\empty} \def\lst@get@filecontents@loop{% \read\lst@inputfile to\@lst@get@filecontents@currline \ifx\@lst@get@filecontents@prevline\relax\else \expandafter\expandafter\expandafter\def \expandafter\expandafter\expandafter\lst@filecontents \expandafter\expandafter\expandafter{% \expandafter\lst@filecontents\@lst@get@filecontents@prevline}% \fi \let\@lst@get@filecontents@prevline\@lst@get@filecontents@currline \ifeof\lst@inputfile\else \expandafter\lst@get@filecontents@loop \fi} %%% この処理も,相当強引です.

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)