Hubert Christiaen wrote: > I am writing a conversion program which should generate floating and > wrapped image, what you get in Lyx by 'insert -> Float -> wrap text'. this > works fine in Lyx, but when I import the same code as handwritten TeX code, > Lyx complains and does not recognize it as a block. Even worse, if I export > the Lyx code as .tex and re-import it, Lyx also complains! So Lyx does not > even recognize its own code!
The switch of LyX to unicode somewhat stalled the development of the tex2lyx converter, since tex2lyx itself needed to be prepared for unicode, and no one volunteered for this task. Thus, all newer features are currently imported as TeX code instead of proper LyX stuff. This was a major problem we were aware of as of LyX 1.5.0. The good news is that we (Jean-Marc Lasgouttes, for that matter) are now seriously addressing this issue and that tex2lyx is handling unicode more or less now (i.e., in forthcoming LyX 1.6.2). This means that we will be able to subsequently add native support for the newer features (which may itself take some additional time, so do not expect too much wrt 1.6.2). Jürgen