Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-23 Thread Julien Rioux
On 23/02/2011 7:15 AM, Matthieu Stigler wrote: 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

Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-23 Thread Matthieu Stigler
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

Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Matthieu Stigler
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}{s

Re: SV: SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Matthieu Stigler
Thanks Ingar for the further explanations! So the problem is most probably that subfig also uses \AtBeginocument{}, so my own \AtBeginDocument does not work... The second solution, using the code in ERT, is not possible in my case, since it is a whole package. I will then try Richard's soluti

SV: SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-22 Thread Ingar Pareliussen
Hi > The \AtBeginDocument seems indeed to be what I am looking for! But what > is its expected behavior? I still see in both the Lyx-latex sources and > exported .tex the command \AtBeginDocument before the babel/subfig > lines... \AtBeginDocument is a LaTeX command and should ensure that the com

Re: SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread mat
Thanks Ingar! The \AtBeginDocument seems indeed to be what I am looking for! But what is its expected behavior? I still see in both the Lyx-latex sources and exported .tex the command \AtBeginDocument before the babel/subfig lines... \AtBeginDocument{ \usepackage{custom} } \@ifundefined{sh

SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Ingar Pareliussen
Hi >-force Lyx to add my \usepackage{} command afterthis line? Is this possible? You can try using the \AtBeginDocument{} described in http://wiki.lyx.org/FAQ/Unsorted >-use a workaround where I try to define in the custom package >showcaptionsetup, so that the line does not run? You can try

Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Richard Heck
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 comm

Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Matthieu Stigler
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? Furthermore, yes Lyx still adds preamble commands after user defined, see: %%

Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Richard Heck
On 02/21/2011 09:41 AM, Matthieu Stigler wrote: Dear Lyx List I am using a custom package that redefines captions style. But when I use the subfigure function, Lyx will add at end of preamble (after user own packages preamble) a line of code, which "cancels" my definition. This line is: \@i

Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%

2011-02-21 Thread Matthieu Stigler
Dear Lyx List I am using a custom package that redefines captions style. But when I use the subfigure function, Lyx will add at end of preamble (after user own packages preamble) a line of code, which "cancels" my definition. This line is: \@ifundefined{showcaptionsetup}{}{% \PassOptionsToPa