ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jean Magnan de Bornier <jm.bornier@free.fr>
To: ntg-context@ntg.nl
Subject: Re: A couple of setupcaptions questions
Date: Thu, 04 Aug 2011 08:16:34 +0200	[thread overview]
Message-ID: <87pqkl7lbx.fsf@boldair.bornier.net> (raw)
In-Reply-To: <8739hjm2ho.fsf@boldair.bornier.net> (Jean Magnan de Bornier's message of "Wed, 03 Aug 2011 08:29:55 +0200")

Le 03 août à 08:29:55 Jean Magnan de Bornier <jm.bornier@free.fr> écrit notamment:

| Le 02 août à 16:19:01 Wolfgang Schuster <schuster.wolfgang@googlemail.com> écrit notamment:
>
| | Am 02.08.2011 um 16:10 schrieb Jean Magnan de Bornier:
| >
| | > Hi all
| | > 
| | > I'm trying to setup captions for figures with mkiv. I found this page on the wiki:
| | > 
| | > http://wiki.contextgarden.net/Reference/en/setupnumbering
| | > 
| | > Using both these:
| | > 
| | > \setupcaptions[way=bysection,prefixsegments=section]
| | > \setupformulae[way=bysection,prefixsegments=section] 
| | > 
| | > formulae are numbered as expected but captions are not, the prefix is
| | > lacking.
| >
| | Does it help when you add “prefix=yes” to \setupcaptions?
| >
| | When this doesn’t work you should provide a minimal example.
>
| No; here is where I stand after some more trial and errors:
|  - On my small testfile when adding chapters and sections I get a prefix (section
|  number); however I want the chapter number as prefix, which is the
|  standard practice and I don't see how to do that with mkiv (obviously it
|  is doable...)
|  - On my big real file I have no prefix, I only hope I will find out why by myself...

After lots of checking on my project I came to this, which looks like a
bug:

Project is eg:
..........................
\startproduct Test
 \environment env_test
 \startfrontmatter
 \component bla   
 \stopfrontmatter

 \startbodymatter

 \component test1
 \component test2
\stopbodymatter


\stopproduct
.........................
If files test1.tex and  test2.tex begin with \starttext and end with
\stoptext: \setupcaptions works as expected regarding prefix


If files test1.tex and  test2.tex begin with \startcomponent and end with
\stopcomponent: \setupcaptions does not work as expected regarding prefix
(no prefix at all)

\setupformulae not affected

bye,
-- 
Jean
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2011-08-04  6:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-02 14:10 Jean Magnan de Bornier
2011-08-02 14:19 ` Wolfgang Schuster
2011-08-03  6:29   ` Jean Magnan de Bornier
2011-08-03  7:13     ` Jean Magnan de Bornier
2011-08-04  6:16     ` Jean Magnan de Bornier [this message]
2011-08-04 13:38       ` Wolfgang Schuster
2011-08-04 15:10         ` Jean Magnan de Bornier
2011-08-04 16:14           ` Wolfgang Schuster
2011-08-04 17:17             ` Jean Magnan de Bornier
2011-08-04 17:24               ` Wolfgang Schuster
2011-08-04 17:52                 ` Jean Magnan de Bornier
2011-08-05  8:00               ` Jean Magnan de Bornier
2011-08-05 12:30                 ` Wolfgang Schuster
2011-08-05 13:51                   ` Jean Magnan de Bornier
2011-08-05 15:36                     ` Wolfgang Schuster
2011-08-05 16:51                       ` Jean Magnan de Bornier
2011-08-05 18:16                         ` Wolfgang Schuster

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=87pqkl7lbx.fsf@boldair.bornier.net \
    --to=jm.bornier@free.fr \
    --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).