
答案1
如果您想要標題上方正好有一點空間,那麼您需要對間距進行更深入的控制。
\vspace*{1pt}\begin{center}
上面的標準空格不會被刪除,center
因為它前面的內容不得在分頁符號處刪除(文檔的開頭算分頁符號)。這樣你就得到了1pt
加上的總和\topsep
。
另一方面,您可能實際上並不想要center
,而只是將標題居中。
\documentclass{article}
\usepackage{showframe}
\begin{document}
\vspace*{1pt}% the space you want
\vspace{-\topskip}% remove the topskip
\begingroup\centering\Huge
Test text\par
\endgroup
\addvspace{\topsep}% or what you need
Some other text follows.
\end{document}
請注意,您需要的不僅僅是\vspace*{1pt}
.