[NTG-context] Loop?

Jairo A. del Rio jairoadelrio6 at gmail.com
Fri Feb 12 20:57:30 CET 2021


There's \processseparatedlist[<list>][<separator>]\command with an
arbitrary <separator> 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 at ugr.es)
escribió:

> Hi Jairo:
>
> On Fri, Feb 12, 2021 at 01:50:58PM -0500, Jairo A. del Rio wrote:
>
> > Hi, Ángel. 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,
> Ángel
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210212/656721a9/attachment.htm>


More information about the ntg-context mailing list