From: Uwe Stöhr Date: Sat, 8 Dec 2007 20:49:01 +0000 (+0000) Subject: preamble.cpp: don't add \makeatother twice X-Git-Tag: 1.6.10~7006 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a1b9eedee8184099f43121bf8d427121bdd3c5b1;hp=3af56311a7bddc491fa01457bdb5e9efa2dd31d8;p=lyx.git 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 --- diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index 14920fdf7c..ea9353bd61 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -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"