From c2e0f2238514c928d56d92db7c17880570b0a1fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sun, 23 Nov 2014 03:28:07 +0100 Subject: [PATCH] tex2lyx/Preamble.cpp: add support for all \defskip lengths - support for percentage length was missing and the fix is really that simple --- src/tex2lyx/Preamble.cpp | 2 +- src/tex2lyx/TODO.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index 622c7df143..bb2ace3c24 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -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 << "}"; } diff --git a/src/tex2lyx/TODO.txt b/src/tex2lyx/TODO.txt index f3dd52e29b..f7118e11e2 100644 --- a/src/tex2lyx/TODO.txt +++ b/src/tex2lyx/TODO.txt @@ -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 -- 2.39.2