[NTG-context] structureuservariable as list

Rik Kabel ConTeXt at rik.users.panix.com
Fri Feb 24 23:37:54 CET 2023


> Hi,
>
> is it possible to pass a list in a variable? I'd like to pass a list 
> of authors:
>
>
> \startchapter[title={Foo Bar}][authors={Alice, Bob}]
>
> % PSEUDOCODE
> % for author in \structureuservariable{authors}
> % do print(author + '\crlf')
> % done
>
> \stopchapter
>
>
Search the wiki. Look for "Comma Separated Lists." There is a variant 
with an author list as an example.

You may need additional brace levels around the list entries.

-- 
Rik



More information about the ntg-context mailing list