
使用titlesec
帶有選項的包,文檔類別的預設值(、等)compact
是什麼? (我有套件文檔中的標準預設值,但找不到版本...)\titlespacing*
\section
\subsection
article
compact
答案1
看著titlesec.sty
,人們會看到:
\DeclareOption{compact}{%
\gdef\ttl@space{1}%
\gdef\ttl@chapafter{30\p@}}
該行simple 指示在章節標題之後\gdef\ttl@chapafter{30\p@}
使用,並分別指示和分別用於較低截面單元的圖塊之前和之後的間距,因此該選項對應於值30pt
\gdef\ttl@space{1}
1\beforetitleunit
1\aftertitleunit
compact
\titlespacing*{\chapter}
{0pt}{50pt}{30pt}
\titlespacing*{\section}
{0pt}{*1}{*1}
\titlespacing*{\subsection}
{0pt}{*1}{*1}
\titlespacing*{\subsubsection}
{0pt}{*1}{*1}
\beforetitleunit
和 的預設值為\aftertitleunit
:
\beforetitleunit=1ex\@plus.3ex\@minus.06ex
\aftertitleunit=1ex\@plus.1ex