[NTG-context] structureuservariable

Henning Hraban Ramm texml at fiee.net
Sat Mar 31 23:38:38 CEST 2018


Am 2018-03-31 um 23:10 schrieb Hans Hagen <j.hagen at xs4all.nl>:

> On 3/31/2018 10:57 PM, Henning Hraban Ramm wrote:
>> Please consider:
>> \starttext
>> \startchapter[title=Test][author=Tufte]
>> \input tufte\par
>> Author: \structureuservariable{author}
>> \startsection[title=Section]
>> \input knuth\par
>> Author: \structureuservariable{author} (empty!)
>> \stopsection
>> \stopchapter
>> \stoptext
>> i.e. the variable that I define in chapter is reset in the next section.
>> But I need it for the whole chapter (i.e. for a head text).
>> Is there some setting to avoid that reset?
> no but there is \namedstructurevariable{..}{..}

i.e. \namedstructurevariable{chapter}{author}

Great, that helps!
Thank you for the quick answer!

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list