ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to place a page reference multiple times?
       [not found] <194458818.1733717.1677726881016.ref@mail.yahoo.com>
@ 2023-03-02  3:14 ` Joel via ntg-context
  0 siblings, 0 replies; only message in thread
From: Joel via ntg-context @ 2023-03-02  3:14 UTC (permalink / raw)
  To: Mailing List for ConTeXt Users; +Cc: Joel


[-- Attachment #1.1: Type: text/plain, Size: 1054 bytes --]

I need to report every chapter that a particular macro appeared. I would do this by placing `\pagereference[sample]` inside the macro definition, so whenever it is called, it marks the reference info. But I can't seem to get references to work with multiple reference locations marked, example:
\starttext

    You can find it at \at{page}[sample] in \at{chapter}[sample].

\chapter{Fish}

\pagereference[sample]

\input knuth

\input knuth

\pagebreak
\chapter{Whales}

\input knuth

\pagereference[sample]

\stoptext
(you can see in this example, it only finds `\pagereference[sample]` on page 1 and ignores the second appearance.



Ideally, I need to be able to output something like, "See examples in Chapter 3, 8, 19" (because those chapters contain a particular macro that I marked with \pagereference. Or, if even possible, see chapters 3 (p. 22), 8 (p. 40), and 20 (though the first example is fine.
Is there a way to place a page reference multiple times, so multiple pages or chapter details will appear?
--Joel

[-- Attachment #1.2: Type: text/html, Size: 1824 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-02  3:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <194458818.1733717.1677726881016.ref@mail.yahoo.com>
2023-03-02  3:14 ` How to place a page reference multiple times? Joel via ntg-context

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).