在下面的例子中,我想减少第一节标题上方的空白(它似乎放置不当或至少位置不稳定),当尝试使用\vspace{}
第一个标题上方的空白来重新对齐它时,使用向上到向下\Section{}
没有任何变化,但是使用导致标题文本位置非常高(参见下面的屏幕截图)。\vspace{-0mm}
\vspace{-12mm}
\vspace{-13mm}
奇怪的是,如果我将最后两段文本合并为一段,就不会发生此问题。不同的文本会导致第一节标题上方出现大量或相当多的空白。
有人能解释一下为什么\vspace{}
和/或\Section{}
行为不当吗?谢谢!:-)
\documentclass[11pt]{amsart}
\usepackage{fullpage} % fixes the annoyingly large default margins.
\setlength{\parindent}{0pt}
\setlength{\parskip}{1em}
\setlength{\footskip}{10pt}
\setlength{\topmargin}{-0.5in}
\setlength{\headheight}{15pt}
\setlength{\headsep}{0.3in}
\setlength{\textheight}{9.05in}
\setlength{\footskip}{0.5in}
% For fancy header...
\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}
\lhead{Joe Public}
\chead{{\large{\bf Document Title}}}
\rhead{\thepage/\pageref{LastPage}}
\lfoot{}
\rfoot{}
\cfoot{}
% Emphasize the section titles more than the default
\newcommand{\Section}[1]{{\Large\section*{#1}}}
% First page
\fancypagestyle{empty}{%
\fancyhf{}% Clear header/footer
\fancyhead[C]{
\textbf{\sc{\LARGE Document Title}}\\ \vspace{1mm}
\sc{\large Joe Public} \vspace{1mm}
}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\thispagestyle{empty} % default is to keep first page plain...
\phantom{.} % Keeps text from starting right below the \hbar
Words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words.
\vspace{-12mm} % 0 to 12mm does NOT change \Section placement!?
%\vspace{-13mm} % But 13mm causes a BIG jump up...
\Section{The First Section}
Words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words.
Words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words.
\Section{The Second Section}
Words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words.
Words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words.
\end{document}
以下是左侧为 -0mm 和 -12mm(相同)以及右侧为 -13mm 的比较:
答案1
这里发生的情况是,您很不幸遇到了这样的情况:“下一个”段落(从第 2 页开始的段落)的两行无法放在第 1 页的底部,因此页面在第 2 节的第一段之后被断开,并且节头前的延伸(相当大的延伸)占据了主导地位。
如果你真的想修改标题上方的空间(你真的应该考虑减少空间以下章节标题也是如此,如果不是优先于上面的空间),那么您应该修改的基本定义\section
:
\def\section{\@startsection{section}{1}%
\z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
{\normalfont\scshape\centering}}
段的开头.7\linespacing
指定上方的空间,而(不可拉伸的)则
.5\linespacing
指定下方的空间。
设置这些值的目的是当 ams 出版物中的期刊文章中存在章节标题时,页面底部齐平。您对页面布局进行了重大更改,因此预定义设置不能按其最初设计的方式运行。ams 文档类不应以这种方式修改,而应严格遵守 ams 出版物规范。
实际上,使用article
(而不是amsart
)并加载amsmath
和可能会获得更好的amsthm
结果。