![如何更改乳胶文档中各部分层次的格式(样式)](https://linux22.com/image/472438/%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9%E4%B9%B3%E8%83%B6%E6%96%87%E6%A1%A3%E4%B8%AD%E5%90%84%E9%83%A8%E5%88%86%E5%B1%82%E6%AC%A1%E7%9A%84%E6%A0%BC%E5%BC%8F%EF%BC%88%E6%A0%B7%E5%BC%8F%EF%BC%89.png)
答案1
考虑使用提供 的report
(或)类,因为这就是图像中显示的内容。book
\chapter
以下最小示例提供了以下命令所需的级别:
\chapter
\section
\subsection
\subsubsection
\paragraph
\documentclass{report}
\usepackage{lipsum}
\setcounter{secnumdepth}{3}% Show sectional unit numbering up to level 3 (\subsubsection)
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\bfseries\textbullet\quad}}
\let\old@seccntformat\@seccntformat
\renewcommand{\@seccntformat}[1]{%
\csname the#1\endcsname
\ifnum\pdfstrcmp{#1}{subsubsection}=0 .\fi% Add period after \subsubsection number
\quad
}
\makeatother
\renewcommand{\thesubsubsection}{\alph{subsubsection}}% Update formatting of \subsubsection heading numbering
\begin{document}
\setcounter{chapter}{3}% Just for this example
\chapter{First level}
\lipsum[1][1]
\setcounter{section}{2}% Just for this example
\section{Second level}
\lipsum[1][2]
\setcounter{subsection}{5}% Just for this example
\subsection{Third level}
\lipsum[1][3]
\subsubsection{Fourth level}
\lipsum[1][4]
\paragraph{Fifth level}
\lipsum[1][5]
\end{document}