lvjr / tabularray

Typeset tabulars and arrays with LaTeX3
https://ctan.org/pkg/tabularray
258 stars 22 forks source link

Wrong calculation of border sizes when border segments have different widths #260

Closed SainoNamkho closed 2 years ago

SainoNamkho commented 2 years ago
\documentclass{article}
\usepackage{tabularray, xcolor}
\begin{document}
\begin{tblr}{
hlines, vlines,
colspec={llll}
}
Alpha & \SetVline[1]{2}{blue,2pt}\SetVline[2]{2}{red,1pt}\SetVline[1]{3}{red,1pt}\SetVline[2]{3}{blue,2pt}
Beta & Gamma &  Delta\\
Epsilon & Zeta & Eta & Theta \\
\SetCell[c=2]{l}Iota &  & Lambda & Mu \\
\end{tblr}
\end{document}

image

lvjr commented 2 years ago

Actually, the bug has nothing to do with span cells:

\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{
  hlines, vlines,
  vline{2} = {1}{1}{4pt},
  vline{2} = {2}{1}{2pt},
  vline{2} = {1}{2}{2pt},
  vline{2} = {2}{2}{4pt},
}
  Alpha   & Beta \\
  Epsilon & Zeta \\
\end{tblr}
\end{document}

image