I want to write a specification and each paragraph should automatically be numbered. I found something similar in a book about fitness training:
I prepared a small MWE (two-sided layout):
\documentclass{book}
\usepackage[english]{babel}
\usepackage[toc]{blindtext}
\begin{document}
\Blinddocument
\end{document}
Sadly I do not have a starting point for a solution. A manual solution would be to use margin notes.
Ideally the solution does not include a command I have to write before every paragraph.
Update 1
Question/Answer Numbered paragraphs is pretty close:
\documentclass{article}
\usepackage[excludeor]{everyhook}
\usepackage{lipsum}
\usepackage{parskip} % I added this, Manuel Kuehner
\newcounter{paragraphs}[section]
\begin{document}
\PushPostHook{par}{%
\stepcounter{paragraphs}%
\llap{\thesection.\theparagraphs\ \kern\parindent}%
}
\section{Foo}
\lipsum
\section{Bar}
\lipsum
\end{document}
It creates an output like this:
So the output is not correct.
The problem is here that every section etc. also gets the additional numbering.
Update 2
Here's another close solution (in German): http://texwelt.de/wissen/fragen/5020
But there's the same problem that I need to use a command for every number.
Update 3 [2020-11-07, i. e. 5 Years later]
- After using/trying this for about 1.5 years I stopped it.
- In hindsight, the comments (@egreg for example) were right and it used too many unwanted side effects.
- I am sorry that I do not have a better update.
- I ended up using
\subsubparagraphand used it for every paragraph with a different formatting compared to the rest of the headings.



\everyparis probably the way to go. I've written something like this ages ago - will see if I can find it. – Thruston Aug 29 '15 at 10:12\paris used and a number should not appear: not only section titles, but also items in lists (including a single paragraphcenterenvironment). One could think to “conditional numbering”, disabling it in the special places. Not a task I'd undertake. – egreg Aug 29 '15 at 15:50