Thanks much. Now, how do I get this to behave more like the section command, 
so that I don't end up with the heading split from the body between pages?

Also sprach Dekel Tsur:
> On Tue, Mar 26, 2002 at 06:19:27PM +0100, Herbert Voss wrote:
> > Christopher M. Jones wrote:
> > > I need the numbering of sections to be placed against the left/right
> > > margin, depending on whether it appears on an odd or even page
> > > (twoside). The section text should be centered. How would I go about
> > > this?
> >
> > \renewcommand{\section}[1]{%
> >      \vspace{2.3ex}\refstepcounter{section}
> >      \ifthenelse{\isodd{\value{page}}}{%
> >           % the oddpart
> >           \normalfont\Large\bfseries%
> >           \begin{center}#1\ \thesection\end{center}
> >           \normalsize\normalfont\vspace{2.3ex}%
> >       }{%
> >          % the evenpart
> >          \normalfont\Large\bfseries%
> >          \hfill\begin{center}\thesection\ #1\end{center}
> >          \normalsize\normalfont\vspace{2.3ex}%
> >       }%
> > }
>
> The \isodd{\value{page}} is not robust.
> You should use
>
> \usepackage{chngpage}
> \renewcommand{\section}[1]{
>    ...
>    \ifcpoddpage%
>      % the oddpart
>      ...
>    \else%
>      % the evenpart
>      ...
>    \fi}

Reply via email to