Page LayoutDouble lines in Koma-Script headers & footers

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

Double lines in Koma-Script headers & footers

Post by neGODnick »

Hello!

Could anybody help me to make double decorative lines (like =) in Koma-Script headers & footers (scrpage2 package)? With nccfancyhdr package based on fancyhdr this can be made by

Code: Select all

\usepackage[plain,headings]{nccfancyhdr}
\makeatletter
\renewcommand{\headrule}{%
\setlength\@tempdima{\headrulewidth}%
\hrule\@height\@tempdima\@width\headwidth
\vskip  2\@tempdima
\hrule\@height\@tempdima\@width\headwidth
\vskip  -4\@tempdima
} % 
\makeatother
but with scrpage2 I dont know how to…

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Double lines in Koma-Script headers & footers

Post by phi »

Hello,

try the following:

Code: Select all

\documentclass[english]{scrbook}

\usepackage{babel}
\usepackage{scrpage2}
\usepackage{blindtext}

\setheadsepline{0.4pt}[\hrule \vskip 1.5pt]

\pagestyle{scrheadings}


\begin{document}

\Blinddocument

\end{document}
neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

Double lines in Koma-Script headers & footers

Post by neGODnick »

Hurrah!!!

phi, you are genius! This is exactly that I need. And how simple (I was afraid it would be monstrous code with @…# etc. :—)! Thank you very, very much!
Post Reply