[texhax] Placing unknown images arbitrarily by lower left corner
Peter Davis
pfd at pfdstudio.com
Thu Mar 31 14:18:47 CEST 2011
On Thu, Mar 31, 2011 at 3:26 AM, Ulrike Fischer <news3 at nililand.de> wrote:
> Am Wed, 30 Mar 2011 17:38:29 -0400 schrieb Peter Davis:
>
>
> >
> > Thanks, all! Probably I'm still missing something or not understanding
> how
> > this should work. I tried to place two images on a page, so that both
> are
> > bottom aligned on a line halfway up the page (396bp). I got LaTeX
> errors:
> >
> > ! LaTeX Error: Cannot determine size of graphic in egg.png (no
> BoundingBox).
>
> You should use pdflatex if you want to use png graphicx.
>
Actually, I'm using XeLaTeX, and I don't really care about png. I just used
those because I had a couple of image files in the directory I was using.
I'm more interested in placing PDF images.
>
> > \settoboxtotalheight{\imgheight}{\egg}
> > \raisebox{\imgheight}{\usebox{\egg}}
>
> It is actually not necessary to mesure the graphic before the
> \raisebox command. You can simply use
>
> \raisebox{\height}{\includegraphics{....}}
>
Are you saying I should do this when I store the savebox, or when I use it?
Thanks,
-pd
--
----
The Tech Curmudgeon
http://www.techcurmudgeon.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110331/1fe4e581/attachment.html>
More information about the texhax
mailing list