答案1
请参阅memoir
手册(尝试texdoc memoir
或texdoc memman
)第 6.5 和 6.6 节,其中展示了各种不同样式的章节和较低级别的标题以及生成它们的代码(但对于某些章节样式的代码,您必须查看实际的类文件memoir
)。请注意,几种章节样式是类不可或缺的一部分memoir
。
答案2
我绝对不会声称它是“美丽的”,但我想通过发布我自己的分段风格来鼓励其他答案。
这是我对于未编号部分(非常)紧凑风格的尝试:
\documentclass{scrartcl}
\usepackage{xcolor}
% Unnumbered titles.
\setcounter{secnumdepth}{-\maxdimen}
% Playing with the fonts
\setkomafont{subsubsection}{\normalfont\bfseries}
\setkomafont{paragraph}{\normalfont}
\setkomafont{subparagraph}{\normalfont\itshape}
% Playing with the spacing
\RedeclareSectionCommands[beforeskip=-.35\baselineskip, afterskip=.15\baselineskip]{section, subsection, subsubsection, paragraph, subparagraph}
\RedeclareSectionCommands[afterskip=-.5\baselineskip]{paragraph, subparagraph}
\addtokomafont{section}{\centering}
% Color from https://bedienhaptik.de/latex-template/
\definecolor[named]{myColorMainA}{RGB}{0,26,153}
% Coloring the titles
\addtokomafont{section}{\color{myColorMainA}}
\addtokomafont{subsection}{\color{myColorMainA}}
\addtokomafont{subsubsection}{\color{myColorMainA}}
\addtokomafont{paragraph}{\color{myColorMainA}}
\addtokomafont{subparagraph}{\color{myColorMainA}}
\begin{document}
\section{Level 1}
The quick brown fox jumps over the lazy dog.
\subsection{Level 2}
The quick brown fox jumps over the lazy dog.
\subsubsection{Level 3}
The quick brown fox jumps over the lazy dog.
\paragraph{Level 4}
The quick brown fox jumps over the lazy dog.
\subparagraph{Level 5}
The quick brown fox jumps over the lazy dog.
\end{document}