Anonymous 2398
I have this table

![image.png](/image?hash=759c2ab002f56fe310c5a2812870726f62e50811767f31fa8dc6ce6a62d6877d)

Now I want like this

My code


\documentclass[12pt,a4paper]{article}
\usepackage{fouriernc}
\usepackage{tabularray}
\usepackage[paperwidth=19cm, paperheight=26.5cm, left=1.7cm,right=1.7cm,top=1.5cm,bottom=1.7cm]{geometry}
\begin{document}
\thispagestyle{empty}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={@{}Q[c]Q[c]@{}},vlines,hlines}
The left first line & The right first line\\   The left second  line &  The right second  line  The right second  line\\
& Year 2022 -- 2023\\
\end{tblr}
\end{table}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={@{}Q[c]Q[c]@{}}}
The left first line & The right first line\\   The left second  line &  The right second  line  The right second  line\\
& Year 2022 -- 2023\\
\end{tblr}
\end{table}
\end{document}


I use colspec={@{}Q[c]Q[c]@{}} to set left space and right space. How can I set above and bottom space like that?
samcarter
You can use abovesep and belowsep to set the space above or below a row. The following example shows how to do this for the first and last row of your table:


\documentclass[12pt,a4paper]{article}
\usepackage{fouriernc}
\usepackage{tabularray}
\usepackage[paperwidth=19cm, paperheight=26.5cm, left=1.7cm,right=1.7cm,top=1.5cm,bottom=1.7cm]{geometry}
\begin{document}
\thispagestyle{empty}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={@{}Q[c]Q[c]@{}},vlines,hlines}
The left first line & The right first line\\   The left second  line &  The right second  line  The right second  line\\
& Year 2022 -- 2023\\
\end{tblr}
\end{table}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={@{}Q[c]Q[c]@{}},
row{1}={abovesep=1cm},
row{Z}={belowsep=1cm},
}
The left first line & The right first line\\   The left second  line &  The right second  line  The right second  line\\
& Year 2022 -- 2023\\
\end{tblr}
\end{table}
\end{document}



Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.