Hi!
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 good news is that the dvi viewer has no problem with that code and
executes as intended.
TeX code:
\begin{wrapfigure}{O}{0.5\columnwidth}
\includegraphics{NewtonKogelA}\caption{bol op kegel}
\end{wrapfigure}
Lyx splits this up several ERT pieces '\begin{wrapfigure}{' followed by normal
text O, followed by ERT '}{', followed by normal text 0.5 \bakslash ...
While the correct Lyx generated code is starts with:
\begin_layout Standard
\begin_inset Wrap figure
placement O
width "50col%"
status open
\begin_layout Standard
\begin_inset Graphics
filename /windows/D/hubert/mechan/Wikibooks/NewtonKogelA.png
BoundingBox 0bp 0bp 265bp 119bp
\end_inset
....
What's causing the problem?
Sincerely,
Hubert
--
Hubert Christiaen
Bloesemlaan 17
3360 Korbeek-Lo
Belgium