Seite 1 von 1

Command \setheadsepline deprecated!

Verfasst: Di 8. Aug 2023, 18:07
von 000Fite
Hallo zusammen,

ich bekomme bei Nutzung von \setheadsepline die Warning "Command deprecated!".
Weiß jemand, wie ich das Problem lösen kann?

Hier das Minimalbeispiel:
%Dokumentklasse
\documentclass[twoside,a4paper,11pt]{scrreprt}

% ============= Header & Footer =============
\usepackage[plainheadsepline]{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearpairofpagestyles 

% ============= Beginning of the Document =============

\begin{document}

\setheadsepline{0.0pt}

Text

\end{document}

VG
000Fite

Re: Command \setheadsepline deprecated!

Verfasst: Di 8. Aug 2023, 18:23
von Stefan Kottwitz
Hallo Fite,

das steht doch bei der Warnung.
Package scrlayer-scrpage Warning: Command deprecated!
(scrlayer-scrpage) Usage of `\setheadtopline', `\setheadsepline',
(scrlayer-scrpage) `\setfootsepline', and `\setfootbotline'
(scrlayer-scrpage) became deprecated with scrlayer-scrpage.
(scrlayer-scrpage) You should use KOMA-Script options
(scrlayer-scrpage) `headsepline', `headtopline', `footsepline',
(scrlayer-scrpage) or `footbotline' with values
(scrlayer-scrpage) `<line thickness>:<line length>' to setup
(scrlayer-scrpage) the line length and thickness, and
(scrlayer-scrpage) `\setkomafont' or `\addtokomafont' to
(scrlayer-scrpage) setup the colour on input line 14.
Stefan

Re: Command \setheadsepline deprecated!

Verfasst: Di 8. Aug 2023, 18:32
von 000Fite
Vielen Dank für die Antwort.

Muss ich das dann so schreiben?
\usepackage[plainheadsepline, headsepline=0.0pt]{scrlayer-scrpage}
VG
000Fite

Re: Command \setheadsepline deprecated!

Verfasst: Di 8. Aug 2023, 20:01
von Stefan Kottwitz
Du kannst headsepline=false in den \documentclass-Optionen schreiben, oder \KOMAoptions{headsepline=false} später.

Stefan