]> git.lyx.org Git - features.git/commitdiff
tex2lyx/Preamble.cpp: add support for all \defskip lengths
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 23 Nov 2014 02:28:07 +0000 (03:28 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 23 Nov 2014 02:28:07 +0000 (03:28 +0100)
- support for percentage length was missing and the fix is really that simple

src/tex2lyx/Preamble.cpp
src/tex2lyx/TODO.txt

index 622c7df1435a61a5a6963ca5f6e7085173a2ee27..bb2ace3c24f22ef92c36655d122f23a906a8fb01 100644 (file)
@@ -1734,7 +1734,7 @@ void Preamble::parse(Parser & p, string const & forceclass,
                                else if (content == "\\bigskipamount")
                                        h_defskip = "bigskip";
                                else
-                                       h_defskip = content;
+                                       h_defskip = translate_len(content);
                        } else
                                h_preamble << "\\setlength{" << name << "}{" << content << "}";
                }
index f3dd52e29b75deab1c4469166cece3fac2fe0361..f7118e11e25186e9f90a7e8d789bf91167b41ef0 100644 (file)
@@ -36,7 +36,6 @@ Format LaTeX feature                        LyX feature
 358    custom makeindex command             \index_command
 363    horizontal longtable alignment       InsetTabular
 364    branch file name suffix              \filename_suffix
-366    relative lengths for parskip         \defskip
 367    relative lengths for h and v space   InsetSpace, InsetVSpace
 368    glue lengths                         InsetSpace
 371    automatic mhchem loading             \use_mhchem