[ pdftex-Patches-438 ] \pdfsavepos in DVI mode
Patches item #438, was opened at 2005-10-16 23:52
You can respond by visiting:
http://sarovar.org/tracker/?func=detail&atid=495&aid=438&group_id=106
Category: Positioning
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Heiko Oberdiek (oberdiek)
Assigned to: Nobody (None)
Summary: \pdfsavepos in DVI mode
Initial Comment:
\pdfsavepos in DVI mode
Hello,
using \pdfsavepos in a package of mine (tabularht)
I was wondering, why \pdfsavepos is not allowed to
work in DVI mode. \pdfsavepos in PDF mode is based
on cur_h and cur_v, both coming from the DVI frontend.
The only difference I found is that the PDF format
and pdfTeX's PDF mode know about page dimensions.
Thus the directions of the axes are the same for
the PDF format and the values of \pdfsavepos
(\pdflastxpos, \pdflastypos).
Origin: lower left corner
horizontal axis: values increasing from left to right
vertical axis: values increasing from bottom to top
unit: sp
The DVI case doesn't know about page dimensions, thus
I suggest using cur_h=0 and cur_v=0 as origin. It is
the left upper corner of the box that is being shipped
out.
Origin: left upper corner of the box
horizontal axis: values increasing from left to right
vertical axis: values increasing from bottom to top
unit: sp
Thus the absolute values differ in both modes and I
don't see that this can be avoided. However, if the
application uses a reference point then the relative
values are exactly the same.
The attachted patch enables and implements \pdfsavepos
for the DVI mode. It also contains the patch for
bug 437 (Two \immediate cancel themselves).
Yours sincerely
Heiko
noreply@sarovar.org wrote:
using \pdfsavepos in a package of mine (tabularht) I was wondering, why \pdfsavepos is not allowed to
i dunno, probably because positional info (in principle0 is part of dvi already ... in dvi mode one can use specials and the dvipos program (in the past i used a perl script for this but a few years ago choff added the dvipos program to the dvipdfmx suite) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
noreply@sarovar.org