ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* formula numbering in unnumbered sections
@ 2011-05-04 17:55 Julian Becker
  2011-05-09 20:53 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Julian Becker @ 2011-05-04 17:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

Anybody has an idea how to accomplish this?

Thanks,
Julian

-----------------

\setuphead[subsection][number=no]
\setupnumber[formula][key=chapter]
\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
\subsection{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
\subsection{Now waking up for real}
\placeformula
\startformula a^2+b^2=c^2
\stopformula

\stoptext

-------------


"Keep thy heart with all diligence; for it is the wellspring of life."

[-- Attachment #1.2: Type: text/html, Size: 1620 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] 3+ messages in thread

* Re: formula numbering in unnumbered sections
  2011-05-04 17:55 formula numbering in unnumbered sections Julian Becker
@ 2011-05-09 20:53 ` Aditya Mahajan
  2011-05-10  8:19   ` Julian Becker
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2011-05-09 20:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: formula numbering in unnumbered sections
  2011-05-09 20:53 ` Aditya Mahajan
@ 2011-05-10  8:19   ` Julian Becker
  0 siblings, 0 replies; 3+ messages in thread
From: Julian Becker @ 2011-05-10  8:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Thank you alot Aditya! Somehow I didn't even think about using subsubjects
instead of subsections. I guess it was too obvious a solution.

best regards,
Julian

2011/5/9 Aditya Mahajan <adityam@umich.edu>

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



-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_beck16@uni-muenster.de

"Keep thy heart with all diligence; for it is the wellspring of life."

[-- Attachment #1.2: Type: text/html, Size: 3699 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] 3+ messages in thread

end of thread, other threads:[~2011-05-10  8:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-04 17:55 formula numbering in unnumbered sections Julian Becker
2011-05-09 20:53 ` Aditya Mahajan
2011-05-10  8:19   ` Julian Becker

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