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=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,MAILING_LIST_MULTI 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 6105628FB0 for ; Sat, 2 Nov 2024 21:07:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 240C8485912 for ; Sat, 2 Nov 2024 21:04:34 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-type:content-type:from:from:list-unsubscribe :list-subscribe:list-post:list-owner:list-help:list-archive :archived-at:list-id:subject:subject:reply-to:precedence :x-mailer:references:mime-version:message-id:date:date:received :received:received:received:received:received; s=cgl; t= 1730577873; x=1733169874; bh=nHse2dJzm1Sl2WmVkvMljGM/kswIJdYJpns frnhuKfE=; b=MYuB8wSFgP5rP2POeENaWZjfGDuKDMcGBGoueeniItmgAjio3it IP35Kx+eLS7jKWJmq8GLtSWjzRyZdGuiUqJXvtTTVKi0rQLk78zV8nwOznLhH/n2 M9bNhsuwa80OXyOBssSTL14SvItz15LxBg/SaSA4Ypk/UMVHyf9hVJio= 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 1b5t9vt7nW3t for ; Sat, 2 Nov 2024 21:04:33 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 67CCA4858FB for ; Sat, 2 Nov 2024 21:03:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D2D35485871 for ; Sat, 2 Nov 2024 21:02:12 +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 rnr-0TGXGnBq for ; Sat, 2 Nov 2024 21:02:12 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.129.81; helo=sonic317-26.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Received: from sonic317-26.consmr.mail.bf2.yahoo.com (sonic317-26.consmr.mail.bf2.yahoo.com [74.6.129.81]) (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 4E710485870 for ; Sat, 2 Nov 2024 21:02:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1730577730; bh=Ebty+uAeWK6zn9V9Pw1KvpOpnJGGAJoKILAcQD0+4dk=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=H3OMk5lmAkwQSbANTcKrd32WpcjCUDF9zwzET9n+yNxFiIXMH+nYAkcECJRx0QSn6zEKFOtlgW1/IxKli6bhhUv68rK8UO8DltgvU6570OwLiKo60zK2MqzzgRkZrEn4MkQjZcB9dYnPL6KM10pREhhkuIE87X82cvv9ufCCl7MCp7ycUaWGvJYQm4bGC3LAuovUeDYThtGNzrTtaDOCu0o+pyvweGdKGp1eGnp48YF+0QfWnmEjoHNlIEYVBvRfzCECD2JjQ9fKTqqK23PgEvEm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uk JYOXKovebqbzpEIwBVH1DDQlIHO8UWitF3HqyXwYwSGGVQ3C2wsWTc4CDU0TrEtjRD2S1MjfqjO6 Sy5CpP8o7G.S4sdPnZD8MZFB58ispicn.YAnlDuicn.l_gqhRNLbyyOC1CiVCI3lctPA8rXMyn_D OHPrq0s1WIb_DZK_Z6cItQPJTr0VwkBiKCaMMR6DkEHq9tCoX9utv.xH98hd4KZx9VnmPpTGenyL a_U4qwN5W4A5qxMBtzgUbBdWegf7Pl0cAcvxDK1MR6hnNbDhiHWkjd96NONjiJqeu_EcDK8m6N0C ql7x_1zA.Ck0LF7wp5fXrxZIOuEd.1k0NH829vBezoFfm7pzgJUfPQEV1fbhERTzsQUNpZYud5D3 WN.WWywBwqnmcDfgjD1U6_VY_G059qGzO0sHi6evwwtR8_CBfGXwFlYNwWJCAGh46vg4RM3bvKb. c_mX6kRZRgKWlYEKZbZQ0Jf8MFItSmja3s55fA.VNyabuh6j3dFxk_8PU1TGruWhd8jxFEpf1b7Y zjKIZTjiO4sgiRcevHZFskwtcYsYFKPbz8AmT0Pi3l3GXex0Rr14p9V9oRxb1021yQvPVKKfMY8P 33DBEIN8gzCLL680X8HsWkqdF.j1RfyxFnq3wtzfWQ15iZv0R5CCJEnTesQ7rsJk7q9cUraU2n6G OnvuO0Kxt5uA5v9cp.uMwCIBP3mej6kctuTUVtGsghWQB4wLZehCIvw-- X-Sonic-MF: X-Sonic-ID: 97b76957-58cb-4760-952d-e49bb1ef466c Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Sat, 2 Nov 2024 20:02:10 +0000 Date: Sat, 2 Nov 2024 20:02:05 +0000 (UTC) To: Mailing List for ConTeXt Users Message-ID: <692582251.5119511.1730577725919@mail.yahoo.com> MIME-Version: 1.0 References: <692582251.5119511.1730577725919.ref@mail.yahoo.com> X-Mailer: WebService/1.1.22806 YMailNorrin Message-ID-Hash: S5P72W36J2DZXZRNDG4YVZ6JQ5WPX6VC X-Message-ID-Hash: S5P72W36J2DZXZRNDG4YVZ6JQ5WPX6VC 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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] How can a macro check how many items are in a list? 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="===============3075224194614911999==" --===============3075224194614911999== Content-Type: multipart/alternative; boundary="----=_Part_5119510_52589574.1730577725918" ------=_Part_5119510_52589574.1730577725918 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Suppose I have a macro like this: \define[1]\thisismylist{ This list has n items. \startitemize=C2=A0=C2=A0 #1\stopitemize } And in the document it might have this: \thisismylist{\item cat\item dog\item tree } How can I make n display three, as there are three items? "This list has 3 items: 1. cat2. dog3. tree I will use this as a means to check if the description before a list needs = a plural or not: Read the prompts below: - Do you think cats should be banned from university dormitories?- Should p= ublic schools provide free breakfast? And that way, if there is only one prompt, it changes the instructions to b= e: Read the prompt below: - Do you think cats should be banned from university dormitories? --Joel ------=_Part_5119510_52589574.1730577725918 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Suppo= se I have a macro like this:


\define[1]\thisismylist{

This= list has n items.

\startitemize
   #1
\stopitemize

}

And in the = document it might have this:

\thisismylist{
\it= em cat
\item dog
\item tree
}

How can I make n display three, as there= are three items?

"This list has 3 items:

1. cat
2. dog
3. tree

I will use this= as a means to check if the description before a list needs a plural or not= :

Read the prompts below:

- Do you thin= k cats should be banned from university dormitories?
- Should public schools provide free breakfast?

And that way, if there is only one prompt, it changes the = instructions to be:

<= div dir=3D"ltr" data-setdir=3D"false">Read the prompt below:

- Do you think cats should be banned from university dormitories?


--Joel
------=_Part_5119510_52589574.1730577725918-- --===============3075224194614911999== 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 ___________________________________________________________________________________ --===============3075224194614911999==--