LNCS format has a run in style for subsubsection. I followed some instructions to modify the class file for LNCS, then there are newlines after each subsubsection, however, the header is missing. How to make the subsubsection looks like this:
1.1.1 example
example, example, example
now it lookes like this
example
example, example, example
The modified class file:
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-18\p@ \@plus -4\p@ \@minus -4\p@}%
{4\p@ \@plus 2\p@ \@minus 2\p@}%
{\normalfont\normalsize\bfseries\boldmath
\rightskip=\z@ \@plus 8em\pretolerance=10000 }}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-12\p@ \@plus -4\p@ \@minus -4\p@}%
{2\p@ \@plus 1\p@ \@minus 1\p@}%
{\normalfont\normalsize\itshape
\rightskip=\z@ \@plus 8em\pretolerance=10000 }}
Besides, I'm using lncs.cls
, a working example should look like this:
\documentclass[runningheads,a4paper]{llncs}
%\documentclass{article}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{float}
\usepackage{hyperref}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\title{xxxxxxxxxxxxxxxxxxxxxxxxxxxx}
\author{xxxxxxxxxxxxxxxxxxxxxx}
\institute{ xxxx \\ xxxxxxxxxxxxxxx}
\maketitle
\begin{xx}
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\end{xx}
\section{xxxx}~\label{xxxx}
xxxxxx
\subsection{xxxx}\label{xxx}
xxxxxxxxxxxxxxxxxxxxxx
\subsubsection{xxxx}
xxxxxxxxxxxxxxx
\bibliography{kk}
\bibliographystyle{splncs}
\end{document}
where subsubsection doesn't have a head like this:
1.1.1 example subsubsection
instead, the numbers are missing.
Best Answer
There are two things that is sufficient to update the display of
\subsubsection
toFor the first requirement, add
to your preamble.
\subsubsection
s are "level3
" sectional units. The default setting underllncs
is to have thesecnumdepth
counter set to2
, numbering only up to\subsection
.For the second requirement you need to understand what the arguments of
\@startsection
does. Read up on this at Where can I find help files or documentation for commands like\@startsection
for LaTeX? The<afterskip>
length - argument#5
- should be positive rather than negative. Here is the default definition withinllncs.cls
for\subsubsection
:We can change this to
(or something similar).