From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Common counter
Date: Mon, 10 Jul 2006 20:43:15 +0200 [thread overview]
Message-ID: <44B29FC3.4000208@wxs.nl> (raw)
In-Reply-To: <EA7EDA1D-79FD-47F2-A7A8-5E3942EF1D3F@cox.net>
David Arnold wrote:
> All,
>
> How do you get two enumerations to use a common counter? This didn't
> work.
>
just clone the definition one:
\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
\stoptext
> \setupoutput[pdf]
>
> \newcounter\NonFigCtr
> \define\nctr{\doglobal\increment\NonFigCtr \color[red]{[\NonFigCtr]}}
>
>
> \defineenumeration
> [remark]
> [location=serried,
> width=broad,
> text=Remark,
> headstyle=bold,
> inbetween=\blank,
> before=\blank,
> after=\blank,
> way=bysection,
> number=nctr]
>
> \defineenumeration
> [definition]
> [location=serried,
> width=broad,
> text=Definition,
> headstyle=bold,
> inbetween=\blank,
> before=\blank,
> after=\blank,
> way=bysection,
> number=nctr]
>
> \starttext
>
> \startremark
> Foo
> \stopremark
>
> \startdefinition
> Foo
> \stopdefinition
>
>
> \stoptext
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
-----------------------------------------------------------------
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
-----------------------------------------------------------------
next prev parent reply other threads:[~2006-07-10 18:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-07 8:06 David Arnold
2006-07-10 18:43 ` Hans Hagen [this message]
2006-07-11 3:36 ` David Arnold
2006-07-11 7:55 ` Hans Hagen
[not found] <mailman.400.1152605299.1824.ntg-context@ntg.nl>
2006-09-03 13:22 ` common counter wwl
[not found] <mailman.1.1157364002.16930.ntg-context@ntg.nl>
2006-09-05 10:09 ` wwl
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=44B29FC3.4000208@wxs.nl \
--to=pragma@wxs.nl \
--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).