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

In the header of the book I'm writing using Latex, the Chapter name and a Section name are overlapping due to the large number of characters. For instance, in the final pdf file, the header is "2.1. Application of the classical approach Chapter 2. Efficient Initializations to..." Note that by header I assume the text that is displayed at each page above the main text.

Obviously, the both the Section name and Chapter name cannot fit one page. How could I specify that I only need "Chapter 2" to be written after the section name in the header?

The main file looks like:

\usepackage{amsmath, amsthm, amssymb}
\usepackage{amsmath, amsthm, amssymb}


% fancy headers and footers
\renewcommand{\headrulewidth}{0.1pt} % for upper line
\renewcommand{\footrulewidth}{0.1pt} % for lower line
 \fancyhead[LE,RO]{\itshape \nouppercase \rightmark}\fancyhead[LO,RE]           {\itshape \nouppercase \leftmark}





\def\FrameCommand{\fboxsep=\FrameSep \fcolorbox{black}}%
\color{black}\MakeFramed {\FrameRestore}}%






In a document forTest.tex put

\chapter{sakdlf fsadfkjdls kfkjs dflasfj ihfowijif}

\section{adfafdfklkjsaf  fksajflls lasfjl sfjls flafj }

and then some arbitrary text that goes to the second page. On the second page you'll see an overlap at the top. So, I would only like "Chapter 1" to be written, without the chapter name.

share|improve this question
It depends on how you have set up the headers. Please edit your question and add a short example code that reproduces the problem. – Ian Thompson Jun 11 '12 at 13:38
up vote 6 down vote accepted

Since you are already using the fancyhdr package, you just need to change \leftmark to Chapter \arabic{chapter} in your example.

\fancyhead[LE,RO]{\itshape \nouppercase \rightmark}
\fancyhead[LO,RE]{\itshape \nouppercase Chapter \arabic{chapter}}
\chapter{This chapter has a rather long name}
\section{This section also has a long name}
share|improve this answer

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.