1

Consider this simple document.

\documentclass{scrbook}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\usepackage{amsmath}
\usepackage{blindtext}
\begin{document}
\title{\Huge Me}
\author{Maulik}
\date{\today}
\maketitle
\chapter{Introduction}
\blindtext[10]
\chapter{Methods}
\blindtext[10]
\end{document}

As you can see, I am using a KOMA-script class. In this document, I want to have horizontal lines after the header, and before the footer. It would look something like

header
--------
Text of the document
-------
footer

I know it can be done using fancyhdr package, along with renewcommand (as shown here). But is it possible to do the same using scrlayer-scrpage package, which is default in the KOMA-script classes?

1 Answer 1

2

For horizontal lines below the header and above the footer, just use the headsepline and footsepline options of scrlayer-scrpage:

\documentclass{scrbook}
\usepackage[headsepline, footsepline]{scrlayer-scrpage}
\pagestyle{scrheadings}
\usepackage{amsmath}
\usepackage{blindtext}
\begin{document}
\title{\Huge Me}
\author{Maulik}
\date{\today}
\maketitle
\chapter{Introduction}
\blindtext[10]
\chapter{Methods}
\blindtext[10]
\end{document}
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .