From: Peter Schorsch <tralalas@freenet.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Did usage of \expanded changed?
Date: Fri, 11 May 2012 16:59:13 +0200 [thread overview]
Message-ID: <20120511165913.271a7bfa@freenet.de> (raw)
In-Reply-To: <4FAD01B1.9080700@uni-bonn.de>
> See this thread:
> http://archive.contextgarden.net/message/20120402.144627.e46a9f9f.en.html
>
> and try to construct a "minimal example" next time.
I converted my number to counter and shrinked my example - but the
problem still occurs:
Instead of the counter value when I set the reference I get always the
latest value:
Should be 1: 3
Should be 2: 3
Should be 3: 3
instead of
Should be 1: 1
Should be 2: 2
Should be 3: 3
---8<------shrinked example--------------
\unprotect
\definecounter[ParagraphCounter][way=bysection,prefix=no]
\def\markParagraph[#1]%
{\getrawparameters[Paragraph][mark=,#1]%
\incrementcounter[ParagraphCounter]%
\expanded{\textreference[\Paragraphmark]{\convertedcounter[ParagraphCounter]}}}
\protect
\starttext
\markParagraph[mark=aaa]
\input tufte
\markParagraph[mark=bbb]
\input tufte
\markParagraph[mark=ccc]
Should be 1: \in[aaa]
Should be 2: \in[bbb]
Should be 3: \in[ccc]
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-05-11 14:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-11 11:28 Peter Schorsch
2012-05-11 12:10 ` Thomas A. Schmitz
2012-05-11 14:59 ` Peter Schorsch [this message]
2012-05-11 15:40 ` Hans Hagen
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=20120511165913.271a7bfa@freenet.de \
--to=tralalas@freenet.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).