
titlesec
オプション付きのパッケージを使用する場合、ドキュメント クラスのデフォルト ( 、など)compact
は何ですか? (パッケージのドキュメントから標準のデフォルトを取得しましたが、バージョンが見つかりません...)\titlespacing*
\section
\subsection
article
compact
答え1
を見るとtitlesec.sty
、次のことがわかります。
\DeclareOption{compact}{%
\gdef\ttl@space{1}%
\gdef\ttl@chapafter{30\p@}}
行は、章のタイトルの後に\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