ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jairo A. del Rio" <jairoadelrio6@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Score sums and references
Date: Tue, 12 Dec 2023 22:05:45 -0500	[thread overview]
Message-ID: <CAKyqqaYbWs+0SUgWi_9LPdskc3FAqRcJei71Y+2Zti0eAK97OQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 551 bytes --]

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.

Regards,

Jairo

[-- Attachment #1.2: Type: text/html, Size: 646 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2023-12-13  3:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-13  3:05 Jairo A. del Rio [this message]
2023-12-13  8:39 ` [NTG-context] " Hans Hagen
2023-12-14  2:56   ` Jairo A. del Rio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKyqqaYbWs+0SUgWi_9LPdskc3FAqRcJei71Y+2Zti0eAK97OQ@mail.gmail.com \
    --to=jairoadelrio6@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).