ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Formula numbering
@ 2015-09-08 11:40 Mari Voipio
  2015-09-08 12:30 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Mari Voipio @ 2015-09-08 11:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello!

I recently had to reformat a document that contains mathematical
notation and I was surprised how easy it was once I got the hang of
it. There's only one tiny problem:

I have one equation inserted with \placeformula. Currently this
formula gets numbered as equation 2.1 as it is in chapter two. I would
prefer it to be called just (1) instead of (2.1).

The display math page at <http://wiki.contextgarden.net/Math/Display>
says to use \setupnumber[formula][way=bysection] to get formulas
numbered by section, but there are no hints on numbering the formulas
with a running number independent of the section numbering.

What am I missing?


Mari
___________________________________________________________________________________
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] 2+ messages in thread

* Re: Formula numbering
  2015-09-08 11:40 Formula numbering Mari Voipio
@ 2015-09-08 12:30 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2015-09-08 12:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1107 bytes --]

> Mari Voipio <mailto:mari.voipio@iki.fi>
> 8. September 2015 13:40
> Hello!
>
> I recently had to reformat a document that contains mathematical
> notation and I was surprised how easy it was once I got the hang of
> it. There's only one tiny problem:
>
> I have one equation inserted with \placeformula. Currently this
> formula gets numbered as equation 2.1 as it is in chapter two. I would
> prefer it to be called just (1) instead of (2.1).
>
> The display math page at <http://wiki.contextgarden.net/Math/Display>
> says to use \setupnumber[formula][way=bysection] to get formulas
> numbered by section, but there are no hints on numbering the formulas
> with a running number independent of the section numbering.
You can disable the chapter, section etc. number with the "prefix=no" 
setting
but you should also add "way=bytext" because the prefix setting won't stop
context from resetting the counter with each new chapter, or section.

%% begin example
\setupformula[prefix=no]

\starttext

\chapter{Chapter}

\placeformula
\startformula
1 + 2 = 3
\stopformula

\stoptext
%% end example

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2293 bytes --]

[-- Attachment #2: 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] 2+ messages in thread

end of thread, other threads:[~2015-09-08 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-08 11:40 Formula numbering Mari Voipio
2015-09-08 12:30 ` Wolfgang Schuster

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