GeneralCorrect Unnumbered Chapter Headers

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jsavage
Posts: 2
Joined: Tue Nov 11, 2008 2:32 am

Correct Unnumbered Chapter Headers

Post by jsavage »

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.
Attachments
example.pdf
(57.15 KiB) Downloaded 455 times
example.tex
(15.83 KiB) Downloaded 338 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Correct Unnumbered Chapter Headers

Post by gmedina »

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.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jsavage
Posts: 2
Joined: Tue Nov 11, 2008 2:32 am

Re: Correct Unnumbered Chapter Headers

Post by jsavage »

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?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Correct Unnumbered Chapter Headers

Post by gmedina »

Hi,

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}}
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.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply