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.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31992 invoked from network); 13 Aug 2023 19:34:58 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 13 Aug 2023 19:34:58 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 891C9482B5D for ; Sun, 13 Aug 2023 21:34:18 +0200 (CEST) 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 zkAxCLvRtPkF for ; Sun, 13 Aug 2023 21:34:18 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 03D7E4828CF for ; Sun, 13 Aug 2023 21:33:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7503A4824FB for ; Sun, 13 Aug 2023 21:33:35 +0200 (CEST) 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 SJz_BxWg8jWi for ; Sun, 13 Aug 2023 21:33:35 +0200 (CEST) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 2982A4824FA for ; Sun, 13 Aug 2023 21:33:35 +0200 (CEST) Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-40ddc558306so24328941cf.2 for ; Sun, 13 Aug 2023 12:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691955213; x=1692560013; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GG8hb9OrYVqJfkRuLFoK1IuyyXDPYftwJWlHoY7Eez0=; b=eOx8OkNhLspH7e0RIigL0QNa3lchA9dPO9Bp1iZj1R9y+sfGxnUwyiRRDB3UCo7tIj mg263Igbt4NBaYdXznKXYzrt/v2K7vOVm5QjwO/w++BCmbDkQwjKFeYLmeS2P98kwhgs HFtEICMMcMGOgWuIYV4kz9C55tKRF8sLSn1AxhZarIjUdewfmet1QXXa2zrVjcpAWZ8m MqFu5fGg5v236iPP0ZsHdG0LII6VvYpc8mAkVuod6y8kcLUB/G9na3JpM3o5+GTHF28a Pe8DbAWja/6+D9c7T7GCOKttC6xmb2lS5ThAS9O7DGSrYuqD6w3jMMTqBr8RKb2+R8qw jh8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691955213; x=1692560013; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GG8hb9OrYVqJfkRuLFoK1IuyyXDPYftwJWlHoY7Eez0=; b=h0euMoFkNqPJ4hV999tCuNVtpr2WALXWZshYwHv+hXFPGoQ2jUr63CR2qX5TPLU00W PxOc5JVUw5K/mlHeW7YmVSNBJTU7TaT+JbrXxxM/93vKCV66oUeJze6hEMTx84P6282K +ngeW0Rq0QgOg4AGsbSXqrdeubgbz8kU2OXOfChv1NTm9dYgvgXzGOdwRBveUGPhlwG/ GuPag4ZqGJQpjl84ef3Q+ARTp7oVok4uQI6AGxZrKcZFSCG9Srw1UOInygGDSoBcDy8Q nHmDS8VfdmG95VD41JcV28CdOoEMlRQJZhMjZfqYL1fWcDWSNlSF1B1X09fKe9yJcXgc +IJQ== X-Gm-Message-State: AOJu0Yyd9pThxNt3Kvgrqqkk6kCXKjxsiSmcfQjwX3wPQ9PtlS0tXm/t eCD6q3WWDFuvdvmOcYFdzJsoVod9sgfSNdBNHy0JKIhSu2A= X-Google-Smtp-Source: AGHT+IF8v8nObglDxVFdQmD/aV5W5l7mXiaZtAWmEXpJckPIig0GlzepkwhAqvDq+3eeNyM4uRATkQHAJEmeYANafNE= X-Received: by 2002:ac8:5b4a:0:b0:40f:9f91:e0f1 with SMTP id n10-20020ac85b4a000000b0040f9f91e0f1mr12675625qtw.61.1691955213506; Sun, 13 Aug 2023 12:33:33 -0700 (PDT) MIME-Version: 1.0 References: <550cf663-274f-106c-e930-03fb0b092643@xs4all.nl> In-Reply-To: From: Thangalin Date: Sun, 13 Aug 2023 12:33:22 -0700 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: 5IX6LVOKJZVHRX5UQ3S7NKHLBYQPXNWY X-Message-ID-Hash: 5IX6LVOKJZVHRX5UQ3S7NKHLBYQPXNWY X-MailFrom: thangalin@gmail.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: Pass string into text background graphic List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============2256735386219018934==" --===============2256735386219018934== Content-Type: multipart/alternative; boundary="0000000000007a1b790602d305b8" --0000000000007a1b790602d305b8 Content-Type: text/plain; charset="UTF-8" Hi again, you could remove the \localcontrolled around the advance > I thought I tried that, but the counter incremented to 6, instead of 4. Using higher-level primitives seems more like the ConTeXt way. > why twice ? you only have to typeset the text once, right? > > > {text:\number\numexpr1+\rawcountervalue[ConcurrentTextGetCounter]/2\relax}} > I don't know why the counter is incremented twice for each concurrent environment; the document is typeset once, in three passes. Dividing by two solves the issue, if there's a deeper issue, I'm at a loss to explain it. Greets! --0000000000007a1b790602d305b8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi again,

you could remove the \localcontrolled around the advance

I thought I tried that, but the counter incremented to 6,= instead of 4. Using higher-level primitives seems more like the ConTeXt wa= y.
=C2=A0
why twice ? you only have to typeset the text once, right?
> {text:\number\numexpr1+\rawcountervalue[ConcurrentTextGetCounter]/2\re= lax}}

I don't know why the counter is in= cremented twice for each concurrent environment; the document is typeset on= ce, in three passes. Dividing by two solves the issue, if there's a dee= per issue, I'm at a loss to explain it.

Greets!
--0000000000007a1b790602d305b8-- --===============2256735386219018934== 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://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 ___________________________________________________________________________________ --===============2256735386219018934==--