When I use unnumbered sections, my titleps
headers seem to inherit the section name and numbering from the previous section:
\documentclass[a4paper,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{titleps}
\newpagestyle{fancy}{
\headrule
\sethead{}{\itshape\sectiontitle}{}
\setfoot{}{\thepage}{}
}
\pagestyle{fancy}
\usepackage{lipsum}
\begin{document}
\section{First section}
\lipsum[1-4]
\clearpage
\section{Second section}
\lipsum[5-8]
\clearpage
\section*{Unnumbered section}
\lipsum[9-12]
\end{document}
In the example, the first two sections get the proper headers, but the third section gets the same header as the second. This also seems to happen to my bibliography (I'm using biblatex
). How can I get the name of starred sections and bibliographies in the header?
\sectionmark{Unnumbered section}
after that\section*
command.