Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use the LNCS document style for a paper. However, I find the spacing between subsubsections (ca 2 lines) very generous and would like to decrease it. How can I do this? (Note: I am not required to adhere to the LNCS formatting rules, so hacking this is okay.)

%% LyX 2.0.5.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[10pt,english]{llncs}
\begin{document}
\section{Section A}
\subsubsection{First.}
Lorem ipsum.
% TODO: decrease spacing here
\subsubsection{Second.}
Lorem ipsum.
\end{document}
share|improve this question
3  
You've been around long enough to know that even the slightest bit of effort in the form of a minimal working example (MWE) goes a looooong way. Sorry to harp on it, but like gravity, I wish it was the law. –  Werner Sep 24 '13 at 17:14
    
What exactly would a MWE for this case contain? The answer might be very general. –  clstaudt Sep 24 '13 at 17:18
    
From your code it's clear that you use LyX, but also that you don't seem to be using any packages dealing with sectioning (like sectsty or titlesec, say). That is what the MWE tells me. –  Werner Sep 24 '13 at 17:35
add comment

1 Answer 1

up vote 4 down vote accepted

The space above \subsubsection is similar to that above a \subsection and \section, according to llncs.cls. You need to update the lengths to your liking:

enter image description here

\documentclass{llncs}% http://www.springer.com/computer/lncs?SGWID=0-164-6-793341-0
\begin{document}
\section{A section}
Some text
\subsection{A subsection}
Some text
\subsubsection{A subsubsection}
Some text
\subsubsection{Another subsubsection}
Some text

\bigskip

% Put the block below in your LaTeX preamble
\makeatletter
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                       {-8\p@ \@plus -4\p@ \@minus -4\p@}% Formerly -18\p@ \@plus -4\p@ \@minus -4\p@
                       {-0.5em \@plus -0.22em \@minus -0.1em}%
                       {\normalfont\normalsize\bfseries\boldmath}}
\makeatother

\section{A section}
Some text
\subsection{A subsection}
Some text
\subsubsection{A subsubsection}
Some text
\subsubsection{Another subsubsection}
Some text
\end{document}

The change was made to the arguments of \@startsection, which is called by \subsubsection (and most other sectioning macros). Specifically, the fourth and fifth argument deal with the space before and after the sectioning command. If it's negative (as is the case with \subsubsection), a run-in title is produced, otherwise it is set as a display. For more on the actual meaning/usage, see Where can I find help files or documentation for commands like \@startsection for LaTeX?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.