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