I have some Q-column but using a \TblrNote
seems to break the auto-width of those columns…
How can I re-adjust the width so columns 3-8 are of equal width?
\documentclass{scrartcl}
\usepackage{tabularray,xcolor,hyperref}
\UseTblrLibrary{siunitx}
\NewTblrTheme{mytheme}{
\DefTblrTemplate{contfoot-text}{default}{Continued on next page ...}
\DefTblrTemplate{conthead-text}{default}{(Continued)}
\SetTblrStyle{head}{%
fg=black}
\SetTblrInner{%
row{odd} = {bg=rwthBlueLight},
row{1}={bg=blue,fg=white,font=\bfseries},
width = \linewidth,
hline{1,Z} = {2pt,fg=blue}, % toprule and bottomrule
hline{2} = {1pt,fg=blue}, % midrule
}
}
\hypersetup{%
colorlinks = true,
linkcolor = blue
}
\begin{document}
\begin{tblr}[%
theme=mytheme,
long,
note{a}={Figures in EUR},
note{b}={Not all figures in EUR},
]{%
colspec = {X[2,m]X[6,m]*{2}{Q[c]}Q[c]*{3}{Q[c]}},
cell{1}{1-8} = {cmd={\hypersetup{linkcolor=white}}},
rowhead = 1
}
{Project} %
& Species %
& {{{Quantity}}}
& {{{Average\\ number of\\ weeks kept}}}
& {{{Housing costs\\ per animal\\ per week}}}\TblrNote{a}
& {{{Purchasing\\ costs \\per animal}}}\TblrNote{a}
& {{{Requested\\funds}}}\TblrNote{a}
& {{{Existing\\funds}}}\TblrNote{a}\\
Hello & World & 123 & 45.6 & 789 & 10992.0 & 11223.5 & 32012.2\\
\end{tblr}
\end{document}
Best Answer
siunitx
columns.\small\bfseries
font sizeEdit:
TblrNote
are in case of usehyperref
package are defined by it. That tags inTblrNote
will be visible, it is need to locally changedhyperref
setup so, that color of tags will be the same as color of text in rows.siunitx
packages, the column headers should be in parenthesis. That hyper links will work\TblrNote
had to be outside of them:Addendum: With
tabularray
package version newer than 2022A the table code can be a bit simpler:Compilation result is the same as before.