2007-04-05 Richard Heck <rgheck@brown.edu>

* bufferparams.C (writeLaTeX): output lengths as LaTeX strings
	(useful for foo%) (bug 3416)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17737 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-04-05 21:18:35 +00:00
parent b7b610c2cf
commit 1f7dd754fd
3 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2007-04-05 Richard Heck <rgheck@brown.edu>
* bufferparams.C (writeLaTeX): output lengths as LaTeX strings
(useful for foo%) (bug 3416)
2007-04-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxlayout.C (Read): set labelstringappendix_ every time

View File

@ -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();
}

View File

@ -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: