first, Hello ^^
second, I try to get a header into my document which contains the last section/subsection name on the left side and the page number on the right side. Problem is that section names are not shown, only if I already created a subsection the subsection will be shown.
Here a little example:
Code: Select all
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr} % get some nice header and fotter options
\fancyhf{} % clear all header and footers
\lhead{\rightmark} %section name left side of header
\rhead{\thepage} %current page on right side of header
\pagestyle{fancy}
\begin{document}
\section{Not shown in header}
\newpage
\subsection{Shown in header}
\end{document}
With best regards
p90