tex/row correspondance for \end{tabular}.
This commit is contained in:
Guillaume Munch 2015-11-01 23:58:41 +00:00
parent 4c16c61579
commit f6be7d89ef

View File

@ -2676,14 +2676,16 @@ void Tabular::TeXRow(otexstream & os, row_type row,
void Tabular::latex(otexstream & os, OutputParams const & runparams) const
{
bool const is_tabular_star = !tabular_width.zero();
TexRow::RowEntry pos = TexRow::textEntry(runparams.lastid,
runparams.lastpos);
//+---------------------------------------------------------------------
//+ first the opening preamble +
//+---------------------------------------------------------------------
os << safebreakln;
if (runparams.lastid != -1)
os.texrow().start(runparams.lastid, runparams.lastpos);
if (!TexRow::isNone(pos))
os.texrow().start(pos);
if (rotate != 0)
os << "\\begin{turn}{" << convert<string>(rotate) << "}\n";
@ -2812,6 +2814,9 @@ void Tabular::latex(otexstream & os, OutputParams const & runparams) const
if (rotate != 0)
os << breakln << "\\end{turn}";
if (!TexRow::isNone(pos))
os.texrow().start(pos);
}