On Sun, Feb 21, 2016 at 03:15:49PM +0100, David Rörich wrote: > Hello Jürgen, > > no, not directly. As a single line break is ignored in Latex, Lyx seems to > remove these single line breaks automatically to make the editor layout > consistent with the output. I think you have two options here: > > 1) Use double line breaks in the text you paste into the ERT. Lyx will > convert this to single line breaks in the ERT which translates to a > whitespace in the output. (see files attached) > 2) Use the listing environment (Insert > Program listing). Everything you > insert there will be interpreted verbatim. This is the way to go if you > would like to insert program code in your document.
I believe that a third option is to do ctrl+shift+v, or Edit > Paste Special > Plain Text. Scott
signature.asc
Description: PGP signature