mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Avoid \@ifundefined after user preamble
Users might have used \makeatother (#11163). \ifdefined (of e-tex) can be considered available nowadays.
This commit is contained in:
parent
98bfbe9ddf
commit
c77ab339c1
@ -2240,8 +2240,10 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
|
|||||||
// use \PassOptionsToPackage here because the user could have
|
// use \PassOptionsToPackage here because the user could have
|
||||||
// already loaded subfig in the preamble.
|
// already loaded subfig in the preamble.
|
||||||
if (features.mustProvide("subfig"))
|
if (features.mustProvide("subfig"))
|
||||||
atlyxpreamble << "\\@ifundefined{showcaptionsetup}{}{%\n"
|
atlyxpreamble << "\\ifdefined\\showcaptionsetup\n"
|
||||||
" \\PassOptionsToPackage{caption=false}{subfig}}\n"
|
" % Caption package is used. Advise subfig not to load it again.\n"
|
||||||
|
" \\PassOptionsToPackage{caption=false}{subfig}\n"
|
||||||
|
"\\fi\n"
|
||||||
"\\usepackage{subfig}\n";
|
"\\usepackage{subfig}\n";
|
||||||
|
|
||||||
// Itemize bullet settings need to be last in case the user
|
// Itemize bullet settings need to be last in case the user
|
||||||
|
Loading…
Reference in New Issue
Block a user