# [texhax] Aligning two elements in pdfTeX

Ulrike Fischer news3 at nililand.de
Fri Jan 8 09:58:42 CET 2010

Am Thu, 7 Jan 2010 21:19:21 -0600 schrieb
elaine.r.firestone at nasa.gov:

> I'm using pdfTeX and am trying to align some text with a logo for
> the cover of a document so that I'd get something like:

> _________
>|            |
>|            |         The Square Group
>|  logo    |         Sedona, Arizona
>|            |
> --------

> I've tried various combinations of  \line, hboxes, and vboxes to
> no avail. The text always comes out at the bottom right of the
> logo as in:

> _________
>|            |
>|            |
>|  logo    |
>|            |
> --------
>                         The Square Group
>                          Sedona, Arizona
>
>
>  What am I doing wrong? This is the latest code I have now:

An image is like a very huge "H", it sits on the current line. So
you will have to move it down. In LaTeX I would use
\raisebox{-0.5\height}{image}, in plain you could store the image in
a box and then use \lower0.5\ht\test\box\test.

Something like $\vcenter{\hbox{image}}\hbox{text}$ could work too.

--
Ulrike Fischer