From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 9FDCE28654 for ; Fri, 15 Mar 2024 22:21:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1C13D484586 for ; Fri, 15 Mar 2024 22:21:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=yahoo.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lqVRpBO5rCIl for ; Fri, 15 Mar 2024 22:21:47 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8FA9948458A for ; Fri, 15 Mar 2024 22:16:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2A41A4842B3 for ; Fri, 15 Mar 2024 22:16:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qra_jaSYaGiJ for ; Fri, 15 Mar 2024 22:16:12 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.132.42; helo=sonic306-3.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Received: from sonic306-3.consmr.mail.bf2.yahoo.com (sonic306-3.consmr.mail.bf2.yahoo.com [74.6.132.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 271B848429B for ; Fri, 15 Mar 2024 22:16:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710537370; bh=6zNEHsbRQ98gQO4T1GH0Q4Tu4ZT7A1comEOTNDKPkKo=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=qLs6Q4fN1rSKe1ZPeMlsXpOwnxbOlfpRB5438hrYGOLEX+RSGnfA6RGIyutIgUtCRYRKYzolIliAM9TobkvOK7M+Q1E+CLmVaAIWoXBZ74DCVvAdwDbvWHHdHukXYDoYeFmlPKj6xxe1t+hFDnLwL6FUnufRm8VSGDcFp4jP6Gf3IM32UJXB6RzJzegxhgX6kPiTYVIp+FLGYt2FesslQWy8HivzjCDsC0tY8uwhPU2zKmSs/EXAHddjEsraQdCImXohLj+y3YX3DHwaw/yf/z+tF1WbaJHXYSpIG8ZyJm571SqkNCT41TtGrOtbiqvqAdVsdwOXisaf0eH0sqYLDQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710537370; bh=XERAVzopN1MnEfa9L8H2mwBiHCvKnjEL9f6B92MYj4f=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=r3mi2my6ZYBJ9jyP76Unqk3NL5VXDAqWqG9be2cXwCYmj5fmtPP+mtWEm7M5oMoPE6erjX5jJXB/rJPDCTAbWfLviTPT4TB46nPl2AV6yo6tAUax7aCY6OwIy6tXyNf5gIXJ4kaP7fbswv04KtPnoGHcb/cGrgv79K/2tJs1q8jge2yntHnNQA1VhwyTR1GTCmPIREVpbFB3Cb4EgzOxfZZRK5yZQfixdQORvfe0cM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 w4pWwbWcpJ.NsHarB2l7LXMyfywQSf4R0uIpxc6FP3Fm9QO9DhcyCKhDv53uMt2aqR6DKKqUOazV HQjx97uCYdCBpM3p3SMHw_uGyiXxncz0esXjYjEqo5lylJIbVtyun5UW8sCuFMtdCEJc7FTY7zuD p2EICT_OnZVp.Z91v0Nh0ZEZXKcYJKnCswhdo8kHyj7mA7ZmUuk7jXW9YLr60m8AL5._9g0FBndR J8qDi90PT4rAabXq0F5yMkJDK.30Outz.YMfv_9xc4tBqQAip3O.RyyMsEo7Hh4GWr56RGeFzfrc 2XqEBH7.cfs4- X-Sonic-MF: X-Sonic-ID: 470362e7-e270-4f0a-bb2f-3ceb2dc8762d Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Fri, 15 Mar 2024 21:16:10 +0000 Date: Fri, 15 Mar 2024 21:16:05 +0000 (UTC) To: mailing list for ConTeXt users Message-ID: <1593555358.2827334.1710537365363@mail.yahoo.com> In-Reply-To: <72f134e1-f713-a042-f47b-eb6110f2b466@gmail.com> References: <1782782343.2797033.1710532237466.ref@mail.yahoo.com> <1782782343.2797033.1710532237466@mail.yahoo.com> <72f134e1-f713-a042-f47b-eb6110f2b466@gmail.com> MIME-Version: 1.0 X-Mailer: WebService/1.1.22129 YMailNorrin Message-ID-Hash: QUFM4CTWF2IKF72XCLRSZDD7KJU5YE76 X-Message-ID-Hash: QUFM4CTWF2IKF72XCLRSZDD7KJU5YE76 X-MailFrom: uaru99@yahoo.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Why aren't cross-references working in tabulate? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Joel via ntg-context Cc: Joel Content-Type: multipart/mixed; boundary="===============2417654030488500857==" --===============2417654030488500857== Content-Type: multipart/alternative; boundary="----=_Part_2827333_1873705610.1710537365362" ------=_Part_2827333_1873705610.1710537365362 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you! The solution worked! On Friday, March 15, 2024 at 02:30:40 PM MDT, Wolfgang Schuster wrote: =20 =20 Joel via ntg-context schrieb am 15.03.2024 um 20:50: > When I run this code, \at{page}[xyz] is unable to find the cross referenc= e: >=20 > \starttext > %\reference[xyz]{} > \starttabulate[|lp(.33333\textwidth)|lp(.6666\textwidth)|] > \NC=C2=A0=C2=A0 =C2=A0\reference[xyz]{} \NC \NC\NR \NC \doifnotmode{*trialtypesetting}{\pagereference[xyz]} \NC \NC\NR > \stoptabulate >=20 >=20 > \pagebreak >=20 > \at{page}[xyz] >=20 > \stoptext >=20 > The code does work when I uncomment line #2, revealing the=20 > cross-references work find when outside of a table. >=20 > I also tried using a TABLE environment instead and the result was=20 > similar, it wouldn't show the page number. >=20 > What am I doing wrong? Tabulate and natural tables process the table content multiple times and=20 therefore you're setting the reference multiple times, to avoid this=20 check for trialtypesetting mode and set the reference only when you're=20 out of the mode. @Hans: Can we add the check trialtypesetting check to \reference etc.? \protected\def\strc_references_set_named_reference - {\ifreferencing + {\iftrialtypesetting +=C2=A0 =C2=A0 \expandafter\gobblefourarguments +=C2=A0 \orelse\ifreferencing =C2=A0 =C2=A0 =C2=A0 \expandafter\strc_references_set_named_reference_indee= d =C2=A0 =C2=A0 \else =C2=A0 =C2=A0 =C2=A0 \expandafter\gobblefourarguments =C2=A0 =C2=A0 \fi} Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-c= ontext.ntg.nl webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net (mir= ror) archive=C2=A0 : https://github.com/contextgarden/context wiki=C2=A0 =C2=A0 : https://wiki.contextgarden.net ___________________________________________________________________________= ________ =20 ------=_Part_2827333_1873705610.1710537365362 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you! The solution work= ed!

=20
=20
On Friday, March 15, 2024 at 02:30:40 PM MDT, Wolfgang = Schuster <wolfgang.schuster.lists@gmail.com> wrote:


Joel via ntg-context schrieb am 15.03= .2024 um 20:50:
> When I run this code, \at{page}[xyz]= is unable to find the cross reference:
>
> \starttext
> %\reference[xyz]{}
> \starttabulate[|lp(.33333\textwidth)|lp(.6666\textwidth)|]> \NC    \reference[xyz]{} \NC \NC\NR
\NC \doifnotmode{*trialtypesetting}{\pag= ereference[xyz]} \NC \NC\NR

> \stop= tabulate
>
>
= > \pagebreak
>
> \at{page}[xy= z]
>
> \stoptext
>
> The code does work when I uncomment line #2= , revealing the
> cross-references work find when out= side of a table.
>
> I also trie= d using a TABLE environment instead and the result was
&= gt; similar, it wouldn't show the page number.
>
> What am I doing wrong?

Tabulate and natural tables process the table content multiple times an= d
therefore you're setting the reference multiple times,= to avoid this
check for trialtypesetting mode and set t= he reference only when you're
out of the mode.

@Hans: Can we add the check trialtypesetting c= heck to \reference etc.?

\protected\de= f\strc_references_set_named_reference
- {\ifreferencing+ {\iftrialtypesetting
+    \e= xpandafter\gobblefourarguments
+  \orelse\ifreferenc= ing
      \expandafter\strc_references_set= _named_reference_indeed
    \else
      \expandafter\gobblefourarguments
    \fi}

Wolfgang

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg= .nl
webpage  : https://www.pragma-a= de.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/co= ntextgarden/context
wiki    : https://wiki.contextgarden.net
________________= ___________________________________________________________________
------=_Part_2827333_1873705610.1710537365362-- --===============2417654030488500857== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============2417654030488500857==--