ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Common counter
@ 2006-07-07  8:06 David Arnold
  2006-07-10 18:43 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: David Arnold @ 2006-07-07  8:06 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.400.1152605299.1824.ntg-context@ntg.nl>]
[parent not found: <mailman.1.1157364002.16930.ntg-context@ntg.nl>]

end of thread, other threads:[~2006-09-05 10:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-07  8:06 Common counter David Arnold
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

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