Hi
Asking again for some help on how to prevent Lyx to add automatically
\usepackage{subgif} when using subfig. Richard kindly gave advices (see
below), which did not work unfortunately. Any help will be much appreciated!
Thanks a lot!
Matthieu
Le 22. 02. 11 14:56, Matthieu Stigler a écrit :
Dear Richard
Thanks a lot for your detailed explanation!
Unfortunately, the suggested procedure was without effect: even after
inserting/reconfiguring/loading the {no subfig} module, Lyx adds
automatically the lines:
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
Did it work on your Lyx configuration? I have Lyx 1.6.5 on Ubuntu 10.4
Your help is much appreciated!
Matthieu
Le 21. 02. 11 21:54, Richard Heck a écrit :
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