]> git.lyx.org Git - lyx.git/commitdiff
preamble.cpp: don't add \makeatother twice
authorUwe Stöhr <uwestoehr@web.de>
Sat, 8 Dec 2007 20:49:01 +0000 (20:49 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 8 Dec 2007 20:49:01 +0000 (20:49 +0000)
\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

src/tex2lyx/preamble.cpp

index 14920fdf7c72203bf9e72cb3e347e6987315115e..ea9353bd61754134ee9cd0c754f15cab473c8f8f 100644 (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"