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

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

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

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

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

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