tex2lyx/Preamble.cpp: add support for all \defskip lengths

- support for percentage length was missing and the fix is really that simple
This commit is contained in:
Uwe Stöhr 2014-11-23 03:28:07 +01:00
parent 02b2cd50ed
commit c2e0f22385
2 changed files with 1 additions and 2 deletions

View File

@ -1734,7 +1734,7 @@ void Preamble::parse(Parser & p, string const & forceclass,
else if (content == "\\bigskipamount") else if (content == "\\bigskipamount")
h_defskip = "bigskip"; h_defskip = "bigskip";
else else
h_defskip = content; h_defskip = translate_len(content);
} else } else
h_preamble << "\\setlength{" << name << "}{" << content << "}"; h_preamble << "\\setlength{" << name << "}{" << content << "}";
} }

View File

@ -36,7 +36,6 @@ Format LaTeX feature LyX feature
358 custom makeindex command \index_command 358 custom makeindex command \index_command
363 horizontal longtable alignment InsetTabular 363 horizontal longtable alignment InsetTabular
364 branch file name suffix \filename_suffix 364 branch file name suffix \filename_suffix
366 relative lengths for parskip \defskip
367 relative lengths for h and v space InsetSpace, InsetVSpace 367 relative lengths for h and v space InsetSpace, InsetVSpace
368 glue lengths InsetSpace 368 glue lengths InsetSpace
371 automatic mhchem loading \use_mhchem 371 automatic mhchem loading \use_mhchem