I would like to prevent the issue of having titles superposed in the header of my report.
I am using the following code:
\usepackage{fancyhdr}
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
Actually, when the current subsection is too long and the section as well, both titles are superposed in the middle of the header. Is there a way to prevent it? Thank you in advance!
EDIT
Typical example :
\section{This is a supercalifragilisticexpialidocious title for a section}
\newpage
\subsection{I am also a supercalifragilisticexpialidocious subtitle}
When you check the header of the second page, section and subsection displayed are superposed. I wish I could have at least the entire text of the section and on the left part the start of the subsection with "..." before it becomes superposed.
ie, I wish I could have this kind of header :
1.1 I am also a ... 1 THIS IS A SUPERCALIFRAGILISTICEXPIDALIDOCIOUS TITLE FOR A SECTION
EDIT 2
As requested, a minimum working example. It concerns the second page header.
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{fancyhdr}
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\begin{document}
\section{This is a supercalifragilisticexpialidocious title for a section}
\newpage
\subsection{I am also a supercalifragilisticexpialidocious subtitle}
\end{document}

\documentclass{...}and ending with\end{document}. You can have a look on our starter guide to familiarize yourself further with our format. – egreg Jun 27 '13 at 07:36\documentclass, ending with\end{document}which reproduces the problem. Furthermore, you just have to load the relevant packages able to reproduce the problem, not the whole preamble. :) – Claudio Fiandrino Jun 27 '13 at 07:52fancyhdrsettings you're using and the document class. Note that having both the section and subsection titles in a single header makes it easy to get superpositions, because the space is limited. – egreg Jun 27 '13 at 08:03