ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Referencing in Project Structure
@ 2005-11-26  0:30 David Arnold
  2005-11-26  8:40 ` Nikolai Weibull
  0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 2005-11-26  0:30 UTC (permalink / raw)


All,

I have:

project book in book.tex
environment bookenv book.env.tex
product chapter1 in chapter1.tex
component section1 in section1.tex
component section1 in section2.tex
component section1 in section3.tex

In each section, I would like numbering of theorems, definitions,  
examples, equations, etc, to be consecutive and include the section  
number as a prefix. For example, if a theorem happens to appear  
first, then number it 1.1, the next three equations (1.2), (1.3), and  
(1.4), the next two examples 1.5 and 1.6, the next two equations  
(1.7) and (1.8), the next definition 1.9, the next theorem 1.10, the  
next three equations (1.11), (1.12), and (1.13), the next example  
1.14, etc.

Then this numbering scheme is reset in the next section. So, if the  
first thing to appear is a theorem, then it is numbered 2.1, the next  
definition 2.2, the next three equations (2.3), (2.4), and (2.5), and  
so on.

How do I set this up in bookenv?

David

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

* Re: Referencing in Project Structure
  2005-11-26  0:30 Referencing in Project Structure David Arnold
@ 2005-11-26  8:40 ` Nikolai Weibull
  0 siblings, 0 replies; 2+ messages in thread
From: Nikolai Weibull @ 2005-11-26  8:40 UTC (permalink / raw)


David Arnold wrote:

> In each section, I would like numbering of theorems, definitions,  
> examples, equations, etc, to be consecutive and include the section  
> number as a prefix. For example, if a theorem happens to appear  
> first, then number it 1.1, the next three equations (1.2), (1.3), and  
> (1.4), the next two examples 1.5 and 1.6, the next two equations  
> (1.7) and (1.8), the next definition 1.9, the next theorem 1.10, the  
> next three equations (1.11), (1.12), and (1.13), the next example  
> 1.14, etc.

> How do I set this up in bookenv?

By reading cont-enp.pdf?  There's a lot of information in there and it
has a pretty good index.

Use the way=x setting, as in:

\setupformulas[way=bychapter]

(or way=bysection if that's really how you want to number it).

        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

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

end of thread, other threads:[~2005-11-26  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26  0:30 Referencing in Project Structure David Arnold
2005-11-26  8:40 ` Nikolai Weibull

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