Dear list, Presently I am working on a book that contains many musical examples, some of them rather large (even page-filling). It is difficult to predict where they will finally be placed, at least when I do not want to spoil the layout too much by forcing every example to be placed at the point where it occurs in the .tex-file. So when dicussing an example I always refer to it with \in{ex.}{ref} and \at{page}[ref]. Sometimes however the example is placed at the same page as the text discussing it. Is there any trick to adapt the reference to this situation, so that, instead of saying, for instance, "ex. 3.4 on page 12", it just says "ex. 3.4", or "ex. 3.4 below" or even "ex. 3.4 on this page"? (One imagines that in the last stage of typesetting the file ConTeXt "knows" that the reference and the referenced float will be on the same page, but I have no clue how I could use this knowledge.) Thanks in advance for any help. Robert Blackstone
On 6-5-2012 23:18, Robert Blackstone wrote:
Dear list,
Presently I am working on a book that contains many musical examples, some of them rather large (even page-filling). It is difficult to predict where they will finally be placed, at least when I do not want to spoil the layout too much by forcing every example to be placed at the point where it occurs in the .tex-file.
So when dicussing an example I always refer to it with \in{ex.}{ref} and \at{page}[ref].
Sometimes however the example is placed at the same page as the text discussing it. Is there any trick to adapt the reference to this situation, so that, instead of saying, for instance, "ex. 3.4 on page 12", it just says "ex. 3.4", or "ex. 3.4 below" or even "ex. 3.4 on this page"?
(One imagines that in the last stage of typesetting the file ConTeXt "knows" that the reference and the referenced float will be on the same page, but I have no clue how I could use this knowledge.) Thanks in advance for any help.
you can try \atpage[ref] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Robert Blackstone