ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sietse Brouwer <sbbrouwer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Include chapter number in figure numbering
Date: Tue, 4 Sep 2012 01:01:21 +0200	[thread overview]
Message-ID: <CAF=dkzyDT663crYRX2xWGNSJqOsKfbn1zZWB7S3Co+nau3pURQ@mail.gmail.com> (raw)
In-Reply-To: <20120903221451.47f55f88@homerow>

Marco Patzer wrote:
> how do I include the chapter number in the figure numbering?

Untested:
\setupcaptions[prefixsegment=chapter]
or
\setupcaption[figure][prefixsegment=chapter]
should both work. (The former should affect table captions, too.)

Slightly more at http://wiki.contextgarden.net/Command/setupcaptions
Which is not the first place one would look, admittedly, although it's
logical once you realize it. This requires some crosslinks from some
pages describing \placefigure-related things, I think.

Cheers,
Sietse

>
> The following example used to produce (as of November 2011) “Figure 1.1”.
> A current beta yields merely “Figure 1”.
>
> \starttext
>   \startchapter [title=Foo]
>     \startplacefigure [title=Bar]
>     \stopplacefigure
>   \stopchapter
> \stoptext
>
>
> Marco
>
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

  reply	other threads:[~2012-09-03 23:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-03 20:14 Marco Patzer
2012-09-03 23:01 ` Sietse Brouwer [this message]
2012-09-04  6:55   ` Marco Patzer
2012-09-04  8:00     ` Sietse Brouwer
2012-09-04 11:23       ` Rogers, Michael K
2012-09-04 11:59         ` Marco Patzer
     [not found] <mailman.358.1346748369.14247.ntg-context@ntg.nl>
2012-09-04 12:11 ` Robert Blackstone

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=dkzyDT663crYRX2xWGNSJqOsKfbn1zZWB7S3Co+nau3pURQ@mail.gmail.com' \
    --to=sbbrouwer@gmail.com \
    --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).