Heh, this goes back to 1985, I suspect.&nbsp; :-)<br><br>llx/lly/urx/ury are the bounding box of the included image just as it<br>is in the BoundingBox DSC comment, so it&#39;s PostScript points<br>(bp or big points in TeX nomenclature).
<br><br>These *can* be floating point values, I believe, in any dvips from<br>the past so many years, but originally they were restricted to<br>integer values.<br><br>rwi and rhi are the desired width and height of the resulting figure,
<br>in *tenths* of big points (so 720 of these to the inch).&nbsp; The reason I<br>used the rather arbitrary factor of ten scaling is to provide some<br>additional precision over plain old big points, which are pretty large<br>

and thus if we restrict ourselves to integral values (and I think<br>the values calculated by epsf.tex/epsf.sty are indeed so restricted)<br>we end up with significant scaling/offset issues.&nbsp; If I was doing it<br>today, I would probably use a larger factor than 10 since even
<br>1/720th of an inch is visible.<br><br>If both rwi/rhi are nonzero, the picture is scaled, possibly losing<br>aspect ratio.&nbsp; If only one of rwi/rhi is nonzero, the picture is<br>scaled, preserving aspect ratio.&nbsp; If both rwi/rhi are zero, I&#39;m not
<br>sure what happens.<br><br>I&#39;ll try to find documentation for these.&nbsp; I&#39;m kind of surprised they<br>are not documented.<br><br><div><span class="gmail_quote">On 7/5/07, <b class="gmail_sendername">Karl Berry</b>
 &lt;<a href="mailto:karl@freefriends.org">karl@freefriends.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp;&nbsp;&nbsp;&nbsp;I committed release 
2.6p4 of dviljk to the trunk of TL&#39;s SVN<br><br>Great!<br><br>&nbsp;&nbsp;&nbsp;&nbsp;PS: dviljk has a psfile special with the following syntax:<br>&nbsp;&nbsp;&nbsp;&nbsp; psfile=file llx=x0 lly=y0 urx=x1 ury=y1 rwi=s<br><br>I assume it&#39;s the same as in dvips(k).&nbsp;&nbsp;Although I&#39;ve used that special
<br>and even messed with those parameters, I don&#39;t know of any comprehensive<br>description (I just changed the numbers until my picture came out in the<br>right place).<br><br>In dvipsk/special.lpro, I find the following, FWIW:
<br><br>%&nbsp;&nbsp; Here we handle bounding box calculations, if necessary.<br>%<br>/@rwi { 10 div /rwi X /rwiSeen true N } B % rwi will be real width after scaling<br>/@rhi { 10 div /rhi X /rhiSeen true N } B % rhi will be real height after scaling
<br>/@llx { /llx X } B<br>/@lly { /lly X } B<br>/@urx { /urx X } B<br>/@ury { /ury X } B<br><br>Although dvips.texi has a `psfile special&#39; node, it doesn&#39;t describe any<br>of those keys :(.<br><br>Tom ... ?<br><br>
Thanks,<br>k<br></blockquote></div><br><br clear="all"><br>-- <br>Check out golly at <a href="http://golly.sf.net/">http://golly.sf.net/</a>