From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106935 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Kevin Kenan Newsgroups: gmane.comp.tex.context Subject: Re: Use a counter in a reference? Date: Sun, 19 Apr 2020 05:39:00 -0700 Message-ID: <5C29D2B7-65CE-4CE1-85A3-A74D407764A0@kevinkenan.com> References: <6EB3A951-CA7A-4BED-8ECC-119E640EF440@kevinkenan.com> <272b0156-cd72-896f-1a11-a6db8b2f4c5b@uni-bonn.de> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="===============2806489441208427337==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="39671"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 19 14:39:26 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQ9EL-000ADa-1r for gctc-ntg-context-518@m.gmane-mx.org; Sun, 19 Apr 2020 14:39:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5A6FB183349; Sun, 19 Apr 2020 14:39:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id REPAj_dHuXz0; Sun, 19 Apr 2020 14:39:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 86A0E18333D; Sun, 19 Apr 2020 14:39:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C0F4218333D for ; Sun, 19 Apr 2020 14:39:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C7ev8YMBFEE7 for ; Sun, 19 Apr 2020 14:39:03 +0200 (CEST) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=209.85.214.172; helo=mail-pl1-f172.google.com; envelope-from=kevin@kevinkenan.com; receiver= Original-Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8EBF0183336 for ; Sun, 19 Apr 2020 14:39:03 +0200 (CEST) Original-Received: by mail-pl1-f172.google.com with SMTP id y22so2881457pll.4 for ; Sun, 19 Apr 2020 05:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kevinkenan-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=Draek9+F7t26gCgGJ2EfY9ZILb0b53wCJ5g6lxKfaPM=; b=kqYV9Vi0vFpmDDNp4t1KyzrZqJnvj3oO8mRf3z0X9kJkB1JzNiUNY6WkwVsZlKDV2G cIxW21hmCOE+mXqtCNuI4t/s8+QhUzq1/qNm9U/ZO+of/OPOtTOdit729o73B81PHNWQ XsvpF1JpFZpk9cQTeqvpeIa4e/UAROqAJyHgHZFz+b0qAXQ71hLSCNvNVxdpZnc/+TQz tGGAUW2r1MOnRhDaKOyCmQ++8erUUx4GCiulsRbWcSIFTj8fRB9/su8hd32gepKp3Vyh nlWTdEyM07D+b9+3lDh0QBh66eQrokcnMENiI+FsvblB++HrNXl/3J+++WjAn/h+jjaS Qvyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=Draek9+F7t26gCgGJ2EfY9ZILb0b53wCJ5g6lxKfaPM=; b=m8BpIvus81nJaCTPV6ThEeBGZsOf5BlfIA8iuU2tqvwfcr11YxIP3g5oWtnRpQ1R/q dxYIBciSwOAhXf7MYHfmaUfgUqSjaJVRT85aPCnn42UC6AHx2XjHPPaBliKU42wtZcqF P6mTb0wNy4pdI9l/EGHajcX3qwaZsscuPf6xMiUt/V9/iRIcsPe7sN6emZkY8GQPzyOr HIxpBfJB4Yn0/UzWHo+ARkFV/7Es8FSn0zCOyRzXuFvo9S10okFRD1s4pbvxoPRpVV7p v9QQJcNZKgAWckOyQHNSk6Ya7KceOnVCy74xhaXxRWeRbZDZM0liY1LKCvydMIfd+H84 BgYw== X-Gm-Message-State: AGi0PuYhH9hq5aMYjGSN89faJQ6NhDh0xHanpX35H5KSimokIk+O4yzw 7xbluNWgxnyMFWAyo4X8/ao2toBkQ7s= X-Google-Smtp-Source: APiQypLFR+VcSLvcfEhS+Z5ugEfCOlHHS+/RR1VRxSXVCCunJl3bkjsldiVqsfWLvxKalLqN/Wqnrw== X-Received: by 2002:a17:902:ed03:: with SMTP id b3mr11517649pld.247.1587299941830; Sun, 19 Apr 2020 05:39:01 -0700 (PDT) Original-Received: from [192.168.1.3] ([24.20.201.106]) by smtp.gmail.com with ESMTPSA id t23sm10871695pjq.27.2020.04.19.05.39.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Apr 2020 05:39:01 -0700 (PDT) In-Reply-To: <272b0156-cd72-896f-1a11-a6db8b2f4c5b@uni-bonn.de> X-Mailer: Apple Mail (2.3445.104.14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106935 Archived-At: --===============2806489441208427337== Content-Type: multipart/alternative; boundary="Apple-Mail=_676AE2CA-A226-4799-A460-F2278E6BDA61" --Apple-Mail=_676AE2CA-A226-4799-A460-F2278E6BDA61 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 The label mechanism worked great. Thanks! -kk > On Apr 13, 2020, at 1:20 PM, Thomas A. Schmitz = wrote: >=20 > 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=E2=80=99ve got a = counter for tag number, but I=E2=80=99m not sure how to use \reference = so that it uses my tag number. For instance: >> \definecounter[myTagCounter] >> . >> . >> . >> \reference[tagref]{\rawcountervalue[myTagCounter]} >> Doesn=E2=80=99t work. But perhaps I=E2=80=99m going about this = incorrectly? >> Thanks in advance! >=20 > Are you looking for this: = https://wiki.contextgarden.net/Command/definelabel = ? >=20 > HTH >=20 > Thomas > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context = > webpage : http://www.pragma-ade.nl / = http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ = > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_676AE2CA-A226-4799-A460-F2278E6BDA61 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
The label mechanism worked = great.

Thanks!

-kk

On Apr 13, 2020, at 1:20 PM, Thomas A. = Schmitz <thomas.schmitz@uni-bonn.de> wrote:

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=E2=80=99ve got a counter for tag number, but I=E2=80=99m not = sure how to use \reference so that it uses my tag number. For = instance:
    \definecounter[myTagCounter]
    .
    .
    .
    \reference[tagref]{\rawcountervalue[myT= agCounter]}
Doesn=E2=80=99t work. But perhaps I=E2=80=99m = going about this incorrectly?
Thanks in advance!

Are you looking for this: https://wiki.contextgarden.net/Command/definelabel ?

HTH

Thomas
_______________________________________________________________= ____________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki =     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_676AE2CA-A226-4799-A460-F2278E6BDA61-- --===============2806489441208427337== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2806489441208427337==--