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: Conditional cross references to floats
Date: Sun, 16 Jan 2011 20:58:27 +0100	[thread overview]
Message-ID: <AANLkTi=CVCPAPMH+Uf_Asx-8Wz9_ppfaiNx0rT-ZetfP@mail.gmail.com> (raw)

Hi all,

I wonder if it is already possible to perform the following task:

I have to typeset documents that contain many pictures of various
sizes. Due to lack of space, some may pictures may not appear on the
page on which they are discussed. And also in the course of revising
the document, adding text may push them to another page.  Therefore I
always refer to every picture with \in and \at. On the other hand,
changing or deleting text may unexpectedly land them on the correct
page.

So sometimes it may happen that the reader, for instance on page 23,
will be referred to a figure on page 23, which looks rather silly.

Is there a trick to let ConTeXt automatically omit the reference when
the picture happens to appear on the correct page (or change the
reference to « on this page »). In other words, can one make a sort of
conditional reference that only mentions the page if it is not the
present page?

Would this perhaps be something that can be coded in Lua?

(I saw a similar question on this list in june 2010, and the
provisional solution that was suggested, but apparently did not work.)

Incidentally, the address for the archive seems not to be correct (and
untrusted).  (Message: The requested URL
https://foundry.supelec.fr/projects/contextrev/ was not found on this
server.) If it is no longer in use wouldn't  it perhaps be better not
to mention it anymore at the bottom of each ntg-context Digest?

Thanks in advance.

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-16 19:58 UTC|newest]

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

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='AANLkTi=CVCPAPMH+Uf_Asx-8Wz9_ppfaiNx0rT-ZetfP@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).