给“隐含”段落编号

给“隐含”段落编号

我正在使用该\setcounter{secnumdepth}{}功能对段落进行编号。但是,LateX 仅对使用 明确定义的段落进行编号\paragraph。有没有办法让常规“隐式”段落(即仅由换行符分隔)也进行编号?我想将文档中的标记保持在最低限度。

\documentclass{article}
\begin{document}
\setcounter{secnumdepth}{5}

\section[intro]{Introduction}
Some stuff goes here

\section[scope]{Scope}

A new paragraph, I wish it had numbers

Another paragraph.  It'd be nice to have numbers

\paragraph{}
This one has numbers because it's explicit

\paragraph{}
And so does this one

\end{document}

相关内容