From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114636 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Hothersall via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: How to group list of figures and list of tables by chapter? Date: Thu, 31 Mar 2022 06:58:47 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1558994820463153177==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1656"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Duncan Hothersall To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 31 07:59:38 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZnqM-0000Gc-0I for gctc-ntg-context-518@m.gmane-mx.org; Thu, 31 Mar 2022 07:59:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EF78B2899C0; Thu, 31 Mar 2022 07:59:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hSFHdXOkIrT3; Thu, 31 Mar 2022 07:59:07 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E2C1928998E; Thu, 31 Mar 2022 07:59:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 046E728998E for ; Thu, 31 Mar 2022 07:59:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rikzkp7omOjP for ; Thu, 31 Mar 2022 07:59:03 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.54; helo=mail-lf1-f54.google.com; envelope-from=dh@capdm.com; receiver= Original-Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D3F512898FA for ; Thu, 31 Mar 2022 07:59:02 +0200 (CEST) Original-Received: by mail-lf1-f54.google.com with SMTP id k21so39575366lfe.4 for ; Wed, 30 Mar 2022 22:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capdm.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iDJYCHsGTFKQVIrhKtcuhqaRkELKWlQY4rFmNS5Gj1c=; b=PDEioG7bAXxcbgkQdjr3FKOb7bvoch3NKXdLaVCpvBJdZxGWUlwTiQduc07+Z/zxmh PbrFzHOyhiz4+VerJ47G5SIXzGRK5iiPHajY37R/TRzYqRzhzlSU+xE0ZmRuPFoXEUT5 77o1pTy2nDbDHboZ7chH+uAFzYyd4KpIyTeSw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iDJYCHsGTFKQVIrhKtcuhqaRkELKWlQY4rFmNS5Gj1c=; b=fv+UjVultk60Mr2x5OF12kD5Viv4Zudke4C/n+FnIImyRPCshxee3Xt/N2HCuBeaZ7 Pvgiwf7PT++ziAgQWJOjMRjUI1XAqVqFQSSelfC1rh+vZ8x+fzlT5nqShBb1XfMAT6iL mkGNMfElzR0gBLPFBm5A/p9K7FBIf3tgmGkNG6t7xDMmDdSygkAqIQC7Gl6f7iwv1fK0 aAEqNWn8EhNp5ol8LPC9zzHTltu7ZhGMDdk+pnrpUe7oPSpH5PipaxsQtkCmC9glNaxQ nc+Z5dhPrOWNkqpONeT3d1OrvmV17FZFR9oieHVde6WAybJGe9pVic5K0NhwsoY13tKn zHeg== X-Gm-Message-State: AOAM531T2+GQbsMqBgtd0dTevIGhwBrHAlnrBjcIricGFlADPNMusy7p yk8M0ytaJbveW4n4jgZuzCzOCgwDK3kYPR1g+2Kzb9GITqtyDA== X-Google-Smtp-Source: ABdhPJxa4x5uMRYvhtshx70PqVvCgWx/IA4oXOlkrADsoLdzW59cPkz/Ha30Sh94o4yjL1ziLFW8rONbXAlTd6eN9H8= X-Received: by 2002:a05:6512:4006:b0:44a:7434:9829 with SMTP id br6-20020a056512400600b0044a74349829mr9500965lfb.661.1648706341697; Wed, 30 Mar 2022 22:59:01 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:114636 Archived-At: --===============1558994820463153177== Content-Type: multipart/alternative; boundary="000000000000d618cf05db7d5b23" --000000000000d618cf05db7d5b23 Content-Type: text/plain; charset="UTF-8" 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 > > ___________________________________________________________________________________ > --000000000000d618cf05db7d5b23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You could try using \writebetweenlist hoo= ked into \setuphead[chapter]? Something like (untested):

\setuphead[chapter][before=3D{\writebetweenlist[figure][location=3Dhere]{\= blank}}]

(Sorry, can't currently test this.)

Duncan

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

How can I set up \placelistoffigures and \placelistoftables that figures an= d tables are grouped by chapter, i.e. separated by a blank line between cha= pters (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 t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________


--000000000000d618cf05db7d5b23-- --===============1558994820463153177== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1558994820463153177==--