In LaTeX formulas can be automatically numbered like this:
\begin{equation}
1+1=2
\end{equation}
\begin{equation}
1+2=3
\end{equation}
This will produce something like that:
1+1=2 (1)
1+2=3 (2)
(Although the formulas will be centered.)
It is also possible to add a manual tag to replace the number and add a label to refer to the formula later:
\begin{equation} \tag{myTag} \label{myLabel}
2+2=4
\end{equation}
Which will look like this:
2+2=4 (myTag)
However, this is only possible with math formulas. Is there also a way to make this type of formatting/numbering also work with ordinary text, i.e. short statements?
For example, it should look like this:
This is my statement. (3)

\begin{equation} \mbox{This is my statement.} \end{equation}acceptable? – Mico Jan 09 '21 at 21:10\begin{align} &\mbox{My very long statement is continued}\\ &\mbox{in the second line.} \notag \end{align}This should work. :) If you want to add an answer I'll accept it. – Max Jan 09 '21 at 21:41numberedblockpackage: https://tex.stackexchange.com/questions/202966/how-can-i-show-codeboxes/202969#202969 and https://tex.stackexchange.com/questions/170435/theorem-style-similar-to-equation/170449#170449 – Steven B. Segletes Jan 09 '21 at 23:41