ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Willi Egger <w.egger@boede.nl>
Subject: How to prefix the list of figures with part number?
Date: Sat, 25 Mar 2023 23:34:10 +0100	[thread overview]
Message-ID: <C8C6B99C-646C-4934-A0C0-3CFCBFB37E1B@boede.nl> (raw)

Hello again,

My project has different parts. Each part contains a whole list of figures. At the beginning of the book I would like to place a list of all figures. Hoever they should be prefixed with the part number. I can not figure out how to achieve this.

May be someone can hint me…

Cheers 

Willi

\setuplist[figures][pageprefixsegments=part:chapter] % Pageprefix? 

\setuphead[part][placehead=yes]	

\starttext
\startpart[title=part one]

\starttitle[title=Contents]
  \placelist[part,chapter][criterium=all]

  \startsubject[title=Figures]	
  	\placelistoffigures[criterium=all]
  \stopsubject

\stoptitle


\startchapter[title=Mychapter]
  \input knuth
  \startsubject[title=Subject will be in TOC]
    \writetolist[chapter]{1}{I am in TOC!}
    \input ward
		 \startplacefigure
		 	[location=middle,
			 title=Cow 1]
			{\externalfigure[cow][width=7cm]}
		\stopplacefigure
		
  \stopsubject 
\stopchapter
\stoppart

\startpart[title=Part two]
 \startchapter[title=Myotherchapter] 
   \startplacefigure
     [location=middle,
      title=Cow 2]
    {\externalfigure[cow][width=7cm]}
  \stopplacefigure
  \stopchapter
\stoppart
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

                 reply	other threads:[~2023-03-25 22:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C8C6B99C-646C-4934-A0C0-3CFCBFB37E1B@boede.nl \
    --to=ntg-context@ntg.nl \
    --cc=w.egger@boede.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).