Long section headings in footertexts
Hi all, I have a user who likes to have long \chapter titles, like {This is my title: with a whole lot of specific clarification}. When we set footertexts to be [chapter], it collides into the opposite footer (date, in this case). What I'd like to do is have some way of picking up the first part of the chapter title ("This is my title") and put only that into the footer text. I would call this a "subtitle" in a way. It's related to the second half of this complaint Bruce made back in August: Bruce D'Arcus said this at Wed, 7 Aug 2002 12:55:16 -0400:
Subtitles. Aside from the fact that one often wants to format subtitles differently than titles, generally speaking headers that include titles should not also include subtitles (and there is what I consider a bug with long titles such that they run into the header on the other side, rather than breaking into two lines)
My temporary solution is to define an \AltFooter macro in the current environment where the user can manually switch to a short version of the chapter heading. As it is, however, I need a matching \ResetFooter macro for the end of the chapter. Anyone have any hints? Cheers, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Adam Lindsay wrote:
What I'd like to do is have some way of picking up the first part of the chapter title ("This is my title") and put only that into the footer text. I would call this a "subtitle" in a way. It's related to the second half of this complaint Bruce made back in August:
...
Anyone have any hints?
I've used \nomarking{} in the past: \chapter{Dr Strangelove\nomarking{ -- or how I learned to stop worrying and love the bomb}} That should just give you 'Dr Strangelove ...' in the headers/footers. There's a \nolist which does something similar for tables of contents. Duncan dh@capdm.com
Duncan Hothersall said this at Mon, 13 Jan 2003 16:56:38 +0000:
I've used \nomarking{} in the past:
\chapter{Dr Strangelove\nomarking{ -- or how I learned to stop worrying and love the bomb}}
That should just give you 'Dr Strangelove ...' in the headers/footers. There's a \nolist which does something similar for tables of contents.
Hi Duncan, Many thanks for that. It's nearly perfect for what I need. Know of any way of suppressing the ellipsis ("...")? Off to look in the documentation... Cheers, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
At 05:06 PM 1/13/2003 +0000, Adam Lindsay wrote:
Duncan Hothersall said this at Mon, 13 Jan 2003 16:56:38 +0000:
I've used \nomarking{} in the past:
\chapter{Dr Strangelove\nomarking{ -- or how I learned to stop worrying and love the bomb}}
That should just give you 'Dr Strangelove ...' in the headers/footers. There's a \nolist which does something similar for tables of contents.
Hi Duncan,
Many thanks for that. It's nearly perfect for what I need. Know of any way of suppressing the ellipsis ("...")?
not yet, but Hraban is thinking real hard now about a proper keyword to switch it off (or maybe we should use a labeltext) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (3)
-
Adam Lindsay
-
Duncan Hothersall
-
Hans Hagen