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