Oh. I got it.
Thanks.

I am trying to expand the support of the IEEEtran layout in LyX, and on the
format for Computer Society Conferences the following could be read:

------------------------------------------------------------------------------------------------------------------
% *** SUBFIGURE PACKAGES ***
(...)
%\usepackage[caption=false]{caption}
%\usepackage[font=footnotesize]{subfig}
% subfig.sty, also written by Steven Douglas Cochran, is the modern
% replacement for subfigure.sty. However, subfig.sty requires and
% automatically loads Axel Sommerfeldt's caption.sty which will override
% IEEEtran.cls handling of captions and this will result in nonIEEE style
% figure/table captions. To prevent this problem, be sure and preload
% caption.sty with its "caption=false" package option. This is will preserve
% IEEEtran.cls handing of captions. Version 1.3 (2005/06/28) and later
% (recommended due to many improvements over 1.2) of subfig.sty supports
% the caption=false option directly:
%\usepackage[caption=false,font=footnotesize]{subfig}
------------------------------------------------------------------------------------------------------------------

So, if I understand everything well, and since LyX will only load the
caption package if it wasn't already loaded, I do not have to care about
this, right?


Cheers,
---
Diego Queiroz



2011/4/25 Julien Rioux <jri...@physics.utoronto.ca>

> On 25/04/2011 8:29 PM, Diego Queiroz wrote:
>
>> Can someone help me understand this piece of code:
>>
>>
>> ---------------------------------------------------------------------------------
>> \@ifundefined{showcaptionsetup}{}{%
>>   \PassOptionsToPackage{caption=false}{subfig}}
>>
>> \usepackage{subfig}
>>
>>
>> ---------------------------------------------------------------------------------
>>
>>
>> It is included when I use the subfigures.
>>
>>
>> I found in another thread that it intends to prevent users from adding the
>> "caption" package in the preamble.
>>
>> It this is really the intention of this piece code, could someone point me
>> why we need to prevent suck thing?
>>
>>
>>
>> Regards,
>> ---
>> Diego Queiroz
>>
>>
> It avoids loading the package "caption" twice if it is already loaded.
> Subfig will load it, and the user might already be loading it in preamble.
>
> --
> Julien
>
>

Reply via email to