Page Layoutfancyhdr | Header for Bibliography

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Ailicec
Posts: 18
Joined: Wed Jan 18, 2012 12:16 pm

fancyhdr | Header for Bibliography

Post by Ailicec »

I am using fancyhdr and have managed to get the correct headings for all the chapters, but when it comes to the bibliography I get the heading of the previous chapter and I do not get Bibliography in the heading. I am adding an excerpt of the data but a MWE is difficult to add as the problem shows up on the 2nd page (1st page of chapter does not have a heading). SO I would need to add too much extra information. In the appendices (after the bibliography) it is working correctly again. So it seems that it is not recognising 'Bibliography' as a chapter title

Thank you

Code: Select all

\documentclass{memoir}
\pagenumbering{arabic}
\input{style.tex}
\begin{document}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thechapter\ #1}}
\fancyhf{}
\fancyfoot[C]{\thepage} 
\fancyhead[L]{\textit \leftmark}

\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt} 
\fancypagestyle{plain}{
\fancyhead{} 
\renewcommand{\headrulewidth}{0pt}
}

\bibliographystyle{unsrtnat3}
Last edited by localghost on Mon Mar 12, 2012 9:27 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancyhdr | Header for Bibliography

Post by localghost »

Since the memoir class provides structures for headers itself, you actually don't need fancyhdr. Hence I recommend to take a look at the class manual for possible remedies.

For the present I would suggest to try the \markboth command in order to influence the headers from a certain point onwards.


Thorsten
Post Reply