Hi Wolfgang,

thank you very much. Amazing!

Am 29.05.20 um 15:35 schrieb Wolfgang Schuster:

> \definedataset [chapter]
>
> \startsetups [chapter:before]
> 
>   \page[yes]
> 
>   \doglobal\increment\ChapterCounter
> 
>   \doifoddpageelse
>     {}
>     {\doifsomething
>        {\datasetvariable{chapter}{\ChapterCounter}{image}}
>        {\startlayout[page]
>         \centerbox{\externalfigure
> [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]}
>         \stoplayout}}
> 
> \stopsetups
> 
> \setuphead
>   [chapter]
>   [page=,
>    beforesection=\directsetup{chapter:before},
> insidesection={\setdataset[chapter][\ChapterCounter][image=\structureuservariable{image}]}]
> 

One and a half question.
Why did you set \ChapterCounter explizitly and why is \ChapterCounter
part of the datasetvariable?

juh
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to