2002-02-07 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+ * lyxlength.C (asLatexString): change PW to output as percent of
+ \textwidth.
+
+ * lengthcommon.C: change '%' to 't%'
+
* lyxfunc.C (dispatch): a few comments from Martin
2002-02-06 John Levon <moz@compsoc.man.ac.uk>
char const * unit_name[num_units] = { "sp", "pt", "bp", "dd",
"mm", "pc", "cc", "cm",
"in", "ex", "em", "mu",
- "%", "c%", "p%", "l%" };
+ "t%", "c%", "p%", "l%" };
LyXLength::UNIT unitFromString(string const & data)
ostringstream buffer;
switch(unit_) {
case PW:
+ buffer << abs(static_cast<int>(val_/100)) << "."
+ << abs(static_cast<int>(val_)%100) << "\\textwidth";
+ break;
case PE:
buffer << abs(static_cast<int>(val_/100)) << "."
<< abs(static_cast<int>(val_)%100) << "\\columnwidth";