ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: plink <plink@veribox.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: incrementnumber vs. prefixsegments
Date: Tue, 06 Nov 2012 03:56:56 +0100	[thread overview]
Message-ID: <50987C78.5020401@veribox.net> (raw)

Hi,

i'm trying to combine two features that somehow don't fit together:

1. figure numbering and referring using a chapter.fignr scheme.
For this, a setup with

\setupcaption[figure][prefix=yes,way=bychapter,prefixsegments=chapter]

works fine, as long as i don't have

2. untitled entries below chapter (aka subject or subsubject), that also
have to occur in the table of contents. For this, e.g. using

\setuphead[subject][incrementnumber=list]
\definecombinedlist[content][title,chapter,section,subject]

does the trick, but then the figure number prefix gets eaten up at
figures in subjects. I'd be glad if anybody could give me a hint on how
to solve this.

ConTeXt  ver: 2012.10.30 21:13 MKIV

Below a maximin example. Commenting out the \setuphead line gives back
the prefix, but then there is no more subject in the toc, as to be expected:

\setuphead[chapter][page=no,continue=yes]

\setupcaption[figure][
    prefix=yes,
    way=bychapter,
    prefixsegments=chapter]

\setuphead[subject][incrementnumber=list]

\definecombinedlist[content][title,chapter,section,subject]

\starttext
\placecontent

\chapter{Chapter}

\section{Section Een}

\placefigure[here][fig:a]{figure a}{\externalfigure[cow.pdf][width=1cm]}

Figure \in[fig:a] = 1.1\crlf
Figure \in[fig:b] = 1.2?\crlf
Figure \in[fig:c] = 1.3\crlf

\subject{Subject}

\placefigure[here][fig:b]{figure b}{\externalfigure[cow.pdf][width=1cm]}

Figure \in[fig:a] = 1.1\crlf
Figure \in[fig:b] = 1.2?\crlf
Figure \in[fig:c] = 1.3\crlf

\section{Section Twee}

\placefigure[here][fig:c]{figure c}{\externalfigure[cow.pdf][width=1cm]}

Figure \in[fig:a] = 1.1\crlf
Figure \in[fig:b] = 1.2?\crlf
Figure \in[fig:c] = 1.3\crlf

\stoptext
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2012-11-06  2:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-06  2:56 plink [this message]
2012-11-21 12:38 ` Sietse Brouwer

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=50987C78.5020401@veribox.net \
    --to=plink@veribox.net \
    --cc=ntg-context@ntg.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).