Heh, this goes back to 1985, I suspect. :-)<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'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). 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. 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. If only one of rwi/rhi is nonzero, the picture is<br>scaled, preserving aspect ratio. If both rwi/rhi are zero, I'm not
<br>sure what happens.<br><br>I'll try to find documentation for these. I'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>
<<a href="mailto:karl@freefriends.org">karl@freefriends.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I committed release
2.6p4 of dviljk to the trunk of TL's SVN<br><br>Great!<br><br> PS: dviljk has a psfile special with the following syntax:<br> psfile=file llx=x0 lly=y0 urx=x1 ury=y1 rwi=s<br><br>I assume it's the same as in dvips(k). Although I've used that special
<br>and even messed with those parameters, I don'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>% 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' node, it doesn'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>