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:
Juergen Spitzmueller 2021-01-10 09:55:45 +01:00
parent 98bfbe9ddf
commit c77ab339c1

View File

@ -2240,8 +2240,10 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
// use \PassOptionsToPackage here because the user could have
// already loaded subfig in the preamble.
if (features.mustProvide("subfig"))
atlyxpreamble << "\\@ifundefined{showcaptionsetup}{}{%\n"
" \\PassOptionsToPackage{caption=false}{subfig}}\n"
atlyxpreamble << "\\ifdefined\\showcaptionsetup\n"
" % Caption package is used. Advise subfig not to load it again.\n"
" \\PassOptionsToPackage{caption=false}{subfig}\n"
"\\fi\n"
"\\usepackage{subfig}\n";
// Itemize bullet settings need to be last in case the user