On 02/21/2011 11:41 AM, Matthieu Stigler wrote:
Dear Richard

Thanks for your answer! I unfortunately did not understand exactly where I should put this command? When in Lyx preamble or in the custom .sty it results into error... Did I miss something?

The suggested
    Provides subfig 1
command is a LyX layout command, and needs to go into some appropriate layout file or module. See chapter 5 of the Customization manual for details. In this case, something as simple as what is at the end will do. Put it into the layout/ subdirectory of your LyX user directory (~/.lyx/, by default, on Linux), and then reconfigure. Then you can choose the "No subfig" module from Document>Settings>Modules, and LyX won't (shouldn't!) try to load subfig for you. Note that you could also add you other custom commands to such a module and not have to do it manually.


Furthermore, yes Lyx still adds preamble commands after user defined, see:
[snip]

Due to requirements on package-loading order, some such things do get done later.

Richard

====

#\DeclareLyXModule{No subfig}
#DescriptionBegin
#Supresses loading of subfig package.
#DescriptionEnd

Format 11

Provides subfig 1

Reply via email to