From: Carsten Fechtmann <fecht@zarm-technik.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bug or feature? Strange counter behaviour in macro
Date: Sat, 12 Jan 2008 20:45:55 +0100 [thread overview]
Message-ID: <4B09D1CE-D07B-416E-80AC-5E366FCED60A@zarm-technik.de> (raw)
In-Reply-To: <alpine.DEB.0.9999.0801121220420.21905@nqv-yncgbc>
Hi Aditya,
thanks for taking the time to answer this. And yes, I looked at what
ConTeXt has already built in.
On 12.01.2008 at 18:44 wrote Aditya Mahajan:
> I haven't looked at your code below. First check if one the in-built
> stuctural environments of ConTeXt do what you want.
As a matter of fact, I am using the following for all the heavy stuff
(implementing that in LaTeX is/was a REAL pain)
\definesynonyms[Issue][issues][\IssueText][\IssueDate]
\setupsynonyms[Issue][criterium=all]
\Issue[1]{Issue 1:}{Some Date}
\Issue[2]{Issue 2:}{\currentdate}
and if I just put the values in by hand, it works like a champ. Sorted
list and all. ;-D
Took me less than 5 minutes to implement (read: find in the manual).
Just gonna _love_ ConTeXt for that!
Now, with such a nice success (and because I have much more "counter"
stuff on the way)
I was feeling lucky ...
and spent the next 5 hours figuring out / searching on the web / going
over the source
how to have the "number" for each issue placed automatically, every
time a new issue date is set.
Yes, sure, I could just _write_ that in, but then I would have to
check myself,
which number is exactly the one I need, and not have the computer do
it for me.
But, hey where is the fun in that? ;-)
What this all burns down is, that I /really/ would like to understand,
how I can pass a value from a counter as (constant) argument to a self-
defined function. As that seems to be the core of the matter/problem
here.
Any suggestions?
Cheers
Carsten
>
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-01-12 19:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-11 18:13 Carsten Fechtmann
2008-01-12 17:44 ` Aditya Mahajan
2008-01-12 19:45 ` Carsten Fechtmann [this message]
2008-01-12 22:29 ` Aditya Mahajan
2008-01-12 23:52 ` Carsten Fechtmann
2008-01-13 2:40 ` Aditya Mahajan
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=4B09D1CE-D07B-416E-80AC-5E366FCED60A@zarm-technik.de \
--to=fecht@zarm-technik.de \
--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).