14 Apr
2016
14 Apr
'16
9:45 a.m.
On Thu, 14 Apr 2016 09:46:34 +0200
Michael Guravage
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