ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Formula numbering
Date: Tue, 08 Sep 2015 14:30:39 +0200	[thread overview]
Message-ID: <55EED4EF.9090104@gmail.com> (raw)
In-Reply-To: <CAGbDsP1k_TBD=Lrz=xjHasC_GzbZL+3cpMsEKfbewfWfBaxPLg@mail.gmail.com>


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

      reply	other threads:[~2015-09-08 12:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-08 11:40 Mari Voipio
2015-09-08 12:30 ` Wolfgang Schuster [this message]

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=55EED4EF.9090104@gmail.com \
    --to=schuster.wolfgang@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).