I'm currently writing my Bachelor's Thesis and have already used LateX for several documents and reports so far. However, I cam across a problem during formatting my thesis. Throughout my whole work I want to use fancyhdr which gives me a horizontal line in the header of each page with the page numbering on the right upper corner (my thesis will be printed onesided).
Everything works fine besides the page numbering of my LOF and LOT. There the page numbering is on the bottom page in the middle (the default setting I think). After those two pages the page numbering is according to my wishes again.
\documentclass[a4paper,12pt]{scrartcl}
\usepackage{tocloft}
\usepackage[english]{babel}
\usepackage{titlesec}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\rhead{\thepage}
\begin{document}
\end{document}
\listoffigures
\addcontentsline{toc}{section}{List of Figures}
\newpage
\listoftables
\addcontentsline{toc}{section}{List of Tables}
\newpage
What could possibly be the problem?
Best Answer
It is not recommanded to use
titlesec
,tocloft
orfancyhdr
together with aKOMA-Script class
. Here is a suggestion usingscrlayer-scrpage
:Note that package
tocloft
destroys the features of optionlistof
. Additionally you have to define a matchingplain
style:Or you have to set
\tocloftpagestyle{scrheadings}
: