章节标题与第一段不一致

章节标题与第一段不一致

我发现很多章节/子章节的标题与段落分开,跨过页面和列的边界。我以前从未见过这种情况,但我也在使用一个对我来说很新的类文件,所以我怀疑这与类文件本身的错误有关。我是 TeX 的新手,从未花太多时间研究过类文件,所以这很让人困惑,但经过一番探索,我找到了一些线索。

完整的类文件可用这里,但下面似乎包含(可能)相关的片段:

% Rationale for changes made in next four definitions:
% "Before skip" is made elastic to provide some give in setting columns (vs.
% parskip, which is non-elastic to keep section headers "anchored" to their
% subsequent text.
%
% "After skip" is minimized -- BUT setting it to 0pt resulted in run-in heads, despite
% the documentation asserted only after-skip < 0pt would have result.
%
% Baselineskip added to style to ensure multi-line section titles, and section heads
% followed by another section head rather than text, are decently spaced vertically.
% 12 Jan 2000 gkmt
\def\section{%
    \@startsection{section}{1}{\z@}{-10\p@ \@plus -4\p@ \@minus -2\p@}%
    {0.5pt}{\baselineskip=14pt\secfnt\@ucheadtrue}%
}

\def\subsection{%
    \@startsection{subsection}{2}{\z@}{-10\p@ \@plus -4\p@ \@minus -2\p@}
    {0.5pt}{\baselineskip=14pt\secfnt}%
}
\def\subsubsection{%
    \@startsection{subsubsection}{3}{\z@}{-10\p@ \@plus -4\p@ \@minus -2\p@}%
    {0.5pt}{\baselineskip=14pt\subsecfnt}%
}

\def\paragraph{%
    \@startsection{paragraph}{3}{\z@}{-10\p@ \@plus -4\p@ \@minus -2\p@}%
    {0.5pt}{\baselineskip=14pt\subsecfnt}%
}

\let\@period=.
\def\@startsection#1#2#3#4#5#6{%
        \if@noskipsec  %gkmt, 11 aug 99
        \global\let\@period\@empty
        \leavevmode
        \global\let\@period.%
    \fi
    \par
    \@tempskipa #4\relax
    \@afterindenttrue
    \ifdim \@tempskipa <\z@
        \@tempskipa -\@tempskipa
        \@afterindentfalse
    \fi
    %\if@nobreak  11 Jan 00 gkmt
        %\everypar{}
    %\else
        \addpenalty\@secpenalty
        \addvspace\@tempskipa
    %\fi
    \parskip=0pt
    \@ifstar
        {\@ssect{#3}{#4}{#5}{#6}}
        {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}%
}

评论中提到了保持节标题“固定” - 是否有可能这些更改之一导致标题变得不固定?当我使用 Word 时,这只是“与下一个保持一致”,但在这里似乎并不那么简单。我该怎么办?我在 .tex 文件中做了什么可能导致这种情况?

答案1

您使用的 amsproc.cls 版本很旧(非常非常旧!)。您是否正在运行某个 Redhat 发行版?

我建议你更新到 TeX/LaTeX 的更新版本,你可以从http://www.tug.org/texlive/或来自http://fedoraproject.org/wiki/Features/TeXLive

相关内容