[texhax] redefine section heading in memoir class

Uwe Lück uwe.lueck at web.de
Mon Apr 10 23:37:50 CEST 2006


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.

Best wishes,
   Uwe.

>% set this to a positive value
>\setbeforesecskip{1pt}
>
>% the amount to indent the section head
>\setsecindent{36pt}
>
>% before the heading
>\setlength{\beforesecskip}{1in}
>
>% after the heading
>\setlength{\aftersecskip}{1in}
>
>% define the section
>\newcommand{\mysec}[1]{\bfseries 
>\fontsize{24}{29}\selectfont\setlength{\parindent}{-36pt}{#1}}
>
>\renewcommand{\secheadstyle} {\mysec}
>% renew the section command
>
>%write the section
>%\section*{1.1 This is  the section which is a long section about 
>modernizing and so fourth}
>%
>
>Notice the \parindent in the \newcommand above. It has no effect.
>However, if I use this command:
>
>\newcommand{\mysec}[1]{\bfseries 
>\fontsize{24}{29}\selectfont\setlength{\parindent}{-36pt}\emph{#1}}
>
>Then I get a perfect hanging title.



More information about the texhax mailing list