ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Subject: Re: Numbering
Date: Mon, 10 Jul 2006 12:10:40 -0700	[thread overview]
Message-ID: <688BF549-6771-47E1-B8B2-C666C583CB69@cox.net> (raw)
In-Reply-To: <44B2A0D6.9030409@wxs.nl>

OK,

Now, how can we get

\placeformula
\startformula
  f(x)=x^2
\stopformula

To use the same number scheme.

On Jul 10, 2006, at 11:47 AM, Hans Hagen wrote:

> David Arnold wrote:
>> All,
>>
>> Let's say I have some enumerations that are numbered, for
>> definitions, examples, theorems, etc. Let's say I want everything in
>> a section numbered consecutively, except figures. So, numbering would
>> proceed like this:
>>
>> Definition 1.1
>>
>> Where the first number is the section number.
>>
>> Now, by "consecutive," I mean:
>>
>> Definition 1.1
>>
>> f(x)=3x+2  (1.2)
>>
>> Example 1.3
>>
>> Definition 1.4
>>
>> Definition 1.5
>>
>> f(x)=x^2  (1.6)
>>
>> Figure 1
>>
>> Example 1.7
>>
>> Example 1.8
>>
>> Definition 1.9
>>
>> Figure 2
>>
>> etc.
>>
>> Hope this give the right idea.
>>
>> Question: What would be the "Context Way" to go about this?
>>
> \defineenumeration
>   [remark]
>   [location=serried,
>    width=broad,
>    text=Remark,
>    headstyle=bold,
>    inbetween=\blank,
>    before=\blank,
>    after=\blank,
>    way=bysection]
>
> \defineenumeration
>   [definition]
>   [remark]
>   [text=Definition]
>
> \starttext
>     \startremark
>        Foo
>     \stopremark
>     \startdefinition
>        Foo
>     \stopdefinition
>     \startremark
>        Foo
>     \stopremark
>     \startdefinition
>        Foo
>     \stopdefinition
> \stoptext
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2006-07-10 19:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-07  3:45 Numbering David Arnold
2006-07-07  8:55 ` Numbering Ulf Martin
2006-07-07 21:00 ` Numbering Mojca Miklavec
2006-07-10 18:49   ` Numbering Hans Hagen
2006-07-10 18:47 ` Numbering Hans Hagen
2006-07-10 19:10   ` David Arnold [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-10 10:35 Numbering techw
2004-06-21 14:14 ` Numbering Hans Hagen

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=688BF549-6771-47E1-B8B2-C666C583CB69@cox.net \
    --to=dwarnold45@cox.net \
    --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).