<br><div class="gmail_quote">On Thu, Mar 31, 2011 at 8:40 AM, Ulrike Fischer <span dir="ltr"><<a href="mailto:news3@nililand.de">news3@nililand.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Am Thu, 31 Mar 2011 08:18:47 -0400 schrieb Peter Davis:<br>
<div class="im"><br></div><div class="im">
>>> \settoboxtotalheight{\imgheight}{\egg}<br>
>>> \raisebox{\imgheight}{\usebox{\egg}}<br>
<br>
>> It is actually not necessary to mesure the graphic before the<br>
>> \raisebox command. You can simply use<br>
<br>
>> \raisebox{\height}{\includegraphics{....}}<br>
<br>
> Are you saying I should do this when I store the savebox, or when I use it?<br>
<br>
</div>You can use it like I wrote it. \raisebox knows the dimensions of<br>
its argument and stores them in \height, \depth, \width.<br>
<br><br></blockquote><div><br></div><div>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. </div><div><br></div><div>Thank you.</div><div><br>
</div><div>Here's the current test document:</div><div><br></div><div>\documentclass[11pt]{article}</div><div>\usepackage{graphicx}</div><div>\usepackage{textpos}</div><div>\usepackage{settobox}</div><div><br></div><div>
\setlength{\TPHorizModule}{1bp}</div><div>\setlength{\TPVertModule}{\TPHorizModule}</div><div><br></div><div>\title{Image Placement Text}</div><div>\author{Peter Davis}</div><div><br></div><div>\newlength{\imgheight}</div>
<div><br></div><div>\begin{document}</div><div><br></div><div>\newsavebox{\egg}</div><div>\sbox{\egg}{\raisebox{\height}{\includegraphics[scale=2.0]{egg.png}}}</div><div><br></div><div>\newsavebox{\sheep}</div><div>\sbox{\sheep}{\raisebox{\height}{\includegraphics[scale=3.0]{sheep.png}}}</div>
<div><br></div><div>\begin{textblock}{144}(72,396)</div><div>\usebox{\egg}</div><div>\end{textblock}</div><div><br></div><div>\begin{textblock}{144}(288,396)</div><div>\usebox{\sheep}</div><div>\end{textblock}</div><div><br>
</div><div>\end{document}</div><div> </div></div><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;border-collapse:collapse">----<div>The Tech Curmudgeon</div><div><a href="http://www.techcurmudgeon.com/" style="color:rgb(17, 65, 112)" target="_blank">http://www.techcurmudgeon.com</a></div>
<div style="font-size:10.8333px"><br></div></span><br>