I'm working on my thesis and there is a little issue that I can't seem to solve... I need to use unnumbered sections for my word of thanks and list of abbreviations, but I'd like the titles to show up in the header. I'm using the package "fancyhdr", which has already helped me a lot with my page numbering and my numbered sections, but for some weird reason these two unnumbered sections won't work properly. I've tried using the \markright{Word of thanks} command, but somehow it shows up on the left in the header. My list of abbreviations (which is right after my table of contents) does show up on the right, but it's showing "Contents" in the header instead of "Abbreviations". Any suggestions? Here's a MWE:
Code: Select all
\documentclass[11pt,a4paper,oneside]{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\headheight}{15pt}
\begin{document}
\section*{Word of thanks\markright{Word of thanks}} %% I've tried placing the \markright command on a separate line too, with no avail
\thispagestyle{fancy}
\cfoot[]{} %% Using these two commands to prevent page numbering showing up in my footer
\rfoot[]{}
\newpage
\tableofcontents
\lhead[]{}
\cfoot[]{}
\rfoot[]{}
\newpage
\section*{Abbreviations\markright{Abbreviations}}
\thispagestyle{fancy}
\cfoot[]{}
\rfoot[]{}
\end{document}
EDIT: trimmed the MWE a bit