From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110559 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Loop? Date: Fri, 12 Feb 2021 14:57:30 -0500 Message-ID: References: <20210212183905.GG6275@zombi.ugr.es> <20210212194932.GI6275@zombi.ugr.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6042382651045119980==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14752"; mail-complaints-to="usenet@ciao.gmane.io" To: Angel M Alganza , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 12 20:58:10 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAeZt-0003iA-Ok for gctc-ntg-context-518@m.gmane-mx.org; Fri, 12 Feb 2021 20:58:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D0B742800A8; Fri, 12 Feb 2021 20:57:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tBNgVIhIh8dj; Fri, 12 Feb 2021 20:57:44 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E8BDF28096F; Fri, 12 Feb 2021 20:57:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 30D2C28095E for ; Fri, 12 Feb 2021 20:57:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TQLUQACNnaK9 for ; Fri, 12 Feb 2021 20:57:42 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.53; helo=mail-wr1-f53.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 54E752800A8 for ; Fri, 12 Feb 2021 20:57:42 +0100 (CET) Original-Received: by mail-wr1-f53.google.com with SMTP id v15so619616wrx.4 for ; Fri, 12 Feb 2021 11:57:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=TrMwvuJNWzEAeJ7zZNx5vQtVF3cqIU0tQ+FVJCrffw8=; b=La2/CBDYH+0etpppEyq6z4uXFFWOHnGfq93M1hsxgz0N9/0MUB2kr4ZG0zKbuSfkSH 9N7Qk4wZL4cEIcRwQHNfaL4a5bdxR0KrZHfD/b2QXyEMKclwX6LEKGvU61XOl+K/zgJ/ 5UPNt5PVZUtDjcsF3GzW4V/CEp5OItpJqEFdkONW1HvRUORH1nC0sT+2ikWFMKOmAlCx 5v07uJTTqBkV1wEYxkeen67uxDYQIcFn+3r185pCISqt7Eh2DF2lW5cKSPTxwSK/NaY+ zEtlEof0p6IOz+PYfdL+fFg1GxHw4sNhy5tZzJuou1qE/gkGQdObAn7JOy8pRcqMbpHE KaOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=TrMwvuJNWzEAeJ7zZNx5vQtVF3cqIU0tQ+FVJCrffw8=; b=RYhRwLF4Th4M5NdvYRyiadxp+tTmbSYPbHOYWU72unEayJkfmDG54xDSRgw44Cmec3 VrIhvW089cK+90br+BPfY5eyfKdkRRhp1E7BAdMvCFiYXVFZqxBXYwHD3UwOGpB3EAqd t21K78lISqqYzDRTYOiN1crkrAgM8+rnrxYJ47r89Jq+VSj+XKheEnUg/zAnGZmR7Z+Z BkiNXBJXu0j4QbVxT2d11UB21L+A0RDKnsQhdsI2VvVPeoPJPNwKsXkntNENPhtVYACi eLYWVLqwKz6MyK77kOanWk1OzlQVm3EBadJoyGGDDJH8NrJCzyi2VVerpN9MrHQWN9Xb JDvg== X-Gm-Message-State: AOAM530XQKABhqudHMOZym2OAwEv/o5Fp9Xnzrr1nD4SGSN6SHf0YEO8 KrUCr1dAr9ShO5eLNy26tyXK7AZvl4D30EBFoi4= X-Google-Smtp-Source: ABdhPJxATL8TNn5XhpVuCjJcZ8tzZU9/6GeQtihtnsJ0J7gdlN1U1qUp3lL+BAwd9LoTTJ0m00iBWtQa3nMrDYgU85Y= X-Received: by 2002:a05:6000:236:: with SMTP id l22mr5028186wrz.349.1613159861998; Fri, 12 Feb 2021 11:57:41 -0800 (PST) In-Reply-To: <20210212194932.GI6275@zombi.ugr.es> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:110559 Archived-At: --===============6042382651045119980== Content-Type: multipart/alternative; boundary="0000000000008a5b0405bb290cd6" --0000000000008a5b0405bb290cd6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable There's \processseparatedlist[][]\command with an arbitrary other than a comma... You should take a look at syst-aux.mkiv and syst-aux.mkxl to see more helpers: https://source.contextgarden.net/tex/context/base/mkiv/syst-aux.mkxl El vie, 12 de feb. de 2021 a la(s) 14:49, Angel M Alganza (ama@ugr.es) escribi=C3=B3: > Hi Jairo: > > On Fri, Feb 12, 2021 at 01:50:58PM -0500, Jairo A. del Rio wrote: > > > Hi, =C3=81ngel. Like this? > > > \def\mylist{Fulano,Mengano,Sutano} > > \def\mycommand#1{#1\blank{\red Something here}\blank} > > \starttext > > \processcommacommand[\mylist]\mycommand > > \stoptext > > Yes, exactly like this, thank you. Now, I have the names writen like: > > Family Name, Name > > So, is it possible to use a list separatd by something else than a > comma? A semicolon, for example? To test I've replaced those commas by > a colon and it works fine, but I'd rather have a comma, if possible. > > Again, thank you so much! > > Cheers, > =C3=81ngel > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000008a5b0405bb290cd6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
There's \processseparatedlist[<list>][<separa= tor>]\command with an arbitrary <separator> other than a comma...<= br>
You should take a look at syst-aux.mkiv and syst-aux.mkxl to see mor= e helpers:

https://source.contextgarden.net/tex/context/base/m= kiv/syst-aux.mkxl

El vie, 12 de feb. de 2021 a la(s) 14:49, Angel M Alga= nza (ama@ugr.es) escribi=C3=B3:
=
Hi Jairo:

On Fri, Feb 12, 2021 at 01:50:58PM -0500, Jairo A. del Rio wrote:

> Hi, =C3=81ngel. Like this?

> \def\mylist{Fulano,Mengano,Sutano}
> \def\mycommand#1{#1\blank{\red Something here}\blank}
> \starttext
> \processcommacommand[\mylist]\mycommand
> \stoptext

Yes, exactly like this, thank you.=C2=A0 Now, I have the names writen like:=

=C2=A0 =C2=A0 =C2=A0 =C2=A0 Family Name, Name

So, is it possible to use a list separatd by something else than a
comma?=C2=A0 A semicolon, for example?=C2=A0 To test I've replaced thos= e commas by
a colon and it works fine, but I'd rather have a comma, if possible.
Again, thank you so much!

Cheers,
=C3=81ngel
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000008a5b0405bb290cd6-- --===============6042382651045119980== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6042382651045119980==--