Koma-Script 区域集和脚线

Koma-Script 区域集和脚线

看起来好像选项footlines如果使用,选项和footheight会被忽略。考虑以下 MWEareaset

\documentclass[footheight=30pt]{scrlttr2}

\usepackage{scrlayer-scrpage}

\pagestyle{scrheadings}
\clearscrheadings
\cfoot{foo \\ bar}

\areaset{17cm}{25cm}

\begin{document}
Hello
\end{document}

尽管footheight=30pt已设置,但如果编译,我会收到以下警告:

Package scrlayer-scrpage Warning: \footheight to low.
(scrlayer-scrpage)                At least 28.99998pt needed,
(scrlayer-scrpage)                but only 18.125pt found.
(scrlayer-scrpage)                I'll enlarge \footheight, for further
(scrlayer-scrpage)                processing, but you should do this yourself,
(scrlayer-scrpage)                e.g., setting typearea's option
(scrlayer-scrpage)                `footheight=28.99998pt'.
(scrlayer-scrpage)                I'll also increase \footskip on input line 13

如果footlines=2.1如果使用,

答案1

默认情况下\areaset忽略选项headheightheadlines和。这在 KOMA-Script 手册中有footheight记录footlinesscrguien.pdf(英语)和scr指南.pdf(德语)。在 KOMA-Script 手册的第二部分中,您可以找到选项,它可以改变行为。不过,和areasetadvanced使用的边距计算细节仍然存在一些差异。请参阅手册了解更多信息。\typearea\areaset

\documentclass[footheight=30pt,areasetadvanced]{scrlttr2}

\usepackage{scrlayer-scrpage}

\pagestyle{scrheadings}
\clearscrheadings
\cfoot{foo \\ bar}

\areaset{17cm}{25cm}

\begin{document}
Hello
\end{document}

相关内容