In the code below, I typically start the bibliography on a new page.
I would like to be able to display "Bibliography", instead of the previous section number and name on the header, anytime the bibliography starts on an odd numbered page. After the bibliography section, I wanted to be able to revert back to the original header settings until the next bibliography section is encountered. I looked at the example found here, but could not get a proper solution. Thanks for your time and help.
Here is the MWE:
\documentclass[11pt,fleqn,table]{book}
\usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry}
\usepackage{lipsum}
\usepackage[english]{babel}
\usepackage{etoolbox,fancyhdr}
\usepackage{filecontents}
\begin{filecontents}{chap1.bib}
@online{wiki_DS1,
author = {Wikipedia},
%editor = {{Henry W. Ott}},
title = {Dynamical systems theory},
url = {https://en.wikipedia.org/wiki/Dynamical_systems_theory},
lastchecked = {03.09.2016},
originalyear = {02.28.2016}
}
\end{filecontents}
\usepackage[refsection=chapter,defernumbers=true,sorting=none,sortcites=true,autopunct=true,babel=hyphen,abbreviate=false,backref=true,backend=biber]{biblatex}
\addbibresource{chap1.bib}
\defbibheading{bibempty}{}
\newcommand*{\refname}{Bibliography}
\newcommand{\mymark}{}
\makeatletter
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries \ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize\thesection\hspace{5pt}#1}{}}
\fancyhf{} \fancyhead[LE,RO]{\textbf{\sffamily\normalsize\thepage}}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\textbf{\sffamily\scshape\chaptername~\thechapter. \leftmark}}%
\renewcommand{\headrulewidth}{.5pt}
\addtolength{\headheight}{2.5pt}
\newcommand{\headrulecolor}[1]{\patchcmd{\headrule}{\hrule}{\color{#1}\hrule}{}{}}
\newcommand{\footrulecolor}[1]{\patchcmd{\footrule}{\hrule}{\color{#1}\hrule}{}{}}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}
\renewcommand{\cleardoublepage}
\makeatother
\begin{document}
\tableofcontents
\newpage
\chapter{Test1}
\section{Name of Section One}
\lipsum[1]\cite{wiki_DS1}
\newpage
\section*{Bibliography}
\addcontentsline{toc}{section}{Bibliography}
\section*{Online}
\printbibliography[heading=bibempty,type=online,prefixnumbers={O}]
\newpage
\chapter{Test2}
\section{Name of Section Two}
\lipsum[1]\cite{wiki_DS1}
\newpage
\section*{Bibliography}
\addcontentsline{toc}{section}{Bibliography}
\newpage
\chapter{Test3}
\section{Name of Section Three}
\lipsum[1]\cite{wiki_DS1}
\lipsum
\newpage
\section*{Bibliography}
\addcontentsline{toc}{section}{Bibliography}
\end{document}
\markboth{Bibliography}{Bibliography}immediately after the\section*and\addcontentslineinstructions. – barbara beeton Mar 11 '16 at 15:32