Set proper multirow size in X table columns

This commit is contained in:
Juergen Spitzmueller 2021-01-29 10:15:36 +01:00
parent e581e35be3
commit 52196d6c48
2 changed files with 9 additions and 4 deletions

View File

@ -2884,9 +2884,14 @@ void Tabular::TeXCellPreamble(otexstream & os, idx_type cell,
os << "\\multirow{" << rowSpan(cell) << "}{";
if (!getPWidth(cell).zero())
os << from_ascii(getPWidth(cell).asLatexString());
else
// we need to set a default value
os << "*";
else {
if (column_info[c].varwidth)
// this inherits varwidth size
os << "=";
else
// we need to set a default value
os << "*";
}
os << "}";
if (!getMROffset(cell).zero())
os << "[" << from_ascii(getMROffset(cell).asLatexString()) << "]";

View File

@ -1335,7 +1335,7 @@ void handle_tabular(Parser & p, ostream & os, string const & name,
parse.skip_spaces(true);
}
if (width != "*")
if (width != "*" && width != "=")
colinfo[col].width = width;
if (!vmove.empty())
cellinfo[row][col].mroffset = vmove;