* xmldoif, \startSECTION ... \stopSECTION and \setuphead
@ 2019-05-16 16:43 Pablo Rodriguez
2019-05-16 16:55 ` Pablo Rodriguez
2019-05-16 18:45 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2019-05-16 16:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear list,
I have the following sample:
\setuphead[chapter]
[beforesection=\TeX,
aftersection=\TeX]
\starttext
\startchapter[title=Chapter,
beforesection=\ConTeXt,
aftersection=\ConTeXt]
This is my chapter.
\stopchapter
\stoptext
After checking i-context, the options for the second pair of brackets are:
KEY = VALUE
Well, I think this is the standard case. Aren’t values inherited from
\setuphead? What would be the valid keys for this case?
I need to use \xmldoif in beforesection and aftersection. As far as I
can see, it doesn’t work inside \setuphead.
What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and
contains(@class,'hidden')]}" in beforesection?
I realize that "\definehead[specialchapter][chapter]" would be a
workaround, but I would like to find a more proper solution.
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 4+ messages in thread
* Re: xmldoif, \startSECTION ... \stopSECTION and \setuphead
2019-05-16 16:43 xmldoif, \startSECTION ... \stopSECTION and \setuphead Pablo Rodriguez
@ 2019-05-16 16:55 ` Pablo Rodriguez
2019-05-16 18:45 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2019-05-16 16:55 UTC (permalink / raw)
To: ntg-context
On 5/16/19 6:43 PM, Pablo Rodriguez wrote:
> [...]
> What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and
> contains(@class,'hidden')]}" in beforesection?
>
> I realize that "\definehead[specialchapter][chapter]" would be a
> workaround, but I would like to find a more proper solution.
It would be a workaround for the sample I submitted, but not for "\xmldoif".
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 4+ messages in thread
* Re: xmldoif, \startSECTION ... \stopSECTION and \setuphead
2019-05-16 16:43 xmldoif, \startSECTION ... \stopSECTION and \setuphead Pablo Rodriguez
2019-05-16 16:55 ` Pablo Rodriguez
@ 2019-05-16 18:45 ` Wolfgang Schuster
2019-05-16 19:45 ` Pablo Rodriguez
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2019-05-16 18:45 UTC (permalink / raw)
To: mailing list for ConTeXt users, Pablo Rodriguez
Pablo Rodriguez schrieb am 16.05.2019 um 18:43:
> Dear list,
>
> I have the following sample:
>
> \setuphead[chapter]
> [beforesection=\TeX,
> aftersection=\TeX]
> \starttext
> \startchapter[title=Chapter,
> beforesection=\ConTeXt,
> aftersection=\ConTeXt]
> This is my chapter.
> \stopchapter
> \stoptext
>
> After checking i-context, the options for the second pair of brackets are:
>
> KEY = VALUE
>
> Well, I think this is the standard case. Aren’t values inherited from
> \setuphead? What would be the valid keys for this case?
The second argument is for userdata, i.e. you can use your own keys to
store information for a section (e.g. the author or a subtitle).
Wolfgang
___________________________________________________________________________________
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] 4+ messages in thread
* Re: xmldoif, \startSECTION ... \stopSECTION and \setuphead
2019-05-16 18:45 ` Wolfgang Schuster
@ 2019-05-16 19:45 ` Pablo Rodriguez
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2019-05-16 19:45 UTC (permalink / raw)
To: ntg-context
On 5/16/19 8:45 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 16.05.2019 um 18:43:
>> [...]
>> After checking i-context, the options for the second pair of brackets are:
>>
>> KEY = VALUE
>>
>> Well, I think this is the standard case. Aren’t values inherited from
>> \setuphead? What would be the valid keys for this case?
>
> The second argument is for userdata, i.e. you can use your own keys to
> store information for a section (e.g. the author or a subtitle).
Many thanks for your reply, Wolfgang.
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2019-05-16 19:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 16:43 xmldoif, \startSECTION ... \stopSECTION and \setuphead Pablo Rodriguez
2019-05-16 16:55 ` Pablo Rodriguez
2019-05-16 18:45 ` Wolfgang Schuster
2019-05-16 19:45 ` Pablo Rodriguez
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).