Commit 9ff6e8b4 authored by Fred Drake's avatar Fred Drake

Augment \tableofcontents to do the right thing.

parent 93367a37
...@@ -258,14 +258,14 @@ ...@@ -258,14 +258,14 @@
% 'openright' option is used. % 'openright' option is used.
% %
\let\OldEndAbstract=\endabstract \let\OldEndAbstract=\endabstract
\def\endabstract{% \def\endabstract{
\if@openright% \if@openright
\ifodd\value{page}% \ifodd\value{page}
\typeout{Adding blank page after the abstract.}% \typeout{Adding blank page after the abstract.}
\vfil\pagebreak% \vfil\pagebreak
\fi \fi
\fi% \fi
\OldEndAbstract% \OldEndAbstract
} }
% \mytableofcontents wraps the \tableofcontents macro with all the magic to % \mytableofcontents wraps the \tableofcontents macro with all the magic to
...@@ -273,20 +273,21 @@ ...@@ -273,20 +273,21 @@
% option has been used. This eliminates a fair amount of crud in the % option has been used. This eliminates a fair amount of crud in the
% individual document files. % individual document files.
% %
\newcommand{\mytableofcontents}{% \let\OldTableofcontents=\tableofcontents
\pagebreak% \def\tableofcontents{%
\pagestyle{plain}% \pagebreak
{% \pagestyle{plain}
\parskip = 0mm% {
\tableofcontents \parskip = 0mm
\OldTableofcontents
\if@openright \if@openright
\ifodd\value{page}% \ifodd\value{page}
\typeout{Adding blank page after the table of contents.}% \typeout{Adding blank page after the table of contents.}
\pagebreak\hspace{0pt}% \pagebreak\hspace{0pt}
\fi \fi
\fi \fi
} }
\pagebreak% \pagebreak
} }
% Uncomment the following line to use a PostScript font instead of bitmaps: % Uncomment the following line to use a PostScript font instead of bitmaps:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment