Uwe Stöhr schrieb:
Attached is a better patch:
subfig is now loaded behind the user-defined preamble for the reasons
described in the patch and we check if caption was loaded or not.
OK now?
+ // For the case that caption is loaded before subfig, there is the
subfig
+ // option "caption=false". This option also works when a koma-script
class is
+ // used and koma's own caption commands are used instead of caption.
The problem is not the clash, it is the way LyX works. LyX should
_always_ pass all own options to packages as
\PassOptionsToPackage{<options>}{<package<}
and then using only \usepackage{<package>}. Then the user can
load the package with any optional argument and you do not get
an option clash.
Herbert