Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The \includegraphics command from the graphicx package provides options height and totalheight for resizing embedded graphics.

As long as the graphics file doesn't possess a natural depth, it doesn't make a difference whether the one or the other option is used.

Therefore I wonder why totalheight is provided at all. Are there graphics file formats that allow for natural depth? I have never met one so far, but I am willing to accept the contrary.

share|improve this question
add comment

1 Answer 1

up vote 14 down vote accepted

The keys are interpreted in order so after

angle=180, height=3in

it first flips the image upside down so it's all in the depth, then tries to scale the 0pt height to 3in....

The first release didn't have a totalheight key, I added one pretty quickly:-)

You are probably correct that the external images in general don't naturally have a depth but the package doesn't assume that: if there was an image format with a natural baseline specification as well as total size, a graphicx driver could import that into latex with natural height and depth.

share|improve this answer
    
Thank you! I completely disregarded the case of rotation prior to resizing. Now totalheight makes sense, indeed. –  AlexG May 15 at 9:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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