如何制作从标题编号开始编号的编号列表?

如何制作从标题编号开始编号的编号列表?

我需要这样做: 在此处输入图片描述

如图所示,每个新标题的数量也增加一。

我发现了一个类似的例子,但是略有不同: stackoverflow.com/q/2007627

答案1

解决方案:

\renewcommand\thesection{\arabic{section}} % Optional. Removing the chapter number from the section number.

\section{First title} 
\begin{enumerate}[label={\thesection.\arabic*.}]
    \item First topic:
    \begin{enumerate}[label*=\arabic*.]
        \item First Subtopic;
        \item Second Subtopic;
        \item Third Subtopic.
    \end{enumerate}
    \item Second topic:
    \begin{enumerate}[label*=\arabic*.]
        \item First Subtopic;
        \item Second Subtopic;
        \item Third Subtopic.
    \end{enumerate}
\end{enumerate}

\section{Second title}  
\begin{enumerate}[label={\thesection.\arabic*.}]
    \item First topic:
    \begin{enumerate}[label*=\arabic*.]
        \item First Subtopic;
        \item Second Subtopic;
        \item Third Subtopic.
    \end{enumerate}
    \item Second topic:
    \begin{enumerate}[label*=\arabic*.]
        \item First Subtopic;
        \item Second Subtopic;
        \item Third Subtopic.
    \end{enumerate}
\end{enumerate}

相关内容