I want to produce a line below the headsepline
that starts at the boundary of the page (not the margin of \textwidth
) and ends at the last letter of the chapter/section title.
The closest I get after reading the documentation for KOMA Script is this:
\documentclass[
11pt,
a4paper,
twoside,
openright,
]{scrbook}
\usepackage{lipsum}
\usepackage[
headsepline=:20cm,
ilines,
]{scrlayer-scrpage}
\pagestyle{scrheadings}
\begin{document}
\chapter{Introduction}
\lipsum
\section{Motivation}
\lipsum
\end{document}
This yields a line that starts at the border and ends at the inner boundary for \textwidth
. However, I want it to end at the innermost character, i.e. either the "n" of "1 Introduction" or the "1" of "1.1 Motivation".
Is this possible?
! LaTeX Error: Unknown option
iline' for packagescrlayer-scrpage'.
with your code.scrlayer.scrpage
. In chat I left my code in case you or some other KOMA expert wants to adapt it to work for you.