\@ifundefined{textcolor}{\usepackage{color}}{}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37140
a592a061-630c-0410-9148-
cb99ea01b6c8
}
}
+ else if (t.cs() == "@ifundefined") {
+ // prevent misparsing of \usepackage if it is used
+ // as an argument (see e.g. our own output of
+ // \@ifundefined above)
+ h_preamble << t.asInput();
+ h_preamble << '{' << p.verbatim_item() << '}';
+ h_preamble << '{' << p.verbatim_item() << '}';
+ h_preamble << '{' << p.verbatim_item() << '}';
+ }
+
else if (!t.cs().empty() && !in_lyx_preamble)
h_preamble << '\\' << t.cs();
}