On Mon, 17 Jan 2011 16:22:03 +0100 Wolfgang Schuster wrote:
Am 16.01.2011 um 20:58 schrieb Robert Blackstone:
Hi all,
I wonder if it is already possible to perform the following task:
.... can one make a sort of conditional reference that only mentions the page if it is not the present page?
ConTeXt has a \atpage and a \somewhere command but none of them can be used to omit the reference when the float and the reference are on the same page but it?s not impossible.
As you can see from this example:
..... Wolfgang
Thank you, Wolfgang. The code you gave, while not a fool-proof tool, works quite well. I expect I will be able to use it when figures will not be pushed away too far from their intended place in the text. I have changed "above" and "below" to "the previous page" and "the next page" respectively but that is a detail. It will still require careful proofreading anyway. Kind regards, Robert Blackstone