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

Thu Mar 31 09:51:10 CEST 2022

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 <dh at capdm.com> wrote:
>You could try using \writebetweenlist hooked into \setuphead[chapter]?
>Something like (untested):
>
>
>(Sorry, can't currently test this.)
>
>Duncan
>
>On Thu, 31 Mar 2022 at 06:31, Werner Schmidt via ntg-context <
>ntg-context at 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)?
>>
>>
>> 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
>>
>> ___________________________________________________________________________________