I'm writing a document using scrbook
document class and while I was able to set up all header and footer apparence, I can't find a way to set headsepline
length (seems to follow \textwidth
settings, while I need it to be slightly longer). Is there a way to make it without using external packages, maybe changing something in class file?
[Tex/LaTex] How to set headsepline length
header-footerkoma-scriptrulesscrbook
Best Answer
As lockstep remarked, my short answer was way to short, so here's a more elaborate one:
Setting the headsepline can be done with the
scrpage2
package, which provides the macro\setheadsepline[<length>]{width}
To be able to use a notation like
\textwidth+20pt
, e.g. to do calculations, you'll need e.g. thecalc
package. Thescrpage2
package also provides a new pagestyle (scrheadings
), I made a little example below: The pageheads automatically alternate between the current chapter and section headings. Also you can see that theheadsepline
is longer than theheadtopline
. It protudes on both left and right, I don't know if you want that or just one side.The code
Part of the result