ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: References to floats
Date: Wed, 9 May 2012 17:24:34 +0200	[thread overview]
Message-ID: <20120509172434.553f6152@sole.extra.cea.fr> (raw)

> On Mon, May 7, 2012 at 15:03, Robert Blackstone wrote:
> 
> Thank you, Hans, for your quick reply. Unfortunately it does not help
> me. The result is basically the same as when I write "on
> \at{page}[ref]", except that, instead of "on page 20", I get "at page
> 20", (with the float sitting on page 20).
> Frankly, I'm rather surprised that this wish of mine seems not to have
> come up before.
> 

Indeed, something clean and automatic should be easy -
after all the color of the reference is different (contrastcolor)
when it is to be found on the same page or on a different page.

\at{page}[ref] could be smart enough...

What should the behavior be?
"on \at{page}[ref]" could return "on ",
but this would not be right.
"\at{on page}[ref]" could return "",
but otherwise "on page" would be a (colored) active link.
I might try
"\in{figure}[ref] \at{(page }{)}[ref]"
and hope/expect "(page xx)" to be replaced by ""
when referring to the current page.
Maybe Wolfgang is right in suggesting writing a custom macro.

I haven't looked at the code, though.

Alan
___________________________________________________________________________________
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:[~2012-05-09 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-09 15:24 Alan BRASLAU [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-05-09 14:16 Robert Blackstone
2012-05-07 13:03 Robert Blackstone
2012-05-07 20:25 ` Wolfgang Schuster
2012-05-06 21:18 Robert Blackstone
2012-05-07  7:41 ` Hans Hagen

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=20120509172434.553f6152@sole.extra.cea.fr \
    --to=alan.braslau@cea.fr \
    --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).