[NTG-context] Assigning a variable to the list argument in \setupsection

Marco Patzer lists at homerow.info
Thu Apr 14 11:45:28 CEST 2016


On Thu, 14 Apr 2016 09:46:34 +0200
Michael Guravage <guravage at gmail.com> wrote:

> I would like to use a variable for the value of the list argument in,
> e.g., the \startsection command. If you compile my little example you
> will see that the first 'literal' assignment works, while the second
> 'variable' assignment does not. What am I missing here?
> 
> Cheers,
> 
> Michael
> 
> 
> \starttext
> 
>   \placecontent
> 
>   \setvariables[TOC][list=Second Section]
> 
>   \startsection [title={First}, list={First Section}]
>     This is the first section.
>   \stopsection
> 
>   \startsection [title={Second}, list={\getvariable{TOC}{list}}]

I suspect issues with the order of expansion because it works with

  \expanded{\startsection [title={Second}, list={\getvariable{TOC}{list}}]}

Marco


More information about the ntg-context mailing list