ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Loop?
@ 2021-02-12 18:39 Angel M Alganza
  2021-02-12 18:50 ` Loop? Thomas A. Schmitz
  2021-02-12 18:50 ` Loop? Jairo A. del Rio
  0 siblings, 2 replies; 12+ messages in thread
From: Angel M Alganza @ 2021-02-12 18:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello:

I am trying to print a list of names always followed by the same info
(generated by a new command).  At the moment, I have all the names
followed by the command like so:

	Person Number One
	\mycommand
	Person Number Two
	\mycommand
	Person Number Three
	\mycommand
	Person Number Four
	\mycommand
	Person Number Five
	\mycommand
	.
	.
	.

I'd rather have the list of people stored somewhere (a list? an array?)
and loop through it and then inserting \mynewcommand at compilation
time.  That way, when I need to replace the list of people with a new
one, I'd just do that instead of building the above structure again and
again.

Is it possible to do that with just ConTeXt or would I need to resort to
Lua.  I guess it should be possible both ways, but I haven't figure out
how to do it.  Any pointer, please?

Thank you so much in advance.

Cheers,
Ángel
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-02-13 13:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 18:39 Loop? Angel M Alganza
2021-02-12 18:50 ` Loop? Thomas A. Schmitz
2021-02-12 18:50 ` Loop? Jairo A. del Rio
2021-02-12 18:52   ` Loop? Jairo A. del Rio
2021-02-12 19:25   ` Loop? Wolfgang Schuster
2021-02-12 19:48     ` Loop? Jairo A. del Rio
2021-02-13 10:42       ` Loop? Angel M Alganza
2021-02-13 11:12         ` Loop? Wolfgang Schuster
2021-02-13 13:23           ` Loop? Angel M Alganza
2021-02-13 13:39             ` Loop? Hans Hagen
2021-02-12 19:49   ` Loop? Angel M Alganza
2021-02-12 19:57     ` Loop? Jairo A. del Rio

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).