tabularray icon indicating copy to clipboard operation
tabularray copied to clipboard

Overfull hbox with hspan=even and co=1

Open polgab opened this issue 3 years ago • 2 comments

In the following example, the first column should be less wide to prevent the table from overflowing into the margin.

\documentclass[draft]{article}
\usepackage{lipsum}
\usepackage{parskip}
\usepackage{tabularray}
\begin{document}
\lipsum[1]\par
\begin{tblr}{
    colspec={Q[co=1] c c},
    vlines,hlines,
    hspan=even,
  }
  a & b & c \\
  a & \SetCell[c=2]{c} Long text & \\
\end{tblr}
\par
\lipsum[2]
\end{document}

polgab avatar Mar 11 '22 09:03 polgab

It seems no easy to fix this bug.

lvjr avatar Mar 11 '22 13:03 lvjr

The bug still exists.

\documentclass{article}
\usepackage{showframe}
\usepackage{tabularray}
\setlength{\parindent}{0pt}
\begin{document}
\begin{tblr}
{
cell{1}{2}={c=2}{},
column{1}={co=1},
hlines,
vlines,
}
test & test test test test test test & test & test test test \\
test & test                          & test & test           \\
\end{tblr}

\begin{tblr}
{
cell{1}{2}={c=2}{},
columns={co=-1},
hlines,
vlines,
}
test & test test test test test test & test & test test test \\
test & test                          & test & test           \\
\end{tblr}
\end{document}

image

note286 avatar Jul 19 '23 01:07 note286