如何制作文章类的整页节样板?

如何制作文章类的整页节样板?

我正在努力完成一个数学密集型大学项目,需要有 5 个部分。我想用整页居中的标题来划分这些部分,因为到目前为止,我需要每一英寸的页面空间来显示内容。我不能使用 \chapter{} 标题,因为它只适用于 \documentclass{book},而我使用的是 \documentclass{article}。

我也希望任何能帮助我的人可能已经做过这件事,并能分享一些让这个变得耀眼的技巧,例如居中、带边框的标题、水印等等。我没有注意到任何适合我的编程环境(Overleaf)的东西,否则我从一开始就会使用模板。

例子:

将此内容放在页面中央,字体要大一些,可能为 32pt 或更大一些,可能在上方和下方有线条。或者可能有所不同。我不挑剔。我只是想知道这个内容如何在其自己的页面上放大,主要是这样。

\documentclass{article}
\begin{document}
\section{New Section}
\end{document}

答案1

以下是两种可能的方法。

\documentclass{article}
\usepackage{lipsum}

\begin{document}
\tableofcontents

\clearpage\null\vfil\section{Section Title}\newpage

\lipsum[2]

\clearpage\noindent
\begin{minipage}[c][\textheight][c]{\textwidth}
\refstepcounter{section}%
\centering\Large
Section \thesection\\
\Huge\bfseries
Section Title
\addcontentsline{toc}{section}{\string\numberline{\thesection}Short Title}%
\end{minipage}

\lipsum[3]
\end{document}

相关内容