I can get the height of the hbox but I am stuck trying to double its height. Here my latex statements:

\settoheight{\txtlineheight}{\hbox{Hello World!}}

Any help would be appreciated


Are you looking for \setlength?

\settoheight{\txtlineheight}{Hello World!}

Also, \settoheight already puts its argument into a box, thus the \hbox is superfluous.

If calculations are needed, package calc can be loaded. But this is not necessary for doubling, because 2 can be used as factor for the length.

Another way for calculations is available with e-TeX's \dimexpr.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.