ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Subject: Common counter
Date: Fri, 7 Jul 2006 01:06:10 -0700	[thread overview]
Message-ID: <EA7EDA1D-79FD-47F2-A7A8-5E3942EF1D3F@cox.net> (raw)

All,

How do you get two enumerations to use a common counter? This didn't  
work.

\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

             reply	other threads:[~2006-07-07  8:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-07  8:06 David Arnold [this message]
2006-07-10 18:43 ` Hans Hagen
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=EA7EDA1D-79FD-47F2-A7A8-5E3942EF1D3F@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).