tex2lyx/Preamble.cpp: handle \LyX

The definition for \LyX is re-added if the file contains \LyX
This commit is contained in:
Uwe Stöhr 2015-05-25 02:02:10 +02:00
parent 111df7b600
commit 9960709fc2

View File

@ -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;
}