GeneralChanging headers

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Pere Callahan
Posts: 6
Joined: Sun Jun 01, 2008 2:34 pm

Changing headers

Post by Pere Callahan »

Hi,

I am using the documentclass article and the fancyhdr package. Be default, the header contains information on the current chapter and the current subsection. I would like to change this so as to display the current subsection and the current subsubsection. Unfortunately, the explanations in http://www.ctan.org/tex-archive/macros/ ... ncyhdr.pdf don't help me at all....From there I got the minimal example

Code: Select all

\documentclass[11pt,a4paper]{article}

\usepackage{fancyhdr}
\pagestyle{fancy}

\fancyhead[LE,RO]{\rightmark}
\fancyhead[LO,RE]{\leftmark}
\fancyfoot[C]{\thepage}

\begin{document}
\section{chapter}
\subsection{subsection}
\subsubsection{subsubsection}
\pagebreak
blah
\end{document}
I would like the header to read

1.1 subsection 1.1.1 subsubsection

instaed of


1 CHAPTER 1.1 subsection

How could this possibly be done?

Thank you.

Pere

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply