diff --git a/src/ChangeLog b/src/ChangeLog index d89b25609b..f0f91406f6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-04-05 Richard Heck + + * bufferparams.C (writeLaTeX): output lengths as LaTeX strings + (useful for foo%) (bug 3416) + 2007-04-05 Jean-Marc Lasgouttes * lyxlayout.C (Read): set labelstringappendix_ every time diff --git a/src/bufferparams.C b/src/bufferparams.C index 98313cde62..77616be12f 100644 --- a/src/bufferparams.C +++ b/src/bufferparams.C @@ -888,19 +888,19 @@ bool BufferParams::writeLaTeX(ostream & os, LaTeXFeatures & features, } } if (!topmargin.empty()) - os << ",tmargin=" << topmargin; + os << ",tmargin=" << LyXLength(topmargin).asLatexString(); if (!bottommargin.empty()) - os << ",bmargin=" << bottommargin; + os << ",bmargin=" << LyXLength(bottommargin).asLatexString(); if (!leftmargin.empty()) - os << ",lmargin=" << leftmargin; + os << ",lmargin=" << LyXLength(leftmargin).asLatexString(); if (!rightmargin.empty()) - os << ",rmargin=" << rightmargin; + os << ",rmargin=" << LyXLength(rightmargin).asLatexString(); if (!headheight.empty()) - os << ",headheight=" << headheight; + os << ",headheight=" << LyXLength(headheight).asLatexString(); if (!headsep.empty()) - os << ",headsep=" << headsep; + os << ",headsep=" << LyXLength(headsep).asLatexString(); if (!footskip.empty()) - os << ",footskip=" << footskip; + os << ",footskip=" << LyXLength(footskip).asLatexString(); os << "}\n"; texrow.newline(); } diff --git a/status.14x b/status.14x index 95881371b5..4f9f060762 100644 --- a/status.14x +++ b/status.14x @@ -37,6 +37,9 @@ What's new - Don't skip lines after noweb chunks in tex2lyx (bug 3052) +- fix bug when entering relative length (like page%) as margin + settings (bug 3416). + - Fix Date external template in windows (bug 3241) * USER INTERFACE: