I am normally typesetting small tables using the basic tabular
environment. This has a optional parameter controlling the vertical position of the tabular with respect to the baseline of the surrounding text.
Now for some reason I needed switch to tabularx
. However, here the optional position parameter is missing, so that now the center of the table is aligned with the baseline:
\documentclass{standalone}
\usepackage{tabularx}
\begin{document}
A simple text
\begin{tabular}[b]{lr}
A & B \\ C & D \\
\end{tabular}
and a little more
\begin{tabularx}{.1\linewidth}{lr}
A & B \\ C & D \\
\end{tabularx}
and the rest.
\end{document}
Any idea how I can achieve an alignment with the bottom of the table?
X
column in yourtabularx
so that can not work as atabularx
, it essentially falls back to beingtabular*
(but less efficient) everytabularx
has to have at least oneX
column. – David Carlisle Dec 11 '16 at 14:42