tex2lyx/Preamble.cpp: handle \lyxline

This commit is contained in:
Uwe Stöhr 2015-05-25 01:48:28 +02:00
parent a7db473445
commit 111df7b600
3 changed files with 6 additions and 3 deletions

View File

@ -1554,7 +1554,10 @@ void Preamble::parse(Parser & p, string const & forceclass,
// remove LyX-specific definitions that are re-added by LyX
// if necessary
if (name == "\\lyxdot" || name == "\\lyxarrow") {
// \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") {
p.skip_spaces();
in_lyx_preamble = true;
}

View File

@ -479,7 +479,7 @@ The following tow don't work, but they should???
test
{\tiny{}\rule[0.5ex]{1\linewidth}{1pt}}{\tiny \par}
{\tiny \rule[0.5ex]{1\linewidth}{1pt}}{\tiny \par}
test {\Huge Test} {\tiny test} test

View File

@ -502,7 +502,7 @@ The following tow don't work, but they should???
test
{\tiny{}\rule[0.5ex]{1\linewidth}{1pt}}{\tiny \par}
{\tiny \rule[0.5ex]{1\linewidth}{1pt}}{\tiny \par}
test {\Huge Test} {\tiny test} test