为什么 \pagebreak 会将下一页顶部的标题向下推?为了匹配其他页面,我需要在分页符后添加 \vspace*{-3\baselineskip}。
\documentclass[a4paper]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{dsfont}
\usepackage{indentfirst}
\usepackage{fullpage}
\usepackage{titling}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{epstopdf}
\pagestyle{fancy}
\setlength{\headheight}{0pt}
\setlength{\headsep}{32pt}
\setlength{\droptitle}{-4em}
\lhead{-}
\rhead{-}
\renewcommand\thesection{A-\arabic{section}}
\renewcommand\thesubsection{\thesection-\arabic{subsection}}
\renewcommand\thesubsubsection{\thesubsection \ \alph{subsubsection})}
\begin{document}
\subsection{}
\pagebreak
\subsection{}
\end{document}
答案1
事实并非如此\pagebreak
,但是fancyhdr
。
如果你查看日志文件中的警告,你会看到
Package Fancyhdr Warning: \headheight is too small (0.0pt):
Make it at least 12.0pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.
这解释了为什么第二页向下移动了 12pt。按照建议操作,就不会出现这个问题了。