[texhax] target page number of label

attila marxer attila.marxer at web.de
Mon Dec 19 18:05:37 CET 2005


hi everybody :)

let's say, i've got a figure 3.2 on page 7 labelled
"fig:somefigure". what i would like to have, is a
macro \someref{fig:somefigure} which results in
(a) "figure 3.2" if the figure appears on the same
page as the text and
(b) "figure 3.2, p.7" otherwise.

however, this requires to check the current page
number against the page of the label (the page
where the float is finally placed)

i'm not into TeX at all, even though i tried to look
at the pageref source. so anybody who can tell me how
i get the plain page number of a label?

thanks!

Attila

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://tug.org/pipermail/texhax/attachments/20051219/0577cd7f/attachment.bin


More information about the texhax mailing list