From a1b9eedee8184099f43121bf8d427121bdd3c5b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sat, 8 Dec 2007 20:49:01 +0000 Subject: [PATCH 1/1] 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 --- src/tex2lyx/preamble.cpp | 2 -- 1 file changed, 2 deletions(-) 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" -- 2.39.2