* structureuservariable
@ 2018-03-31 20:57 Henning Hraban Ramm
2018-03-31 21:10 ` structureuservariable Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm @ 2018-03-31 20:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
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?
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD
___________________________________________________________________________________
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] 3+ messages in thread
* Re: structureuservariable
2018-03-31 20:57 structureuservariable Henning Hraban Ramm
@ 2018-03-31 21:10 ` Hans Hagen
2018-03-31 21:38 ` structureuservariable Henning Hraban Ramm
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2018-03-31 21:10 UTC (permalink / raw)
To: ntg-context
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{..}{..}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread
* Re: structureuservariable
2018-03-31 21:10 ` structureuservariable Hans Hagen
@ 2018-03-31 21:38 ` Henning Hraban Ramm
0 siblings, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm @ 2018-03-31 21:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 2018-03-31 um 23:10 schrieb Hans Hagen <j.hagen@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
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2018-03-31 21:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-31 20:57 structureuservariable Henning Hraban Ramm
2018-03-31 21:10 ` structureuservariable Hans Hagen
2018-03-31 21:38 ` structureuservariable Henning Hraban Ramm
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).