ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Robert Blackstone <blackstone.robert@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Conditional cross references to floats
Date: Tue, 18 Jan 2011 11:15:53 +0100	[thread overview]
Message-ID: <AANLkTin2xdQTfBwP7XT1v2+9LXN4ry07M7zV0oORN+PR@mail.gmail.com> (raw)

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2011-01-18 10:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-18 10:15 Robert Blackstone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-01-16 19:58 Robert Blackstone
2011-01-17 15:22 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTin2xdQTfBwP7XT1v2+9LXN4ry07M7zV0oORN+PR@mail.gmail.com \
    --to=blackstone.robert@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).