我使用以下代码对论文标题页进行分段。前两章的标题和章节号位于单独页面的中间,正文从下一页开始,但下一章从顶部开始,并附带正文。有人可以在这方面指导我吗?
\usepackage{titlesec}
\usepackage{titling}
\usepackage{lipsum}
\titleformat{\chapter}[display]
{\normalfont\Large\filcenter\sffamily}
{\titlerule[1pt]%
\vspace{1pt}%
\titlerule
\vspace{1pc}%
\LARGE\MakeUppercase{\chaptertitlename} \thechapter}
{1pc}
{\titlerule
\vspace{1pc}%
\Huge}
[\newpage]
答案1
这是一个尝试
\documentclass{report}
%\usepackage[showframe]{geometry}
\usepackage{titlesec}
%\usepackage{titling}
\usepackage{lipsum}
\titleformat{\chapter}[display]
{\normalfont\Large\filcenter\sffamily}
{\titlerule[1pt]%
\vspace{1pt}%
\titlerule
\vspace{1pc}%
\LARGE\MakeUppercase{\chaptertitlename} \thechapter}
{1pc}
{\titlerule
\vspace{1pc}%
\Huge}
\begin{document}
\begingroup
\titleformat{\chapter}[display]
{\vfill\normalfont\Large\filcenter\sffamily}
{\titlerule[1pt]%
\vspace{1pt}%
\titlerule
\vspace{1pc}%
\LARGE\MakeUppercase{\chaptertitlename} \thechapter}
{1pc}
{\titlerule
\vspace{1pc}%
\Huge}
[\vfill\clearpage]
\titlespacing{\chapter}{0pt}{-2.25ex}{0pt}
\chapter{First vertically centered chapter}
\lipsum
\chapter{Second vertically centred chapter}
\endgroup
\lipsum
\chapter{normal chapter}
\lipsum
\end{document}