[texhax] current position in output

David Kastrup dak at gnu.org
Sun Dec 28 11:39:44 CET 2008


Uwe Lück <uwe.lueck at web.de> writes:

> At 16:53 27.12.08, Cihan . wrote:
>>
>> Is there any command or way to get the current output position (xy
>> coordinate) of things. I need a comand that can capture the position
>> like
>>
>>\xyposition{words or things in there}
>>\currentpagenumber
>
> Y+. One might think of a /geometrical/ unit like: "how many pt below the
> top of the page is ...'' ... very hard ... my advice: forget it!
> [or ask Donald Arseneau and/or David Kastrup]

PDFTeX has \pdfsavepos, \pdflastxpos, \pdflastypos.  That's actually
tolerably easy to use and has for some years also worked in DVI mode.

> Z. As for coordinates in terms of pt, TeX will be little helpful,
> but perhaps PDFTeX can help you!?

S.a.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


More information about the texhax mailing list