Bastien <address@hidden> wrote:
Carsten Dominik <address@hidden> writes:
In the latex version they're not exported for some reasons...
That is correct, we have not implemented keeping all line breaks in
LaTeX.
I've searched around a bit, and to my big surprise, I cannot find a
LaTeX package preserving line breaks. I understand such a function
doesn't come along nicely with the general LaTeX philosophy, but it
should be possible after all...
Did anyone already tried to find such a package ?
Not a package, but there is \obeylines (plain TeX) that will
preserve line breaks - e.g. Knuth[1] suggests that it be used for
typesetting poetry:
{\obeylines\smallskip
Roses are red,
\quad Violets are blue;
Rhymes can be typeset
\quad with boxes and glue.
\smallskip}
It apparently works by pretending that the newline is a \par token.