![如何使用 koma 脚本书将章节标题垂直居中?](https://linux22.com/image/453737/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20koma%20%E8%84%9A%E6%9C%AC%E4%B9%A6%E5%B0%86%E7%AB%A0%E8%8A%82%E6%A0%87%E9%A2%98%E5%9E%82%E7%9B%B4%E5%B1%85%E4%B8%AD%EF%BC%9F.png)
答案1
您必须更改 的值beforeskip
,afterskip
也许innerskip
还需要 :
\RedeclareSectionCommand[
style=part,
afterskip=\glueexpr 0pt plus 1fil ,
beforeskip=\glueexpr 0pt plus 1fil + \baselineskip,
innerskip=20pt
]{chapter}
\renewcommand*{\chapterformat}{\chaptername\enskip\thechapter\autodot}
\addtokomafont{chapter}{\fontsize{45}{55}\selectfont}
例子:
\documentclass{scrreprt}
\usepackage{lmodern}% scalable font
\RedeclareSectionCommand[
style=part,
afterskip=\glueexpr 0pt plus 1fil ,
beforeskip=\glueexpr 0pt plus 1fil + \baselineskip,
innerskip=20pt
]{chapter}
\renewcommand*{\chapterformat}{\chaptername\enskip\thechapter\autodot}
\addtokomafont{chapter}{\fontsize{45}{55}\selectfont}
\begin{document}
\chapter{Introduction}
Text
\end{document}