From: Sietse Brouwer <sbbrouwer@gmail.com>
To: plink@veribox.net, mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: incrementnumber vs. prefixsegments
Date: Wed, 21 Nov 2012 13:38:47 +0100 [thread overview]
Message-ID: <CAF=dkzzhOsfGS7TSefbU0dGGFtmrdPMjoYiXj8eUj4YSnpQjkw@mail.gmail.com> (raw)
In-Reply-To: <50987C78.5020401@veribox.net>
On Tue, Nov 6, 2012 at 3:56 AM, plink <plink@veribox.net> wrote:
> i'm trying to combine two features that somehow don't fit together:
> 1. figure numbering and referring using a chapter.fignr scheme.
> 2. untitled entries below chapter (aka subject or subsubject), that also
> have to occur in the table of contents.
Did you manage to sort this out yet? If not, consider this a *bump*.
I'm afraid I haven't quite managed to work it out myself.
--Sietse
On Tue, Nov 6, 2012 at 3:56 AM, plink <plink@veribox.net> wrote:
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2012-11-21 12:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-06 2:56 plink
2012-11-21 12:38 ` Sietse Brouwer [this message]
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='CAF=dkzzhOsfGS7TSefbU0dGGFtmrdPMjoYiXj8eUj4YSnpQjkw@mail.gmail.com' \
--to=sbbrouwer@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=plink@veribox.net \
/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).