\documentclass{article} \usepackage{tabularray} \begin{document} Test 1 \begin{tblr}{hlines, vlines, colspec={c}} Test 2 \\ Test 3 \\ \end{tblr} \end{document} How to align Test 1 and Test 2 (same baseline)?
From tabularray version 2022A (2022-03-01), \firsthline and \lasthline commands are deprecated in favor of baseline=T and baseline=B specifications. You can write baseline option as either an inner specification or an outer specification. And when baseline=T/B is an outer specification, you can omit the key name and write the value only:
\documentclass{article} \usepackage{tabularray} \usepackage{array} \begin{document} \section{Tabularray} Test 1 \begin{tblr}[T]{vlines, colspec={c}} \hline Test 2 \\ \hline Test 3 \\ \hline \end{tblr} Test 1 \begin{tblr}[B]{vlines, colspec={c}} \hline Test 2 \\ \hline Test 3 \\ \hline \end{tblr} \section{Tabular} Test 1 \begin{tabular}[t]{|c|} \firsthline Test 2 \\ \hline Test 3 \\ \hline \end{tabular} Test 1 \begin{tabular}[b]{|c|} \hline Test 2 \\ \hline Test 3 \\ \lasthline \end{tabular} \end{document} But you can still roll back to version 2021Q with \usepackage{tabularray}[=v2021], so that you can use \firsthline and \lasthline commands in tblr environment. The usage is the same as in tabular environment:
\documentclass{article} \usepackage{tabularray}[=v2021] \usepackage{array} \begin{document} \section{Tabularray} Test 1 \begin{tblr}[t]{vlines, colspec={c}} \firsthline Test 2 \\ \hline Test 3 \\ \hline \end{tblr} Test 1 \begin{tblr}[b]{vlines, colspec={c}} \hline Test 2 \\ \hline Test 3 \\ \lasthline \end{tblr} \section{Tabular} Test 1 \begin{tabular}[t]{|c|} \firsthline Test 2 \\ \hline Test 3 \\ \hline \end{tabular} Test 1 \begin{tabular}[b]{|c|} \hline Test 2 \\ \hline Test 3 \\ \lasthline \end{tabular} \end{document} \firsthline and \lasthline were deprecated in favor of baseline=T and baseline=B May I also suggest trying the NiceTabular environment from the nicematrix package. It lets you specify which line in the table you want to use as baseline.
\documentclass{article} \usepackage{nicematrix} \begin{document} Test 1 \begin{NiceTabular}{c}[baseline=1,hlines,vlines] Test 2 \\ Test 3 \end{NiceTabular} \end{document} tabularray should add it too some day . One option could be to include Test 1 in the table, but without borders around it. You could achieve that using cline :
\documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{Q[c,m]|Q[c,m]|} \cline{2-2} Test 1 & Test 2 \\ \cline{2-2} & Test 3 \\ \cline{2-2} \end{tblr} \end{document} It is not very easy for me to understand this package but you can create every vline and hline yourself with considering the position of the elements of the array. I have thought to this, in function only for your image:
\documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{ hline{1,3} = {2-3}{solid}, hline{2,3} = {2-3}{solid}, vline{2,2} = {1-3}{solid}, vline{3,3} = {1-3}{solid}, vline{2,3} = {2-3}{solid}, } Test 1 & Test 1 \\ & Test 2 \end{tblr} \end{document} Addendum: On suggestion of the author of the package @L.J.R. here an improved with the same output (see the comment below):
\documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{ hlines = {2}{solid}, vline{2-3} = {solid}, } Test 1 & Test 1 \\ & Test 2 \end{tblr} \end{document} hlines = {2}{solid}, vline{2-3} = {solid}.
\firsthlineand\lasthlinewithtabularray.