[texhax] redefine section heading in memoir class
Lars Madsen
daleif at imf.au.dk
Tue Apr 11 19:17:05 CEST 2006
Paul Tremblay :
> On Mon, Apr 10, 2006 at 11:37:50PM +0200, Uwe Lück wrote:
>>
>> At 01:39 10.04.06, Paul Tremblay wrote:
>>> Can someone tell me how to create a hanging title when creating a
>>> title with the \section* command in the memoir class?
>>
>> Lars Madsen may be able to (so in my Cc), not me for some time.
>>
>> If he won't respond, I would suggest
>> \newcommand{\justasis}[1]{#1}
>> and replacing \emph by \justasis in your working version.
>> (\justasis is just LaTeX's internal \@firstofone .)
>>
>> In general, I might be able to tell you about LaTeX's internal
>> \@hangfrom doing these things.
>>
>
> Thanks for including Lars in by a Cc. Just to let you know, your
> suggestion didn't work.
>
> Paul
>
I don't quite know what Paul is trying to do here, but perhaps this will
do the trick. Otherwise specify the requitements a bit more.
\documentclass{memoir}
\setsecindent{36pt}
\setlength{\beforesecskip}{.5in}
\setlength{\aftersecskip}{.5in}
%\renewcommand{\secheadstyle}{\bfseries\fontsize{24}{29}\selectfont}
\setsecnumformat{\llap{\csname the#1\endcsname\quad}}
\pagestyle{empty}
\begin{document}
\section{This is the section which is a long section about
modernizing and so fourth}
\noindent \hrulefill\quad this just shows the text width \quad\hrulefill
\null
\section*{This is the section which is a long section about
modernizing and so fourth}
note that the 36pt goes from the left edge to the left edge of the
section title. The section number is typeset inside this area.
\end{document}
/daleif
``You cannot help men permanently by doing for them
what they could and should do for themselves. ''
-- Abraham Lincoln
More information about the texhax
mailing list