On Fri, Aug 11, 2000 at 02:29:05PM +0200, Jos van den Oever wrote:
> Hi,
>
> When I import a latex file with floating figures, the figure is place outside of the
>float. Below I give the latex input file, then the resulting lyx file and then what
>the lyx file should be.
Hey Kayvan! I took a look at this and it seems the only problem is that we
need an extra \layout Standard before the TeX mode text that's in the
figure. (Usually we don't print \layout Standard inside a figure because
there's no actual text.) I think the problem is that $Is_New_Paragraph has
been set to false because we just printed a \layout Standard before starting
the figure.
I believe the solution is something like we do for footnotes: setting
Old_INP = Is_New_Paragraph; Is_New_Paragraph = 1; and resetting at the end
of the figure.
Does this make sense?
-Amir