mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-31 07:45:44 +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
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user