In relation to this question, I'd like to get a fancy header just on the first page of my scrartcl
document (height about 150 pts), but even using \thispagestyle{myfancyhdr}
all the following pages display a big blank empty header, without any picture, pushing the whole content downwards, although the main style is plain
or empty
.
I don't want it! Is there any way to avoid it?
My code is
\documentclass[11pt]{scrartcl}
\pagestyle{empty}
[...]
\usepackage[...]{classicthesis}
\usepackage{arsclassica}
\usepackage{fancyhdr}
\fancypagestyle{ciccio}{%
%\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[L]{}
\fancyhead[R]{
\includegraphics[width=3cm
]{strathlogo}
}
}
\begin{document}
\thispagestyle{ciccio}
[...]
\end{document}
Best Answer
The package
fancyhdr
works bad when using KOMA classes.You should use
scrpage-scrlayer
(or the olderscrpage2
) instead of it.Your
fancyhdr
code for defining the new styleciccio
can be replaced by this one:In the following MWE I've added
height=1cm
just for displaying purposes, remove it in your document.Output:
If, with your image, you get a warning about
\headheight too low
, you'd better adjust the\headheight
too.