In given below text, I want to remove space between "diverse areas" to "2.1.1 Brief...".
Asked
Active
Viewed 2,965 times
0
Rmano
- 40,848
- 3
- 64
- 125
1 Answers
1
Based on my answer at Spacing before and after section titles, but with space removed rather than added. Here, I use \sectionprelude and if needed, \sectionpostlude to modify the default space before and after section headings. However, they can also be used to add ruled lines and other such stylistic modifications to the section head appearance.
Obviously, similar things can be done for subsections, etc.
\documentclass{article}
\usepackage{lipsum}
\makeatletter
\let\origsection\section
\renewcommand\section{\@ifstar{\starsection}{\nostarsection}}
\newcommand\nostarsection[1]
{\sectionprelude\origsection{#1}\sectionpostlude}
\newcommand\starsection[1]
{\sectionprelude\origsection*{#1}\sectionpostlude}
\newcommand\sectionprelude{%
\vspace{-4ex}% STUFF TO DO PRIOR TO THE SECTION HEADING
}
\newcommand\sectionpostlude{%
% \vspace{-2.5ex}% STUFF TO DO FOLLOWING THE SECTION HEADING
}
\makeatother
\begin{document}
\lipsum[4]
\section{Section Title}
\lipsum[1]
\end{document}
Steven B. Segletes
- 237,551


\documentclass{...}and ending with\end{document}. The answer to your question will depend a lot on the class, style, and packages used. Moreover, do you want to remove just that space or all the vertical spaces before sub-subsections? – Rmano Jun 30 '16 at 06:37