我想仅在部分开始的页面上从标题中删除部分名称。我还想继续使用,scrlayer-scrpage
因为它已在我的代码中实现。当然,我也愿意接受更简单的解决方案。
谢谢你的帮助。干杯,本森
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[headsepline,automark, draft = false]{scrlayer-scrpage}
\clearpairofpagestyles
\ihead{\headmark}
\rohead{\pagemark}
\addtokomafont{pageheadfoot}{\upshape}
\KOMAoptions{onpsinit={\linespread{1}\selectfont}}
\usepackage{blindtext}
\begin{document}
\section{First Section}
\blindtext[11]
\newpage
\section{Second Section}
\blindtext[11]
\end{document}
答案1
这是你想要的吗?
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[headsepline,automark,draft=false]{scrlayer-scrpage}
\clearpairofpagestyles
\ihead[]{\headmark}
\ohead*{\pagemark}
\addtokomafont{pageheadfoot}{\upshape}
\KOMAoptions{onpsinit={\linespread{1}\selectfont}}
\AddtoDoHook{heading/endgroup/section}{\thispagestyle{plain}}
\usepackage{blindtext}
\begin{document}
\section{First Section}
\blindtext[11]
\clearpage
\section{Second Section}
\blindtext[11]
\end{document}
编辑:
如果您希望规则plain
也出现在标题中,请添加选项plainheadsepline
:
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[headsepline,plainheadsepline,automark,draft=false]{scrlayer-scrpage}
\clearpairofpagestyles
\ihead[]{\headmark}
\ohead*{\pagemark}
\addtokomafont{pageheadfoot}{\upshape}
\KOMAoptions{onpsinit={\linespread{1}\selectfont}}
\AddtoDoHook{heading/endgroup/section}{\thispagestyle{plain}}
\usepackage{blindtext}
\begin{document}
\section{First Section}
\blindtext[11]
\clearpage
\section{Second Section}
\blindtext[11]
\end{document}