Re: colorパッケージを追加するとコンパイルできない。

名前: .
日時: 2005-09-15 18:24:49
IPアドレス: 211.4.48.*

>>38063 やはり,その jcss.sty なるファイルの中で行われている float 関係の マクロの再定義が,LaTeX2e に完全には追随していなかったようです. # もっとも,“color パッケージを使えるようにしてまで色付けを行う” # ことが jcss.sty を用いて作成するような文書に対して許可されているか # 否かは存じませんが. \RequirePackage[dvips]{graphicx,color}% \documentstyle{jcss} \title{サンプル文書} \makeatletter \def\end@float{% \par \vskip\z@ \egroup %% \par\vskip\z@ added 15 Dec 87 %%% 直前の 3 行が,概ね \@endfloatbox の処理に対応 %%% (ただし,\color@endbox を欠いています) \color@endbox%%% 追加(ただし,LaTeX2.09 に対処するには, %%% あらかじめ \let\color@endbox=\relax としておく %%% 必要があります) %%% \@floatheight=\ht\@currbox \advance\@floatheight \dp\@currbox %% \normalsize is added to set \baselineskip properly (H.N.) \normalsize \divide\@floatheight\baselineskip \@floatlinecount=\@floatheight \advance\@floatlinecount\@ne \@floatheight=\@floatlinecount\baselineskip \global\setbox\@currbox\vbox to\@floatheight{\vfil\copy\@currbox\vfil}% \ifnum\@floatpenalty<\z@ \@cons\@currlist\@currbox \ifdim \ht\@currbox >\textheight \ht\@currbox\textheight \fi \ifnum\@floatpenalty < -\@Mii \penalty -\@Miv \@tempdima\prevdepth %% saving and restoring \prevdepth added \vbox{} %% 26 May 87 to prevent extra vertical \prevdepth \@tempdima %% space when used in vertical mode \penalty\@floatpenalty \else \vadjust{\penalty -\@Miv \vbox{}\penalty\@floatpenalty}\@esphack \fi \fi} \makeatother \begin{document} \begin{table} something \end{table} \end{document}

この書き込みへの返事:

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