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.


Some stuff goes here


A new paragraph, I wish it had numbers

Another paragraph.  It'd be nice to have numbers

This one has numbers because it's explicit

And so does this one

  • Is this a duplicate question? tex.stackexchange.com/questions/231837/… – Paul Stiverson Jun 19 '15 at 13:53
  • I think it may be, and the linked question includes an answer, but the paragraph numbering in the answer is independent of chapter/section/subsection numbering. I may play with it and post something here if I get it working. – JohnWoltman Jun 19 '15 at 14:11
  • There are at least 4 other questions pertaining to paragraph numbering in TeX.SE. Searching "Paragraph number" with the search bar in the upper-right corner of the page yields many fruit. – Paul Stiverson Jun 19 '15 at 14:14
  • This is easy or hard to do depending on what's in the actual document. Many environments use things like \par and \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
  • Thanks Paul. I read through the other paragraph numbering questions and decided to stick with the defaults for now, because I'm not familiar enough with LaTeX. I don't want to depend on non-standard code that I don't understand, because I won't be able to fix it when it breaks. I'll just put \paragraph commands in my text. – JohnWoltman Jun 19 '15 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.