名前: 本田 日時: 2006-10-25 22:52:24 IPアドレス: 222.158.121.*
>>45659 >fancybox.sty のバージョンによって違いがあるのでしょうか? 違いがあります. 角藤先生の配布のものはver1.3で,\c@tocdepthの定義はないです. 以下,fancybox.sty ver1.2の先頭をコピーします. #実は,同じ問題ではまったことがあるんですよ. %% BEGIN fancybox.sty \def\fileversion{1.2} \def\filedate{1998/02/27} % DG/SR modification begin - May 16, 1997 \providecommand\@begindvi{} % For rather old versions of LaTeX 2e % Problem FancyBox 1.0 <-> LaTeX 2e with the \fancyput macro % The following line solve several problems in `fancybox' macros, % but has the bad side effect to inhibit the table of contents generation. % If you really need the TOC, try to comment next line and to recompile. % But if it doesn't work, there is no currently known solution in this case. \newcount\c@tocdepth <----これが問題 ちなみに,NGのcomp.text.texに No TOC when using fancybox.styというタイトルで 1998/8/20に a few days ago I upgraded fancybox.sty to version 1.2 . Amazingly, I can't get now any table of contents in documents any more, when I use this version of fancybox.sty. Even in a simple document like \documentclass{article} \usepackage{fancybox} \begin{document} \tableofcontents \section{Section 1} This is section 1. \section{Section 2} This is section 2 \end{document} というのがありまし,ver1.2より前も問題はなかったようです.
この書き込みへの返事: