问题描述
我目前正在使用 scrbook 撰写我的论文并更改了页脚布局。但是,我也想更改 Part 和 Chapter 页面上的页脚。为此我需要更改什么?目前,它现在基本上看起来像 this。我也希望将页码放在章节/部分页面的中心。
示例代码:
\documentclass[english,12pt]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[automark,ilines]{scrlayer-scrpage}
\usepackage{blindtext}
\pagestyle{scrheadings}
\ohead{}
\ihead{\headmark}
\chead{}
\cfoot{-~\pagemark~-}
\ofoot{}
\ifoot{}
\begin{document}
\chapter{Introduction}
\blindtext[5]
\end{document}
预先感谢您的帮助!
解决方法
您可以使用可选参数来设置普通页面的样式:
\documentclass[english,12pt]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[automark,ilines]{scrlayer-scrpage}
\usepackage{blindtext}
\pagestyle{scrheadings}
\ohead[]{}
\ihead[whatever]{\headmark}
\chead[]{}
\cfoot[something]{-~\pagemark~-}
\ofoot[]{}
\ifoot[]{}
\begin{document}
\chapter{Introduction}
\blindtext[5]
\end{document}