Mari Voipio <mailto:mari.voi...@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
___________________________________________________________________________________
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 via email to