tabularray
tabularray copied to clipboard
What about a `lines` option that would set both `hlines` and `vlines`?
What about a lines option that would set both hlines and vlines?
This would be useful to avoid repetition, for example in the following case:
\begin{tblr}{
hlines = {red,1mm,dotted},
vlines = {red,1mm,dotted},
}
...
\end{tblr}
You can also use \DeclareTblrKeys for this:
\documentclass{article}
\usepackage{tabularray}
\usepackage{ninecolors}
\DeclareTblrKeys{table/inner}{
hvlines .meta:n = {
hlines = {#1},
vlines = {#1}
}
}
\begin{document}
\begin{tblr}{
hvlines = {red, dashed}
}
Head & Head & Head & Head \\
Alpha & Beta & Gamma & Delta \\
Epsilon & Zeta & Eta & Theta \\
Iota & Kappa & Lambda & Mu \\
Alpha & Beta & Gamma & Delta \\
Epsilon & Zeta & Eta & Theta \\
Iota & Kappa & Lambda & Mu
\end{tblr}
\end{document}
Nice! But what about providing it by the package?
Sorry, I will keep tabularray minimal and extendable.
I can understand but this would be just a tiny enhancement.
BTW, I would prefer the name hvlines.
Too bad this is closed as not planned!