I'm learning to use LaTeX by formatting a \documentclass{book} (using Discourse on the Method by Descartes), but I'm having a bit of trouble getting the correct headers. The headers contain "CONTENTS" instead of the chapter titles.
I've attached a tex file and the generated pdf, which exhibit the problem.
I am using unnumbered chapters (\chapter*) , and know that if I use numbered chapters (w/o *) that the header will be correct, but I'd prefer to have unnumbered chapters.
Can anyone tell me how to add the proper chapter title to the header?
Thanks.
General ⇒ Correct Unnumbered Chapter Headers
Correct Unnumbered Chapter Headers
- Attachments
-
- example.pdf
- (57.15 KiB) Downloaded 455 times
-
- example.tex
- (15.83 KiB) Downloaded 338 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Correct Unnumbered Chapter Headers
Hi,
you could use \markboth or \markright, as described in the link provided. To further customise the headings/footers I would suggest you to use the fancyhdr package.
you could use \markboth or \markright, as described in the link provided. To further customise the headings/footers I would suggest you to use the fancyhdr package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: Correct Unnumbered Chapter Headers
Thanks for the hint about \markboth{}{} and \markright{}
I'm trying to find more info about how to use these options, and what parameters they can take.
There doesn't seem to be any further info in my texlive distro, nor much on google. So far, I found that they can take the parameters \chaptername and \thechapter neither of which do what I would like.
Does anyone know if there's a list of parameters available somewhere for \markright & \markboth?
I'm trying to find more info about how to use these options, and what parameters they can take.
There doesn't seem to be any further info in my texlive distro, nor much on google. So far, I found that they can take the parameters \chaptername and \thechapter neither of which do what I would like.
Does anyone know if there's a list of parameters available somewhere for \markright & \markboth?
Correct Unnumbered Chapter Headers
Hi,
you can use as argument some fixed information. I mean, you could use something like:
Not very aesthetically pleasing, but just as an example. In this way the odd numbered pages of the chapter will have in the header "Part 1" in a larger size and boldface type, and the even pages will have "Discourse On the Method" on small capitals.
you can use as argument some fixed information. I mean, you could use something like:
Code: Select all
\chapter*{PART 1}
\addcontentsline{toc}{chapter}{PART 1}
\markboth{\textsc{Discourse On The Method}}{\textbf{\Large Part 1}}
1,1,2,3,5,8,13,21,34,55,89,144,233,...