[Tex/LaTex] \titlespacing* defaults using the compact option

sectioningspacingtitlesec

Using the titlesec package with the compact option, what are the \titlespacing* defaults (for \section, \subsection, etc.) for the article document class? (I have the standard defaults from the package documentation but cannot find the compact version…)

Best Answer

Looking at titlesec.sty, one sees:

\DeclareOption{compact}{%
  \gdef\ttl@space{1}%
  \gdef\ttl@chapafter{30\p@}}

the line \gdef\ttl@chapafter{30\p@} simple instructs the usage of 30pt after a chapter title and \gdef\ttl@space{1} indicates 1\beforetitleunit and 1\aftertitleunit for the spacing before and after the tiles, respectively, for lower sectional units, so the compact option corresponds to the values

\titlespacing*{\chapter}
  {0pt}{50pt}{30pt}
\titlespacing*{\section}
  {0pt}{*1}{*1}
\titlespacing*{\subsection}
  {0pt}{*1}{*1}
\titlespacing*{\subsubsection}
  {0pt}{*1}{*1}

The default values for \beforetitleunit and \aftertitleunit are:

\beforetitleunit=1ex\@plus.3ex\@minus.06ex
\aftertitleunit=1ex\@plus.1ex