commit 9960709fc25756cce248d39ba9c99f1089d3e020
Author: Uwe Stöhr <[email protected]>
Date:   Mon May 25 02:02:10 2015 +0200

    tex2lyx/Preamble.cpp: handle \LyX
    
    The definition for \LyX is re-added if the file contains \LyX

diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index b7e2874..d1733dd 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;
                        }

Reply via email to