[texhax] Memoir: running chapter titles
Lars Madsen
daleif at imf.au.dk
Mon May 18 16:12:55 CEST 2009
Beverley Eyre wrote:
> I'm trying to create a book style that has the Chapter-name,
> chapter-number and chapter-title on the left header and the
> corresponding section stuff on the right. I've got the section stuff
> working, but I can't figure out what variable holds the running chapter
> title.
>
> In other words, I want the left page header to be:
> Chapter 3: Background
> where
> Chapter = \@chapapp
> 3 = \thechapter
> Background = the running chapter title (Background in this example)
>
> I can get the header I want when I use \f at rhdr, but it doesn't compile
> cleanly, and complains it doesn't know what \f at rhdr is, even tho it
> works correctly when I examine the dvi file.
>
> So, is there a variable that will compile cleanly that holds the
> chaptertitle variable? Here's the relevant code:
>
> \renewcommand{\leftmark}{\rheadrfont
> \@chapapp\hspace{3pt}\thechapter:\smlspc \f at rhdr} %% (works but doesn't
> compile cleanly)
> \makeevenhead{newps}{\thepage\headspc\leftmark}{}{} %% newps is my
> pagestyle
>
> TIA
>
> Beverley Eyre
> UCLA MEMS Laboratory
> Los Angeles, CA
> fbe2 at ucla.edu
>
have a look at my article about memoir pagestyles, in
http://tug.org/pracjourn/2008-2/madsen/
note that it is important that you have the latest version of memoir.
--
/daleif
More information about the texhax
mailing list