Christopher M. Jones wrote:

> 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:
>>>


\def\need#1{%
        \par \penalty-100 \begingroup
        \dimen@\pagegoal \advance\dimen@-\pagetotal
        \ifdim #1>\dimen@
        \ifdim\dimen@>\z@ \vfil\fi
        \eject
        \fi \endgroup%
}

>>>\renewcommand{\section}[1]{%

        \need{3cm}% change to whatever you need <-----

>>>     \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}%
[...]


Herbert



-- 
http://www.lyx.org/help/

Reply via email to