When I use the following in my preamble, I’m just getting a plain straight line as my header and the page number displayed at the bottom center of my page.
\documentclass{book}
\usepackage[paperwidth=5in,paperheight=7in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\begin{document}
\begin{center}
\section*{Etsuko's picnic}
\end{center}
TEXT
\end{document}
I thought the default fancyhdr trait was to print the name of the corresponding chapter as the header. But in my case nothing is being printed.
I wanted to have the name of the corresponding chapters as the headers of each page in my book. How can I achieve that?
\chapterand\sectioncommands if you want their arguments to show up in the header line. Note, furthermore, that on pages with a\chaptercommand the default style is to omit the header line. – Mico Jun 27 '12 at 14:26