ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: formula numbering in unnumbered sections
Date: Mon, 9 May 2011 16:53:15 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.01.1105091649260.27148@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <BANLkTik8HNtJO6mVnTXV=gDEPue_bJXx_A@mail.gmail.com>

On Wed, 4 May 2011, Julian Becker wrote:

> I came across the following problem recently: In my document I want chapters
> and sections to be numbered, but not subsections, subsubsections etc.
> Then, additionally I want my formulae to be numbered by chapter and section,
> but not subsection.
>
> In the following example the first equation gets numbered correctly as
> (1.1), (1.2) and (3) in the first chapter, and as (2.1), (2.2) and (3) in
> the second chapter respectively, which is not what I wanted. I'd rather have
> the formulae numbered as   (1.1), (1.2) and (1.3) in the first chapter, and
> as (2.1), (2.2) and (2.3).

The current behavior looks like a bug to me.

> Anybody has an idea how to accomplish this?

Don't use subsections with number=no. Rather use subsubject.

\setupformulas[way=bychapter]
\starttext
\chapter{Wake up}
\placeformula
\startformula a^2+b^2=c^2
\stopformula
\section{Make Coffee}
\placeformula
\startformula c^2+d^2=e^2
\stopformula
\subsubject{Now waking up for real}
\placeformula
\startformula a^2+b^2=c^2
\stopformula
\chapter{Wake up again}
\placeformula
\startformula a^2+b^2=c^2
\stopformula
\section{Make Coffee again}
\placeformula
\startformula c^2+d^2=e^2
\stopformula
\subsubject{Now waking up for real}
\placeformula
\startformula a^2+b^2=c^2
\stopformula

\stoptext


Aditya
___________________________________________________________________________________
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:[~2011-05-09 20:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-04 17:55 Julian Becker
2011-05-09 20:53 ` Aditya Mahajan [this message]
2011-05-10  8:19   ` Julian Becker

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=alpine.LNX.2.01.1105091649260.27148@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).