Re: [patch] fix subfig - caption package clash

2008-05-13 Thread Herbert Voss
Jürgen Spitzmüller schrieb: Herbert Voss wrote: And TLC2 doesn't say that it should be used only with \DeclareOption. It should be used in any case, where a document class and a user may load the same package with different options. Both clsguide and TLC2 are at least ambigouous in their state

Re: [patch] fix subfig - caption package clash

2008-05-13 Thread Jürgen Spitzmüller
Herbert Voss wrote: > And TLC2 doesn't say that it should be used only with \DeclareOption. > It should be used in any case, where a document class and a user may > load the same package with different options. Both clsguide and TLC2 are at least ambigouous in their statements: http://tex.loria.fr

Re: [patch] fix subfig - caption package clash

2008-05-13 Thread Herbert Voss
Jürgen Spitzmüller schrieb: Uwe Stöhr wrote: \PassOptionsToPackage{}{ Thanks for thehint. I implemented this now using this: http://www.lyx.org/trac/changeset/24746 Are you sure this works? - PassOptionsToPackage must be called before the package is loaded. - According to clsguide and TLC2,

Re: [patch] fix subfig - caption package clash

2008-05-13 Thread Uwe Stöhr
>> http://www.lyx.org/trac/changeset/24746 > > Are you sure this works? Yes, I tested this. > - PassOptionsToPackage must be called before the package is loaded. I was not sure about the loading order and both orders do work. I'll change this as you suggested. > - According to clsguide and TL

Re: [patch] fix subfig - caption package clash

2008-05-13 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: caption is one of the most popular LaTeX-packages, so we can expect that many users load it in the preamble. Where do you get such information? How do we measure 'popular'? I would be surprised to learn that people are more excited about customizing captions than

Re: [patch] fix subfig - caption package clash

2008-05-13 Thread Jean-Marc Lasgouttes
Uwe Stöhr <[EMAIL PROTECTED]> writes: > caption is one of the most popular LaTeX-packages, so we can expect > that many users load it in the preamble. Where do you get such information? How do we measure 'popular'? I would be surprised to learn that people are more excited about customizing capt

Re: [patch] fix subfig - caption package clash

2008-05-12 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > > \PassOptionsToPackage{}{ > Thanks for thehint. I implemented this now using this: > > http://www.lyx.org/trac/changeset/24746 Are you sure this works? - PassOptionsToPackage must be called before the package is loaded. - According to clsguide and TLC2, \PassOptionsToPackage a

Re: [patch] fix subfig - caption package clash

2008-05-12 Thread Uwe Stöhr
> The problem is not the clash, it is the way LyX works. LyX should > _always_ pass all own options to packages as > > \PassOptionsToPackage{}{http://www.lyx.org/trac/changeset/24746 regards Uwe

Re: [patch] fix subfig - caption package clash

2008-05-10 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > OK now? Fine with me. Thanks. Jürgen

Re: [patch] fix subfig - caption package clash

2008-05-10 Thread Herbert Voss
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 "capti

Re: [patch] fix subfig - caption package clash

2008-05-09 Thread Uwe Stöhr
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? regards Uwe Index: BufferParams.cpp === --- BufferParams.c

Re: [patch] fix subfig - caption package clash

2008-05-09 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > > [EMAIL PROTECTED] > > \usepackage{subfig}% > > }{% > > \usepackage[caption=false]{caption} > > } > > As I wrote above, this doesn't work, because subfig needs this option, > cption must not have this option Of course I meant [EMAIL PROTECTED] \usepackage{subfig}% }{% \usepack

Re: [patch] fix subfig - caption package clash

2008-05-08 Thread Uwe Stöhr
This doesn't work because this option is also a valid option of the caption package leading to LaTeX errors. The caption manual explicitely states that the option must be given to subfig and NOT to caption. Then we have to find another solution. Load the subfig package after the user preamble an

Re: [patch] fix subfig - caption package clash

2008-05-08 Thread Uwe Stöhr
> I need access to the caption formatting features that require caption > without actually loading caption itself. Could yo please send me an example file for playing? >> This doesn't work because this option is also a valid option of the >> caption package leading to LaTeX errors. The caption m

Re: [patch] fix subfig - caption package clash

2008-05-08 Thread Juergen Spitzmueller
Uwe Stöhr wrote: > What subfig caption options do you need? I'm asking because a document > should have consistent caption formats - for all float types. There are 2 > ways of getting this: - using caption > - using the document class caption options, like for koma-script. I need access to the ca

Re: [patch] fix subfig - caption package clash

2008-05-08 Thread Uwe Stöhr
> I don't think we should limit the subfig capabilities for the sake of a > package we don't support. I don't use caption and I _need_ subfig's caption > options anyway. caption is one of the most popular LaTeX-packages, so we can expect that many users load it in the preamble. The EmbeddedObjec

Re: [patch] fix subfig - caption package clash

2008-05-08 Thread Juergen Spitzmueller
Uwe Stöhr wrote: > OK? I don't think we should limit the subfig capabilities for the sake of a package we don't support. I don't use caption and I _need_ subfig's caption options anyway. IMO, people who use the caption package have to pass "caption=false" to the global options. A better solutio

[patch] fix subfig - caption package clash

2008-05-07 Thread Uwe Stöhr
The attached patch fixed the problem described in the patch that the caption package cannot be used by the users when the document contains subfloats. As the caption package is a very popular one, the patch is necesary to keep existing documents like the EmbeddedObjects manual compilable with LyX