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.

  • It depends on how you have set up the headers. Please edit your question and add a short example code that reproduces the problem. Jun 11, 2012 at 13:38

1 Answer 1


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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .