How do I set the document to add extra space above each subsubsection*?
Does one redefine the subsection command in the preamble, like the following?
I am using KOMA report class in Lyx 2.0.6.
Sorry for my newbie-ness....
How do I set the document to add extra space above each subsubsection*?
Does one redefine the subsection command in the preamble, like the following?
I am using KOMA report class in Lyx 2.0.6.
Sorry for my newbie-ness....
This may not be a very good idea, but adding some \vspace in \addtokomafont seemed to work fine in the quick little test I did. Go to Document --> Settings --> LaTeX Preamble, and add
\addtokomafont{subsubsection}{\vspace{2ex}}
Change 2ex to the length of your choice. \addtokomafont/\setkomafont is intented to be used to change the formatting (font size, weight, etc.) of various document elements (see table 3.2 in the (English) manual for KOMA-script).
A complete minimal LaTeX example:
\documentclass{scrreprt}
\usepackage{lipsum} % for dummy text
\addtokomafont{subsubsection}{\vspace{2cm}}
\begin{document}
\chapter{A}
\section{a}
Some text.
\subsubsection*{dd}
\lipsum[1]
\subsubsection*{dd}
\lipsum[1]
\end{document}

For a scrreprt class you can redefine directly the \subsection command. For example:
\makeatletter
\renewcommand\subsection%
{\@startsection {subsection}{2}{\z@}%
{-23.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries}}
\makeatother
Note that you must change -23.5ex to the desired space (by default is -3.5ex). The complete MWE:
\documentclass{scrreprt}
\makeatletter
\renewcommand\subsection%
{\@startsection {subsection}{2}{\z@}%
{-23.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries}}
\makeatother
\usepackage{lipsum} % for dummy text only
\begin{document}
\lipsum[2]
\chapter{example}
\section{Example}
\lipsum[2]
\subsection{Example}
\lipsum[2]
\end{document}
In a standard class as article you can obtain a similar effect adding this in the preamble:
\usepackage{titlesec}
\titlespacing{\subsection}{-10pt}{6em}{1em}
Experiment with this three lengths as you want, in this case 6em is the vertical spacing). Note that here the negative values are to reduce spacing).
For more information, run texdoc titlesec from the command line or go here.