Seitenumbruchproblem nach \subsection im LNCS-Format

Seitenumbruchproblem nach \subsection im LNCS-Format

Ich verwende LNCSeine Vorlage, um einen Aufsatz zu verfassen. Aber seltsamerweise \subsectionerscheint an einer zufälligen Stelle ein Seitenumbruch zwischen „Abstract“ und „Erster Abschnitt“, wenn ich einen hinzufüge:

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

Überraschenderweise füge ich \subsectionam Ende ein ein und der Umbruch erscheint ganz am Anfang, nach der ersten Seite. Kann mir bitte jemand einen Hinweis geben, wie ich das beheben kann?

Antwort1

Ihr Minimalbeispiel spiegelt nicht wirklich ein typisches Dokument wider, aber die Ausgabe ist wie erwartet. Hier ist der Grund ...

Jede der Teileinheiten durchläuft während der Konstruktion dasselbe Makro \@startsection.Dieses MakroBedingungen, ob die Abschnittsüberschrift „einlaufend“ oder „anzeigend“ sein soll. In einem Anzeigeabschnitt wird der Titel in einer einzelnen Zeile gesetzt, wobei der Absatzinhalt in einer separaten Zeile folgt. Um jedoch zu vermeiden, dass Abschnittsüberschriften am unteren Ende einer Seite hängen, \nobreakwird ein ausgegeben. Dadurch kann die Abschnittsüberschrift mit dem nachfolgenden Absatz verbunden/verklebt (nicht getrennt) werden (also nichtalledavon), entweder indem sie beide auf der aktuellen Seite bleiben oder beide auf die nächste Seite verschoben werden.

In Ihrem Setup haben Sienurverwendet Abschnittseinheiten, um Ihr Dokument zu erstellen ( \sections und \subsections). Beide Abschnittsüberschriften sind als Anzeige festgelegt und erzwingen daher eine \nobreak. Da alle Überschriften \nobreaks ausgeben, sind sie praktisch „zusammengeklebt“. Sobald ein Seitenumbruch ausgegeben werden muss, kann der gesamte Block von Abschnittseinheitennurauf die nächste Seite verschoben werden, da die Zusammenfassung der einzige Textabschnitt ist, in dem ein zuverlässiger Seitenumbruch eingefügt werden kann.

Dies ist nur ein Sonderszenario und sollte in einem normalen (echten) Dokument, das auch Absatztext enthält, kein Problem darstellen.

verwandte Informationen