Skip to content

Instantly share code, notes, and snippets.

@izabera
Created July 14, 2014 19:49
Show Gist options
  • Save izabera/1633cacc8368f23a1161 to your computer and use it in GitHub Desktop.
Save izabera/1633cacc8368f23a1161 to your computer and use it in GitHub Desktop.
LaTeX: tabular environments act as groups
\documentclass{article}
\begin{document}
\newlength{\myl}
Q
\settoheight{\myl}{Q}
height=\the\myl
\settodepth{\myl}{Q}
depth=\the\myl
\settowidth{\myl}{Q}
width=\the\myl
\begin{table}[h]
\begin{tabular}{ll}
\settoheight{\myl}{Q} height &\the\myl \\
\settodepth{\myl}{Q} depth &\the\myl \\
\settowidth{\myl}{Q} width &\the\myl \\
\end{tabular}
\end{table}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment