LNCS 형식의 \subsection 뒤에 페이지 나누기 문제가 있습니다.

LNCS 형식의 \subsection 뒤에 페이지 나누기 문제가 있습니다.

저는 LNCS템플릿을 사용하여 논문을 작성하고 있습니다. 그러나 이상하게도 임의의 지점에서 페이지 나누기를 추가하면 \subsection'Abstract'와 'First Section' 사이에 나타납니다.

\documentclass[runningheads,a4paper]{llncs}

\usepackage{amssymb}
\setcounter{tocdepth}{3}
\usepackage{graphicx}

\usepackage{url}
%\urldef{\mailsa}\path|{alfred.hofmann, ursula.barth, ingrid.haas, frank.holzwarth,|
%\urldef{\mailsb}\path|anna.kramer, leonie.kunz, christine.reiss, nicole.sator,|
%\urldef{\mailsc}\path|erika.siebert-cole, peter.strasser, lncs}@springer.com|    
\newcommand{\keywords}[1]{\par\addvspace\baselineskip
\noindent\keywordname\enspace\ignorespaces#1}

\begin{document}

\mainmatter  % start of an individual contribution

% first the title is needed
\title{XXXXXX}
% a short form should be given in case it is too long for the running head
%\titlerunning{Lecture Notes in Computer Science: Authors' Instructions}

% the name(s) of the author(s) follow(s) next
%
% NB: Chinese authors should write their first names(s) in front of
% their surnames. This ensures that the names appear correctly in
% the running heads and the author index.
%
\author{}
%\author{Alfred Hofmann%
%\thanks{Please note that the LNCS Editorial assumes that all authors have used
%the western naming convention, with given names preceding surnames. This determines
%the structure of the names in the running heads and the author index.}%
%\and Ursula Barth\and Ingrid Haas\and Frank Holzwarth\and\\
%Anna Kramer\and Leonie Kunz\and Christine Rei\ss\and\\
%Nicole Sator\and Erika Siebert-Cole\and Peter Stra\ss er}
%
%\authorrunning{Lecture Notes in Computer Science: Authors' Instructions}
% (feature abused for this document to repeat the title also on left hand pages)

% the affiliations are given next; don't give your e-mail address
% unless you accept that it will be published
\institute{}
%\institute{Springer-Verlag, Computer Science Editorial,\\
%Tiergartenstr. 17, 69121 Heidelberg, Germany\\
%\mailsa\\
%\mailsb\\
%\mailsc\\
%\url{http://www.springer.com/lncs}}

%
% NB: a more complex sample for affiliations and the mapping to the
% corresponding authors can be found in the file "llncs.dem"
% (search for the string "\mainmatter" where a contribution starts).
% "llncs.dem" accompanies the document class "llncs.cls".
%

%\toctitle{Lecture Notes in Computer Science}
%\tocauthor{Authors' Instructions}
\maketitle


\begin{abstract}
Dummy abstract
\keywords{}
\end{abstract}


\section{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\section{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\section{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\section{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\subsection{XXXXXX}

\section{XXXXXX}

%\subsection{XXXXXX}% Uncomment this to see the problem

\end{document}

놀라운 점은 \subsection끝에 를 추가하면 첫 페이지 이후 맨 처음에 구분선이 나타난다는 것입니다. 누구든지 문제를 해결하는 방법에 대한 단서를 제공해 주실 수 있나요?

답변1

최소한의 예는 실제로 일반적인 문서를 반영하지 않지만 출력은 예상한 대로입니다. 이유는 다음과 같습니다...

각 단면 단위는 시공 중에 동일한 매크로를 거칩니다 \@startsection.이 매크로섹션 제목이 "런인(run-in)"인지 "표시"인지에 대한 조건입니다. 표시 섹션에서는 제목이 한 줄에 설정되고 단락 내용이 별도의 줄에 표시됩니다. 그러나 페이지 하단에 섹션 제목이 매달리는 것을 방지하기 위해 a가 \nobreak발행됩니다. 이를 통해 섹션 제목을 다음 단락과 연결/접착할 수 있습니다(분리되지 않음).모두중), 둘 다 현재 페이지에 유지하거나 둘 다 다음 페이지로 플러시합니다.

설정에서 다음을 수행했습니다.오직문서를 작성하기 위해 단면 단위를 사용했습니다( \section들 및 \subsection들). 이 두 섹션 제목은 모두 디스플레이로 설정되므로 강제로 \nobreak. 모든 제목이 \nobreaks로 표시되므로 사실상 "함께 붙어 있습니다". 발행할 페이지 나누기가 있으면 섹션 단위의 전체 블록을오직초록은 신뢰할 수 있는 페이지 나누기를 삽입할 수 있는 유일한 텍스트이기 때문에 다음 페이지로 이동해야 합니다.

이는 단지 특별한 시나리오일 뿐이며 단락 텍스트도 포함하는 일반(실제) 문서에서는 문제가 되지 않습니다.

관련 정보