Re: Fwd: Lyx -> latex -> Lyx - cycle not working for very simple file

2011-03-29 Thread Jean-Marc Lasgouttes

Le 29/03/11 19:02, Georg Baum a écrit :

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.


Since we use catcodes, it should be possible without too much sweat, but 
things will probably become interesting as soon as somebody actually 
tries to do it :)


JMarc


Fwd: Lyx -> latex -> Lyx - cycle not working for very simple file

2011-03-29 Thread Richard Heck


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 + (UTC)
From:   dariomt 
To: lyx-users@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.


--- problematic lyx file ---

#LyX 1.6.8 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\end_header

\begin_body

\begin_layout Standard
\begin_inset Tabular





\begin_inset Text

\begin_layout Plain Layout
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

my code
\end_layout

\end_inset


\end_layout

\end_inset




\end_inset


\end_layout

\end_body
\end_document