[texhax] Retrieve graphics measurments

Heiko Oberdiek heiko.oberdiek at googlemail.com
Tue Jul 20 23:18:18 CEST 2010


On Tue, Jul 20, 2010 at 11:07:01PM +0200, Lars Madsen wrote:

> \ht\mybox = height above baseline
> \dp\mybox = depth below baseline
> \wd\mybox = width
> 
> very handy to know
> 
> \usepackage{calc}
> 
> \setlength\myboxheight{\ht\mybox+\dp\mybox}

or

\usepackage{calc}[2005/08/06]
\setlength{\myboxheight}{\totalheightof{\usebox{\mybox}}}

or

\usepackage{settobox}

\settoboxtotalheight{\myboxheight}{\mybox}

Yours sincerely
  Heiko Oberdiek


More information about the texhax mailing list