A top-aligned tabular
aligns the baseline of its first row with the base line of the surrounding text. However, when using booktabs
' \toprule
, the rule is considered the first row and thus aligned with this baseline.
\documentclass{article}
\usepackage{booktabs}
\begin{document}
this is some text
\begin{tabular}[t]{l l}
o & p \\
q & r \\
\end{tabular}
this is some text
this is some text
\begin{tabular}[t]{l l}\toprule
o & p \\
q & r \\\bottomrule
\end{tabular}
this is some text
\end{document}
How can I align the first "real" row of the tabular
with a \toprule
with the surrounding line?