答案1
你可以使用
\renewcommand\partformat{\partname~\thepart\autodot\enskip}% add space between number and title
\renewcommand\partheadmidvskip{}% remove the linebreak and vskip
\setkomafont{partprefix}{\usekomafont{part}}% same font(size) for prefix and title
例子:
\documentclass{scrbook}
\renewcommand\partformat{\partname~\thepart\autodot\enskip}
\renewcommand\partheadmidvskip{}
\setkomafont{partprefix}{\usekomafont{part}}
\usepackage{blindtext}
\begin{document}
\part{First Part}
\blinddocument
\end{document}
结果:
或者你可能想要:
\documentclass{scrbook}
\RedeclareSectionCommand[
beforeskip=\fill,
afterskip=0pt
]{part}
\renewcommand\raggedpart{\raggedleft}
\renewcommand\partformat{\thepart\autodot\enskip}
\renewcommand\partheadmidvskip{}
\setkomafont{partprefix}{\usekomafont{part}}
\usepackage{blindtext}
\begin{document}
\part{First Part}
\blinddocument
\end{document}
当然你也可以使用(如下方评论所问):
\documentclass{scrbook}
\RedeclareSectionCommand[
beforeskip=\fill,
afterskip=0pt
]{part}
\renewcommand\raggedpart{\raggedleft}
\renewcommand\partheadmidvskip{}
\renewcommand\partformat{part~\thepart\autodot\enskip}
\usepackage{xcolor}
\usepackage{lmodern}% scalable font
\setkomafont{partprefix}{\fontsize{26pt}{30pt}\selectfont\color{red}}
\setkomafont{part}{\usekomafont{partprefix}\color{blue}}
\usepackage{blindtext}
\begin{document}
\part{First Part}
\blinddocument
\end{document}
结果: