BibTeX, biblatex and biberchapterbib, fancyhdr | Package Clash

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
EstebanCZ
Posts: 1
Joined: Sun Jan 22, 2012 2:00 pm

chapterbib, fancyhdr | Package Clash

Post by EstebanCZ »

Hi everybody! I am writing my Thesis with articles, and I have used \usepackage[section]{chapterbib} to create a bibliography in each chapter, listed as a section of the chapter:

(Main file)

Code: Select all

\usepackage{fancyhdr}
\usepackage[section]{chapterbib}

\begin{document}
...
\include{1_Article1/A1}    
\include{2_Article2/A2} 
etc
\end{document}
(In each included file)

Code: Select all

\renewcommand{\bibname}{References} 
\bibliography{A1_bib}
\bibliographystyle{ieeetr}
It works fine in each chapter and the ToC as well, but now I am in troubles with the document layout. I have used \usepackage{fancyhdr} in order to get a better header layout, but it does not work very well together with chapterbib, since "References" is understood as chapter in headers.

Fancyhdr configuration in my preamble is the following one:

Code: Select all

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter. #1 }}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[RO]{\bfseries\rightmark}
\fancyhead[LE]{\bfseries\leftmark}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\fancypagestyle{plain}{
  \fancyhead{}
  \renewcommand{\headrulewidth}{0pt}
}
But after the first article bibliography, "References" appears always as chaptermark on the left pages, and the title of chapter is ignored.

Does anybody give me a hand with this? Thanks a lot in advance!
Last edited by localghost on Sun Jan 22, 2012 2:53 pm, edited 2 times in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

studio23
Posts: 1
Joined: Sun Nov 25, 2012 8:10 pm

chapterbib, fancyhdr | Package Clash

Post by studio23 »

Code: Select all

\usepackage[numbers,sort&compress,comma,sectionbib]{natbib}
\usepackage[sectionbib]{chapterbib} 
I encountered the same problem.
But when I use 'sectionbib' option in both natbib and chapterbib, then it works.
Post Reply