preamble.cpp: don't add \makeatother twice

\makeatother and \makeatletter are already added by LyX around the user preamble

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22027 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2007-12-08 20:49:01 +00:00
parent 3af56311a7
commit a1b9eedee8

View File

@ -421,12 +421,10 @@ TextClass const parse_preamble(Parser & p, ostream & os, string const & forcecla
else if (t.cs() == "makeatletter") {
p.setCatCode('@', catLetter);
h_preamble << "\\makeatletter";
}
else if (t.cs() == "makeatother") {
p.setCatCode('@', catOther);
h_preamble << "\\makeatother";
}
else if (t.cs() == "newcommand" || t.cs() == "renewcommand"