I have tried this example to get some nicer formatted headings for my document. Unfortunately now the header of the actual section is printed on top of every page, but I only want the header to appear at the actual beginning of the section. The relevant code is:
Code: Select all
\documentclass[svgnames]{scrartcl}
...
\usepackage[automark]{scrpage2}
\usepackage{blindtext}
\usepackage{tikz}
\newcommand*\tikzhead[1]{%
\begin{tikzpicture}[remember picture,overlay]
\node[yshift=-2cm] at (current page.north west)
{\begin{tikzpicture}[remember picture, overlay]
\draw[fill=LightSkyBlue] (0,0) rectangle
(\paperwidth,2cm);
\node[anchor=east,xshift=.9\paperwidth,rectangle,
rounded corners=15pt,inner sep=11pt,
fill=MidnightBlue]
{\color{white}#1};
\end{tikzpicture}
};
\end{tikzpicture}}
\clearscrheadings
\ihead{\tikzhead{\headmark}}
\pagestyle{scrheadings}
...
\begin{document}
...
Kind Regards