Consider the following code:
\documentclass[a4paper]{letter}
\usepackage{calc}
\usepackage{printlen}
\newsavebox{\foobox}
\newlength{\fooboxheight}
\savebox{\foobox}{
\parbox[t]{\textwidth}{Line 1\\Line 2\\Line 3\\Line 4}
}
\settoheight{\fooboxheight}{\usebox{\foobox}}
\begin{document}
\usebox{\foobox}
Address box height: \printlength{\fooboxheight} \uselengthunit{mm} \printlength{\fooboxheight}
\end{document}
\fooboxheight is 7pt / 2mm, much smaller than the height of the \parbox! Why is this? What should I do to get the real height of the \parbox?
Interestingly, if the \parbox is surrounded by a \frame, everything works.
\settototalheight. – lockstep Feb 24 '11 at 15:01pgfmath. – Martin Scharrer Feb 24 '11 at 15:08