From: Hans Hagen <pragma@wxs.nl>
Subject: Re: behavior of counter - bug or feature?
Date: Tue, 04 May 2004 17:56:49 +0200 [thread overview]
Message-ID: <6.0.1.1.2.20040504175527.01d3e288@server-1> (raw)
In-Reply-To: <3D80FFB0-9BA8-11D8-A94F-000A95B9ADE2@uni-bonn.de>
At 21:46 01/05/2004, you wrote:
>Hi all,
>
>though I'm not 100 \% certain, I think this behavior came up in the latest
>release of ConTeXt. For my manuscripts for talks, I have defined a nice
>little counter like this
>
>\newcounter\slidecounter
>
>\define\sln{\increment\slidecounter \color[red]{[\slidecounter]} }
>
>which allows me to just type \sln when I want to mark a spot where I want
>to show a new slide, and it will give the number in red, between brackets.
>OK, this has been working for quite a while, but recently, I have observed
>a strange behavior: if I use the command within an itemize-group, it will
>count normally, but after the \stopitemize, the counter will be reset to
>the value before the itemization. I can't swear to it, but I'm reasonably
>certain that this wasn't the case before. Is it possible that something
>was broken, Hans?
>
>Best wishes (especially to our new fellow-citizens)
use \doglobal\increment instead
(also, use names like \Sln so that there will never be conflicts with
existing macros; i wouldnot be surprised if there will be a math function
sln some day)
Hans
next prev parent reply other threads:[~2004-05-04 15:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-20 3:50 Internal documentation of Context modules John Culleton
2004-04-19 22:08 ` Nikolai Weibull
2004-05-01 19:46 ` behavior of counter - bug or feature? Thomas A.Schmitz
2004-05-04 15:56 ` Hans Hagen [this message]
2004-05-06 8:30 ` Thomas A.Schmitz
2004-04-20 8:52 ` Internal documentation of Context modules Tobias Burnus
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=6.0.1.1.2.20040504175527.01d3e288@server-1 \
--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).