Hi,
How to redefine \leftmark and \rightmark to correspond to \part and \chapter instead of \chapter and \section? Is there some thorough explanation of these (preferably with practical examples)?
General ⇒ Redefining \leftmark and \rightmark
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Redefining \leftmark and \rightmark
Hi meho_r,
have a look at the fancyhdr packlage. Following the link to this package you will find its documentation, training slides and examples. The documentation also provides basic information about LaTeX marks using \leftmark and \rightmark.
If you use KOMA classes the scrpage2 package is a recommendable alternative.
Stefan
have a look at the fancyhdr packlage. Following the link to this package you will find its documentation, training slides and examples. The documentation also provides basic information about LaTeX marks using \leftmark and \rightmark.
If you use KOMA classes the scrpage2 package is a recommendable alternative.
Stefan
LaTeX.org admin
Re: Redefining \leftmark and \rightmark
Thanks. I read fancyhdr docs but there is one small problem: there is no \partmark and that's exactly what I need - to make leftmark correspond to \part and rightmark to \chapter (not default leftmark=chapter and rightmark=section). Any ideas?
-
- Posts: 6
- Joined: Mon Oct 13, 2008 3:56 pm
Re: Redefining \leftmark and \rightmark
I've got exactly the same problem (and therefore same question). Is there a way to put the part-title in the \leftmark or \rightmark? Or is there any other way to put it in the header using fancyhdr?
Redefining \leftmark and \rightmark
Search for \partname in this long web page. It may help. For other approach, see the answers of gmedina in this page.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.