I'm using the \setcounter{secnumdepth}{} feature to number my paragraphs. However, LateX only numbers paragraphs explicitly defined with \paragraph. Is there a way to make regular "implicit" paragraphs (i.e. separated only by newlines) numbered too? I'd like to keep the markup in my documents to a minimum.
\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}
\parand\endgraf(and related commands), which can mess up "automatic" numbering of paragraphs. In such cases, it is often better to start each paragraph with a command like\pnum, which you can define to do what -- and look how -- you want. – jon Jun 19 '15 at 14:16\paragraph*is not intended for the creation of paragraphs. It is a sectioning* command like\sectionor\subsection. Do note that every time you say\usepackage{}, you are loading non-standard code which you (presumably) don't understand and won't be able to fix when it breaks. The code inventurisadfis just as non-standard as anything I post here. The fact that I threw it on CTAN does not improve the quality of the code one iota. Note that I'm not encouraging you to copy-paste code you don't understand. But don't imagine that packages meet any quality standard. – cfr Jun 20 '15 at 01:13\chapteror\subsubsectionor\subparagraphare. They are all sectioning commands. It is unfortunate that\paragraphis called\paragraphas it leads people to think it is like HTML's<p>...</p>which it is not. It would be better to use autocompletion in your editor than to define\pto be\paragraph, though. However, I doubt that you will believe me. (Not personal: I wouldn't have believed me either.) – cfr Jun 20 '15 at 14:01\paragraphis not for numbering paragraphs it is the 4th level section heading so should only be used after\subsubsectionnot after\sectionas cfr said. If you are still interested in this, the new test release of latex includes paragraph hooks that can probably be used to answer the original request to number paragraphs with no markup – David Carlisle Jul 01 '21 at 16:31