[texhax] Placing unknown images arbitrarily by lower left corner

Ulrike Fischer news3 at nililand.de
Thu Mar 31 15:49:36 CEST 2011


Am Thu, 31 Mar 2011 09:25:16 -0400 schrieb Peter Davis:

> Hmmm.  I tried this with XeLaTeX, but the images are still coming out at the
> bottom of the page, rather than on the 396bp line.
 

> \newsavebox{\egg}
> \sbox{\egg}{\raisebox{\height}{\includegraphics[scale=2.0]{egg.png}}}


Sorry I mislead you in my first answer. You must naturally use
-\height in the argument of \raisebox to move the reference point in
the left upper corner. With \height you get a box twice the size of
the graphic, the graphic in the upper part and the reference point
at the bottom.

-- 
Ulrike Fischer 



More information about the texhax mailing list