Is there an option within tabularx to add a vertical whitespace both above and below the table?
\documentclass{article}
\usepackage{tabularx}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\noindent\begin{tabularx}{\textwidth} {XXX}
\hline
item 11 & item 12 & item 13 \
\hline
item 21 & item 22 & item 23 \
\hline
\end{tabularx}
\lipsum[1]
\end{document}
I tried to add the verbatimbox package which has a service routine \addvbuffer, but it does not work:
\documentclass{article}
\usepackage{tabularx}
\usepackage{lipsum}
\usepackage{verbatimbox}
\begin{document}
\lipsum[1]
\addvbuffer[12pt 8pt]{
\noindent\begin{tabularx}{\textwidth} {XXX}
\hline
item 11 & item 12 & item 13 \
\hline
item 21 & item 22 & item 23 \
\hline
\end{tabularx}
}
\lipsum[1]
\end{document}
EDITED after the @David Carlisle answer:
@David Carlisle, please see here below the errors I get with that solution (might it be something related to Overleaf, that I am using?)
\documentclass{article}
\usepackage{tabularx}
\usepackage{lipsum}
\usepackage{verbatimbox}
\begin{document}
\lipsum[1]
\begin{center}
\addvbuffer[12pt 8pt]{%%
\noindent\begin{tabularx}{\textwidth} {XXX}
\hline
item 11 & item 12 & item 13 \
\hline
item 21 & item 22 & item 23 \
\hline
\end{tabularx}%%
}
\end{center}
\lipsum[1]
\end{document}
I get the following errors:









\vspace, since I have several tables - And I would like to have the least number of elements to change, in case I need to adjust some spaces in the document. – Ommo Mar 15 '24 at 10:25tableenvironment will add necessary spacing for you; a construct is\begin{table}[tbh]<tabular env.>\end{table}. The[tbh]are optional parameters for a table placement:[t]op,[b]ottom, or[h]ere. It's also mandatory if you want to add a\caption{}. – Celdor Mar 15 '24 at 10:36\addvbufferis not defined, which is why[12pt 8pt]is typeset as text to the left of the table in your image. – David Carlisle Mar 15 '24 at 10:37\addvbufferas it's not doing anything. – David Carlisle Mar 15 '24 at 14:01