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 changed the parident and parskip of my document. But now there is a huge empty space after the sections. How can I reduce the space after a section?

\documentclass[12pt,a4paper]{scrartcl}
\begin{document}
\setlength\parindent{0pt}
\setlength{\parskip}{\baselineskip}
\section{Test}
\subsection{Test}
Test test test test.

Test test test test.

\subsection{Test}
Test test test test.

Test test test test.
\end{document}
share|improve this question

1 Answer 1

up vote 11 down vote accepted

You should probably use the parskip package rather than changing those values yourself. As for the spacing, you can use \titlespacing from the titlesec package to change the spacing. For example

\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt}

seems more or less reasonable for the spacing around the \section. Something similar would be needed for for \subsection and \subsubsection.

share|improve this answer
4  
I can just add that, as mentioned in the parskip manual, the KOMA classes (and memoir, for that matter) have the features of that package builtin. Add e.g. parskip=full as an option to the documentclass. There are more choices, see the KOMA-script manual. –  Torbjørn T. Jun 14 '11 at 10:38
    
@Torbjorn: Ah okay. Then in that case it's best to use the provided methods. I never use KOMA or memoir so I'm (more than) a little ignorant of them. –  TH. Jun 14 '11 at 10:40

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.