ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Formulas include chapter number
@ 2012-09-17  8:35 Marco Patzer
  2012-09-17  9:07 ` Sietse Brouwer
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Patzer @ 2012-09-17  8:35 UTC (permalink / raw)
  To: context

Hi,

the last beta includes the chapter number in formulas, former betas
didn't. Example:

\starttext
\startchapter [title=Foo]
  \startplaceformula
    \startformula
      E=mc^2
    \stopformula
  \stopplaceformula
\stopchapter
\stoptext

∙ Is this intended?
∙ How to remove the chapter number from the formula?


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Formulas include chapter number
  2012-09-17  8:35 Formulas include chapter number Marco Patzer
@ 2012-09-17  9:07 ` Sietse Brouwer
  2012-09-17  9:51   ` Marco Patzer
  0 siblings, 1 reply; 3+ messages in thread
From: Sietse Brouwer @ 2012-09-17  9:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

Hi Marco,

It's a bug, I think.
The keys that control this are way and prefixsegments:
\setupformulas[way=bychapter, prefixsegments=chapter]

way=bychapter means 'resume numbering at each chapter'
prefixsegments=chapter means 'precede each formula number with the
chapter number': chapter.formula

Right now, as soon as I set 'prefixsegments' to 'section' or 'chapter'
or a number, the prefix segments disappear. Ditto when I set 'way' to
anything. This suggests that it is a bug. Is it indeed, Hans? I've
attached a test file for you.

You can use \setupformulas[prefixsegments=] to solve your problem if
you never want prefixes; that also specifies the correct behaviour
once the bug is fixed.

Cheers,
Sietse

[-- Attachment #2: test.tex --]
[-- Type: application/x-tex, Size: 1289 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Formulas include chapter number
  2012-09-17  9:07 ` Sietse Brouwer
@ 2012-09-17  9:51   ` Marco Patzer
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Patzer @ 2012-09-17  9:51 UTC (permalink / raw)
  To: ntg-context

2012-09-17 Sietse Brouwer <sbbrouwer@gmail.com>:

Hi Sietse,

> It's a bug, I think.
> The keys that control this are way and prefixsegments:
> \setupformulas[way=bychapter, prefixsegments=chapter]
> 
> way=bychapter means 'resume numbering at each chapter'
> prefixsegments=chapter means 'precede each formula number with the
> chapter number': chapter.formula
> 
> Right now, as soon as I set 'prefixsegments' to 'section' or 'chapter'
> or a number, the prefix segments disappear. Ditto when I set 'way' to
> anything. This suggests that it is a bug. Is it indeed, Hans? I've
> attached a test file for you.
> 
> You can use \setupformulas[prefixsegments=] to solve your problem if

Thanks, that fixed it.


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-17  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-17  8:35 Formulas include chapter number Marco Patzer
2012-09-17  9:07 ` Sietse Brouwer
2012-09-17  9:51   ` Marco Patzer

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).