[NTG-context] How to make \placelistoffigures separate figures by chapter
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Wed Sep 20 11:33:12 CEST 2006
On Wed, 20 Sep 2006 08:39:42 +0200
Renaud AUBIN <aubin at nibua-r.org> wrote:
>
> >Can you send a PDF of your file, I have no problems with your example
> >an get the result you wanted.
> >
> >ConTeXt ver: 2006.08.08 21:51 fmt: 2006.9.5 int: english mes: english
> >ConTeXt ver: 2006.09.07 17:50 MK II fmt: 2006.9.8 int: english/english
> >
> >Which ConTeXt version do you use.
> >
> >Wolfgang
> >
> >
> Did you noticed the blank line between 1.3/2.1 and 2.3/3.1 ?
>
> Renaud
No, I didn't looked at the blank lines in your list of figures.
This works for me.
\starttext
\setuphead[chapter][after=\dowritebetweenlist{figure}{\blank[big]}] % the magic
\placelistoffigures[alternative=c,level=all,interaction=all,partnumber=no]
\setupexternalfigures[location={local,global,default}] % not everyone has global figuresearching enabled
\useexternalfigure[testfig][cow][width=.5\textwidth]
\startbuffer
\placefigure[here]{test 1}{\externalfigure[testfig]}
\placefigure[here]{test 2}{\externalfigure[testfig]}
\placefigure[here]{test 3}{\externalfigure[testfig]}
\stopbuffer
\dorecurse{3}{
\chapter{A Chapter}
\placefigure[here]{test 1}{\externalfigure[testfig]}
\placefigure[here]{test 2}{\externalfigure[testfig]}
\placefigure[here]{test 3}{\externalfigure[testfig]}
}
\stoptext
Wolfgang
More information about the ntg-context
mailing list