I'm trying to use the trim option with tabularray, and I can't understand why it's not working. I read another thread about it which didn't help me. What am I doing wrong?
\usepackage{tabularx}
\usepackage{array}
\usepackage{booktabs}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{document}
\begin{table}[t]
\begin{tblr}{colspec={X[l] *{6}{X[c]}}}
&\multicolumn{2}{c|}{multicol1} &\multicolumn{2}{c|}{multicol2} &\multicolumn{2}{c|}{multicol3}\\
\cmidrule[r]{2-3} \cmidrule[lr]{4-5} \cmidrule[r]{6-7}
\end{tblr}
\caption{Caption}
\end{table}
\end{document}
This is the output I get:
\usepackage{tabularray} \UseTblrLibrary{booktabs}
in your preamble.\documentclass{article}
(just my guess) before and\end{document}
after your code, it compiles fine. I don't get the output you get, but the lines are rendered correctly.tabularray.sty
file in this github respiratory. Put this file in your Overleaf project folder (where your tex file is).