From 9960709fc25756cce248d39ba9c99f1089d3e020 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Mon, 25 May 2015 02:02:10 +0200 Subject: [PATCH] tex2lyx/Preamble.cpp: handle \LyX The definition for \LyX is re-added if the file contains \LyX --- src/tex2lyx/Preamble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index b7e28742f3..d1733dd725 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -1557,7 +1557,7 @@ void Preamble::parse(Parser & p, string const & forceclass, // \lyxline is an ancient command that is converted by tex2lyx into // a \rule therefore remove its preamble code if (name == "\\lyxdot" || name == "\\lyxarrow" - || name == "\\lyxline") { + || name == "\\lyxline" || name == "\\LyX") { p.skip_spaces(); in_lyx_preamble = true; } -- 2.39.2