From mboxrd@z Thu Jan 1 00:00:00 1970 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, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17384 invoked from network); 13 Dec 2023 08:41:41 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 13 Dec 2023 08:41:41 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7A41F4838CC for ; Wed, 13 Dec 2023 09:40:24 +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 FzR0zfZFt-Md for ; Wed, 13 Dec 2023 09:40:24 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 904D7483C2B for ; Wed, 13 Dec 2023 09:39:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DD25D4802E3 for ; Wed, 13 Dec 2023 09:39:28 +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 RY8H4xDmob1A for ; Wed, 13 Dec 2023 09:39:28 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 66680480117 for ; Wed, 13 Dec 2023 09:39:28 +0100 (CET) X-KPN-MessageId: 181e3932-9993-11ee-90ec-00505699b430 Received: from smtp.kpnmail.nl (unknown [10.31.155.8]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 181e3932-9993-11ee-90ec-00505699b430; Wed, 13 Dec 2023 09:39:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=aGwd7ByUnsbiocaqomIgiwTbqLyTWvcOWebzkGBL7nU=; b=bZTf7GO7/Xnn0wNdDhJjot/AYPN84AbokMkVjTdN+XCif5Mp407ubrfsALomLDnc8TEldCpDgFH9E 3DuTFdT2a9TE6Z01Pm/hvqH0oWypoJXMv0s0sidwFzUBPVElRmCUswHguaC79ZfsSAXwNYyElKWBWn DAOJAK+hjQPufFN7BBjOJBgQw//PSRFuMqZjYU0HR+7JCNeuG7r09guN/X89ddOJMeuiF740I9mW4K KeE3A/Zz+5b1Lxm1PKsRyJZyT5H8fE4455x25IJcRZsLSF2Y72EDLnh4HvS8pDrEbvxMRL4U3kE1Df AE70BMPLyx63vLWYJBmeKOIkz3v1Q3w== X-KPN-MID: 33|ypeydkFV77X+iIQF7OaBVPIBsabNFLdBdyBXJNbBZf5qGSH13WyMXRLo0geqcGb jAhD9yaUXB4sSl3ewDKjnuXdpNGCkXYtVfOL+g96Tx/o= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|2oTLBiqvEcSsRQt0U/PC2Tifb081pdkSzMUsCcJcXqdOoZeRqi3Dc8okg/RIGxY wURPQUbrDmND55TszRbFuQQ== X-Originating-IP: 213.125.29.162 Received: from [10.100.1.105] (d57d1da2.static.ziggozakelijk.nl [213.125.29.162]) by smtp.xs4all.nl (Halon) with ESMTPSA id 2085ea3b-9993-11ee-acaa-00505699d6e5; Wed, 13 Dec 2023 09:39:28 +0100 (CET) Message-ID: <5b138cfa-51db-4b01-94bd-e53f4fff121c@xs4all.nl> Date: Wed, 13 Dec 2023 09:39:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: ntg-context@ntg.nl References: From: Hans Hagen In-Reply-To: Message-ID-Hash: C7WKAGC432KO4HNHYWBEDZO4Z3JKWBJ5 X-Message-ID-Hash: C7WKAGC432KO4HNHYWBEDZO4Z3JKWBJ5 X-MailFrom: j.hagen@xs4all.nl 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: Score sums and references List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 12/13/2023 4:05 AM, Jairo A. del Rio wrote: > Hi, dear list. Is there a proper "ConTeXt way" to do the following? > > \integerdef\lmao=0 > \starttext > Sum: \in[trick] % 10 from the result below > > +1\advance\lmao\plusone > > +2\advance\lmao\plustwo > > +3\advance\lmao\plusthree > > +4\advance\lmao\plusfour > > \normalexpanded{\reference[trick]{\the\lmao}} % 10 printed above > \stoptext > > I want the result of a sum (either via Lua or TeX) to be printed before > summands in text, but without the mess of reference options such as > interaction, etc. Thank you in advance and sorry for any inconvenience. \integerdef\DSlmao=0 \starttext Sum: \datasetvariable{test-1}{1}{whatever} \startlines +1\advance\DSlmao\plusone +2\advance\DSlmao\plustwo +3\advance\DSlmao\plusthree +4\advance\DSlmao\plusfour \stoplines \normalexpanded{\setdataset[test-1][whatever=\the\DSlmao]} \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________