Re: [NTG-context] How to group list of figures and list of tables by chapter?

2022-03-31 Thread Werner Schmidt via ntg-context
Thanks a lot it works!

I just had to add \noindent because for some strange reason the chapter title 
was indented after adding the \writebetweenlist hook to \setuphead.

before={
\noindent
\writebetweenlist [figure] [location=here] {\blank}
\writebetweenlist [table] [location=here] {\blank}
}

Thanks Werner


On March 31, 2022 5:58:47 AM UTC, Duncan Hothersall  wrote:
>You could try using \writebetweenlist hooked into \setuphead[chapter]?
>Something like (untested):
>
>\setuphead[chapter][before={\writebetweenlist[figure][location=here]{\blank}}]
>
>(Sorry, can't currently test this.)
>
>Duncan
>
>On Thu, 31 Mar 2022 at 06:31, Werner Schmidt via ntg-context <
>ntg-context@ntg.nl> wrote:
>
>> Hi,
>>
>> How can I set up \placelistoffigures and \placelistoftables that figures
>> and tables are grouped by chapter, i.e. separated by a blank line between
>> chapters (see example below)?
>>
>> Thanks in advance for your help!
>>
>> Best Werner
>>
>>
>> (Default:)
>> Figures
>>
>> 1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2
>> 2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
>> 2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3
>> 3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
>> 3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
>> 3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4
>>
>> (Wanted:)
>> Figures
>>
>> 1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2
>>
>> 2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
>> 2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3
>>
>> 3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
>> 3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
>> 3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4
>>
>> ___
>> 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
>>
>> ___
>>
___
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
___


Re: [NTG-context] How to group list of figures and list of tables by chapter?

2022-03-30 Thread Duncan Hothersall via ntg-context
You could try using \writebetweenlist hooked into \setuphead[chapter]?
Something like (untested):

\setuphead[chapter][before={\writebetweenlist[figure][location=here]{\blank}}]

(Sorry, can't currently test this.)

Duncan

On Thu, 31 Mar 2022 at 06:31, Werner Schmidt via ntg-context <
ntg-context@ntg.nl> wrote:

> Hi,
>
> How can I set up \placelistoffigures and \placelistoftables that figures
> and tables are grouped by chapter, i.e. separated by a blank line between
> chapters (see example below)?
>
> Thanks in advance for your help!
>
> Best Werner
>
>
> (Default:)
> Figures
>
> 1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2
> 2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
> 2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3
> 3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
> 3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
> 3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4
>
> (Wanted:)
> Figures
>
> 1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2
>
> 2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
> 2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3
>
> 3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
> 3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
> 3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4
>
> ___
> 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
>
> ___
>
___
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
___


[NTG-context] How to group list of figures and list of tables by chapter?

2022-03-30 Thread Werner Schmidt via ntg-context
Hi,

How can I set up \placelistoffigures and \placelistoftables that figures and 
tables are grouped by chapter, i.e. separated by a blank line between chapters 
(see example below)?

Thanks in advance for your help!

Best Werner


(Default:)
Figures

1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2
2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3
3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4

(Wanted:)
Figures

1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2

2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3

3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4
___
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
___