diff options
author | Fred Drake <fdrake@acm.org> | 1998-01-13 22:40:08 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-01-13 22:40:08 (GMT) |
commit | 737e73ec3d90bc41f012558aa54448f992b0c008 (patch) | |
tree | 5e357119b21551c9566bbc35fa2b2eb647d4a36f /Doc | |
parent | 4d4f9e726aabceaf5adc6a2b0e0252e106e92bc4 (diff) | |
download | cpython-737e73ec3d90bc41f012558aa54448f992b0c008.zip cpython-737e73ec3d90bc41f012558aa54448f992b0c008.tar.gz cpython-737e73ec3d90bc41f012558aa54448f992b0c008.tar.bz2 |
Augment \tableofcontents to do the right thing.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/myformat.sty | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty index 13ef35b..8ecb59b 100644 --- a/Doc/myformat.sty +++ b/Doc/myformat.sty @@ -258,14 +258,14 @@ % 'openright' option is used. % \let\OldEndAbstract=\endabstract -\def\endabstract{% - \if@openright% - \ifodd\value{page}% - \typeout{Adding blank page after the abstract.}% - \vfil\pagebreak% +\def\endabstract{ + \if@openright + \ifodd\value{page} + \typeout{Adding blank page after the abstract.} + \vfil\pagebreak \fi - \fi% - \OldEndAbstract% + \fi + \OldEndAbstract } % \mytableofcontents wraps the \tableofcontents macro with all the magic to @@ -273,20 +273,21 @@ % option has been used. This eliminates a fair amount of crud in the % individual document files. % -\newcommand{\mytableofcontents}{% - \pagebreak% - \pagestyle{plain}% - {% - \parskip = 0mm% - \tableofcontents +\let\OldTableofcontents=\tableofcontents +\def\tableofcontents{% + \pagebreak + \pagestyle{plain} + { + \parskip = 0mm + \OldTableofcontents \if@openright - \ifodd\value{page}% - \typeout{Adding blank page after the table of contents.}% - \pagebreak\hspace{0pt}% + \ifodd\value{page} + \typeout{Adding blank page after the table of contents.} + \pagebreak\hspace{0pt} \fi \fi } - \pagebreak% + \pagebreak } % Uncomment the following line to use a PostScript font instead of bitmaps: |