tabstackengine
shares some of the features that are available through tabular
. One additional thing it does is provide \TABwd{}
to provide column width of the most recently created TABstack. Likewise, \TABht{}
and \TABdp{}
can be used for row heights/depths.
As seen in the MWE, these quantities are available inside the TABstack and afterwards, as well.
These quantities provide the height & width of the row/column not accounting for border. In order to account for the additional border of the stack, there is \tabular@gap
separation between inner columns (but not around the outer edges), and (in the case of a short stack such as this, \Sstackgap
space between rows.
\documentclass{scrreprt}
\usepackage{tabstackengine}
\begin{document}
\centering
\begin{tabular}[t]{rl}
Row Height: & "\textbackslash{}the \textbackslash{}getRowHeight" \\
Columdn Width: & "\textbackslash{}the \textbackslash{}getColWidth"
\end{tabular}
\the\tabcolsep
\setstacktabulargap{12pt}% COMPARABLE TO 2\tabcolsep
\tabularShortstack{rl}{
Row Height: & "\textbackslash{}the \textbackslash{}getRowHeight" \\
Columdn Width: & "\textbackslash{}the \textbackslash{}getColWidth"\\
\rule{\TABwd{1}}{\dimexpr\TABht{2}+\TABdp{1}}&
\rule{\TABwd{2}}{\dimexpr\TABht{2}+\TABdp{1}}
}
\bigskip
Column widths:
\TABwd{1}, \TABwd{2}
\medskip
Row heights/depths:
\TABht{1}/\TABdp{1}, \TABht{2}/\TABdp{2}
\end{document}
\pdfsavepos
or a wrapper such as\tikzmark
) and then pick them up on the next run of latex.