Problema de quebra de página após \subsection no formato LNCS

Problema de quebra de página após \subsection no formato LNCS

Estou usando LNCSum modelo para criar um artigo. Mas, estranhamente, em um ponto aleatório, se eu adicionar uma \subsectionquebra de página, aparece entre 'Resumo' e 'Primeira Seção':

\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}

O que é surpreendente é que estou adicionando um \subsectionno final e a quebra aparece logo no início, após a primeira página. Alguém pode me dar alguma pista sobre como consertar isso?

Responder1

Seu exemplo mínimo não reflete realmente um documento típico, mas a saída é a esperada. Aqui está o porquê...

Cada uma das unidades seccionais passa pela mesma macro durante a construção \@startsection.Esta macrocondições sobre se o título seccional deve ser "rodado" ou "exibido". Em uma seção de exibição, o título é definido em uma única linha e o conteúdo do parágrafo segue em uma linha separada. No entanto, para evitar títulos de seção pendentes na parte inferior de uma página, \nobreaké emitido um. Isso permite que o título da seção seja unido/colado (não separado) com o parágrafo seguinte (bem, nãotodosdele), mantendo ambos na página atual ou liberando ambos para a página seguinte.

Na sua configuração, vocêapenasusou unidades seccionais para construir seu documento ( \sections e \subsections). Ambos os títulos seccionais são definidos como uma exibição e, portanto, forçam um \nobreak. Com todos os títulos emitindo \nobreaks, eles ficam virtualmente "grudados". Quando houver uma quebra de página a ser emitida, todo o bloco de unidades seccionais poderáapenasser liberado para uma página seguinte, uma vez que o resumo é o único trecho de texto onde uma quebra de página confiável pode ser inserida.

Este é apenas um cenário especial e não deve ser motivo de preocupação em um documento normal (real) que também contém texto de parágrafo.

informação relacionada