ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Counter resetting
@ 2013-11-05 12:22 Géry Ogam
  0 siblings, 0 replies; 4+ messages in thread
From: Géry Ogam @ 2013-11-05 12:22 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 367 bytes --]

> You can use “way=byhead” to reset the counter with each section.
>
> Wolfgang

It does not work (with ConTeXt ver: 2012.05.30):


\defineenumeration[cool][text=Cool, way=byhead]

\starttext

\section{Cat}
\subsection{Cat}

\cool{}
\cool{}

\subsection{Cat}

\cool{}
\cool{}

\section{Cat}

\cool{}
\cool{}

Hello world!

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 845 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Counter resetting
@ 2013-11-05 21:32 Géry Ogam
  0 siblings, 0 replies; 4+ messages in thread
From: Géry Ogam @ 2013-11-05 21:32 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 140 bytes --]

> It does not work (with ConTeXt ver: 2012.05.30):

Finally it works with the last stable version of ConTeXt. Thank you very
much Wolfgang.

[-- Attachment #1.2: Type: text/html, Size: 386 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Counter resetting
  2013-11-05  0:41 Géry Ogam
@ 2013-11-05  7:19 ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2013-11-05  7:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 348 bytes --]


Am 05.11.2013 um 01:41 schrieb Géry Ogam <maggyero@gmail.com>:

> Hello,
> 
> 
> How to reset a counter bysection and bysubsection at the same time? The following example does not work. Hans, could you had the support of lists for the 'way' argument please?

You can use “way=byhead” to reset the counter with each section.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 999 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Counter resetting
@ 2013-11-05  0:41 Géry Ogam
  2013-11-05  7:19 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Géry Ogam @ 2013-11-05  0:41 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 416 bytes --]

Hello,


How to reset a counter bysection and bysubsection at the same time? The
following example does not work. Hans, could you had the support of lists
for the 'way' argument please?

E.g.:

\defineenumeration[cool][text=Cool, way={bysection, bysubsection}]

\starttext

\section{Cat}
\subsection{Cat}

\cool{}
\cool{}

\subsection{Cat}

\cool{}
\cool{}

\section{Cat}

\cool{}
\cool{}

\stoptext


Best regards.

[-- Attachment #1.2: Type: text/html, Size: 1293 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-05 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-05 12:22 Counter resetting Géry Ogam
  -- strict thread matches above, loose matches on Subject: below --
2013-11-05 21:32 Géry Ogam
2013-11-05  0:41 Géry Ogam
2013-11-05  7:19 ` Wolfgang Schuster

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