TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm French so it's not easy to explain my problem but I'll try.

I use fancyhdr to make my own headings (book class).

I want the section's title at the right of the heading in small caps, and only in odds pages. But when I print it I can read e.g., "2. DERIVATION" which is what I was expecting.

My question is: how can I remove the number of the section, so that I can obtain just "DERIVATION" and not "2.DERIVATION"?

I wrote :

\fancyhead{} % clear all header fields
\fancyfoot{} % clear all footer fields
\renewcommand{\headrulewidth}{0 pt}
\renewcommand{\footrulewidth}{0 pt}

\leftmark is for chapter and is OK.

The problem is with the \rightmark, how can I redefine it?

share|improve this question
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – egreg Jul 26 '11 at 15:07

Add the following line to the settings for fancyhdr

share|improve this answer
it works thank you a lot !! – benekire Jul 26 '11 at 15:15
@egreg I cannot seem to make your solution work with my setup. I have \rhead{\rightmark} + your code. – macmadness86 Jan 9 '15 at 9:49
@macmadness86 Difficult to say without an example; open a new question and don't forget a MWE. – egreg Jan 9 '15 at 9:51
@egreg Another question would be a duplicate of this question. I am not sure that this is a good idea. This is an example of how the "one question per issue" policy does not always work. – macmadness86 Jan 9 '15 at 10:07
@macmadness86 Why should it be a duplicate? I retested the solution with a minimal preamble and it works. So your problem depends on what you're loading. Also the documentclass can be important: for instance, if you're using article with the twoside option. – egreg Jan 9 '15 at 10:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.