On Mon, 30 Jul 2001, Herbert Voss wrote:
> \renewcommand\section{\@startsection {section}{1}{\z@}%
> {-3.5ex \@plus -1ex \@minus -.2ex}%
> {2.3ex \@plus.2ex}%
> {\normalfont\Large\bfseries\uppercase}%
> }
Thank you! Extending your idea into
\renewcommand\section{
\ifx \aftercontents \undefined%
{ }
\else
\pagebreak
\fi
\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\centering\large\bfseries\uppercase}%
}
and putting
\newcommand{\aftercontents}{true}
after TOC, I get exactly what I want: both pagebreak and uppercase for
topmost section headers, neither for subsection headers (and not an empty
page before TOC)
btw: is there a LaTeX construct to comment several lines, something like
/* ... */ or #if 0 ... #endif in C? (If there's online reference, I'd be
happy for just an URL/pathname)