Richard Heck wrote: > > I'm forwarding this to lyx-devel and, in particular, to our tex2lyx guru. > > Richard > > -------- Original Message -------- > Subject: Lyx -> latex -> Lyx - cycle not working for very simple file > Date: Tue, 29 Mar 2011 16:03:24 +0000 (UTC) > From: dariomt <dari...@gmail.com> > To: lyx-us...@lists.lyx.org > > > > Hi list, > > I have looked around and I've seen there are a couple of issues with > exporting to latex and then reimporting it to lyx. > > I have run into that problem with a really very simple file (a 1x1 table > with a 'program listing' inside), and would like to know if there are any > known workarounds to make it work. > > With the attached lyx document I do File->Export->LaTex(plain) and then > File->Import->LaTex(plain) and I get a lyx document that cannot be > rendered as a pdf. > > Any help or pointer is appreciated. Thanks in advance.
This is a known problem. tex2lyx does not support listings (http://www.lyx.org/trac/ticket/5194) or the standard verbatim environment (http://www.lyx.org/trac/ticket/5408) at all. Fixing this is possible, but not easy, since the usual TeX parsing cannot be used for listings and verbatim code. It needs to be modified depending on the given listings settings, i.e. the escape character. Therefore I would not expect that this bug gets fixed soon. Georg