![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
13 Apr
2020
13 Apr
'20
2:20 p.m.
On 4/13/20 10:13 PM, Kevin Kenan wrote:
I have a need to tag elements in a text in a way that they are sequentially numbered and can have references to refer to them. Something like:
Here is some \tag[tagref]{\bf text} that is tagged. . . . Refer to tag \tagnumber[tagref] on page \at[tagref].
What is the best way to do this in ConTeXt? I’ve got a counter for tag number, but I’m not sure how to use \reference so that it uses my tag number. For instance:
\definecounter[myTagCounter] . . . \reference[tagref]{\rawcountervalue[myTagCounter]}
Doesn’t work. But perhaps I’m going about this incorrectly?
Thanks in advance!
Are you looking for this: https://wiki.contextgarden.net/Command/definelabel ? HTH Thomas