How can I number the lines (using lineno) of a text while using obeylines such that I don't have to put a \\
at the end of every line. I've tried:
\newenvironment{foo}
{ \begin{linenumbers}[1] \bgroup\obeylines }
{ \egroup \end{linenumbers} }
But this results in a number in front of every outputted line but I'd like to have only numbers on front of every input line.
Also how can I turn off the indent for every line inside this environment?
Using verbatim isn't an alternative because then I can't use footnotes and similar stuff inside this environment.
\documentclass{...}
and ending with\end{document}
.