Jürgen Spitzmüller wrote:
Helge Hafting wrote:
It is easy enough to make a patch that simply replaces
floatflt with wrapfig, by changing the \usepackage
as well as the \begin -- \end commands that LyX outputs.

Would that be an acceptable starting point?

I think this can be done without changing the file format, as
wrapfig seems to support all the floatflt options.

No, you need a file format change, if only for backwards compatibility.
Why? An old LyX will open files created with the new
LyX just fine - because the .lyx file don't differentiate
between the wrapfig and floatflt latex packages.

The .lyx file format just specifies a "wrapped figure",
which either of these packages implement.

Different versions of LyX will then generate different latex,
but they save exactly the same .lyx file. So no conversion
is necessary, not even in order to go back to an earlier
version of LyX.

If you still need a version change (for political reasons?)
please give me a hint on how I change the file format
and add the do-nothing-at-all conversion. I can then add
that to my wrapfig patch.

Helge Hafting



Reply via email to