ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Subject: Re: Common counter
Date: Mon, 10 Jul 2006 20:36:50 -0700	[thread overview]
Message-ID: <0A991A71-47A4-4407-8C9A-EBD15EA5FBA2@cox.net> (raw)
In-Reply-To: <44B29FC3.4000208@wxs.nl>

This is excellent. Now, how can I include this

\placeformula[eq:nine]
\startformula
f(x)=x^2
\stopformula

with the same common counter as remark and definition below?



> 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
> -----------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2006-07-11  3:36 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
2006-07-11  3:36   ` David Arnold [this message]
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=0A991A71-47A4-4407-8C9A-EBD15EA5FBA2@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).