On 02/21/2011 09:41 AM, Matthieu Stigler wrote:
Dear Lyx List

I am using a custom package that redefines captions style. But when I use the subfigure function, Lyx will add at end of preamble (after user own packages preamble) a line of code, which "cancels" my definition. This line is:

\@ifundefined{showcaptionsetup}{}{%


\PassOptionsToPackage{caption=false}{subfig}}


This has the effect to remove all our definitions of caption style. How can I resolve this? Should I
-prevent lyx to add this line? How?

You can add to a layout file or module somewhere:
    Provides subfig 1
That should prevent LyX from loading that package automatically.

-force Lyx to add my \usepackage{} command afterthis line? Is this possible?

Anything you put in your preamble goes after anything LyX adds.

Richard

Reply via email to