To get a centered line with a length of .25\textwidth above the page number, until now I used the scrpage2 package and this command:


This is deprecated now, so I'd like to switch to scrlayer-scrpage, but the equivalent


throws errors. If I insert an absolute value like 5cm just for testing the line is also flush left instead of centered.

How can I get the behaviour of scrpage2's \setfootsepline command with scrlayer-scrpage?


This shows what I want and – commented out – what I tried.

% \usepackage[footsepline=:.25\textwidth]{scrlayer-scrpage}
% \usepackage[footsepline=:5cm]{scrlayer-scrpage}
\begin{document}test page\end{document}

You could use:

\begin{document}test page\end{document}


\begin{document}test page\end{document}


\begin{document}test page\end{document}

Note that a length in the optional argument of a package or class will be expanded complettly. So I would suggest to use \KOMAoptions for setting the width of the rule.


enter image description here

  • Thanks, that solves the first problem, however the line isn't centered (as with scrpage2) this way. As I just figured out, \KOMAoptions{clines} will do the trick. – dessert Oct 17 '17 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.