From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: labels and new structure code
Date: Sun, 07 Jun 2009 15:04:35 +0200 [thread overview]
Message-ID: <4A2BBAE3.30906@wxs.nl> (raw)
In-Reply-To: <640CA38D-9FC1-4C6A-B81F-C494561FD49B@uni-bonn.de>
Thomas A. Schmitz wrote:
>
> On Jun 7, 2009, at 2:12 PM, Hans Hagen wrote:
>
>> ok, fixed in the beta
>>
>> the problem is that the old code was somewhat crippled as it uses this
>> two step method (determine and usage) due to expansion issues
>>
>> in the current beta mkiv code we can do:
>>
>> \setuphead
>> [section]
>> [after=\setups{section:after},
>> expansion=yes]
>>
>> \startsetups section:after
>> \ifodd\namedheadnumber{section}\relax
>> \resetSlideNumber\incrementSlideNumber
>> \else
>> \incrementSlideNumber
>> \fi
>> \blank
>> \stopsetups
>>
>> btw, you misuse 'command' which in turn has side effects; use after
>> instead
>
> OK, thanks a lot Hans! Have replaced "command" with "after"; now my test
> document compiles cleanly. Two questions though: \nextSlideNumber used
> to simply expand to "2" "3" etc. Now I get "SlideNumber 1.2"
> "SlideNumber 1.3." How can I get the old behavior back? And: I'm doing
> this in xml documents, and here, the counter is not reset. I assume you
> want a new example document :-)
yeah
you need to reset the prefix, like prefix=no ; depends a bit on your
definition
(i need to figure out a proper default scheme for a whole doc which is
kind of tricky since we have more control now)
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2009-06-07 13:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 14:46 Thomas A. Schmitz
2009-06-07 12:12 ` Hans Hagen
2009-06-07 12:51 ` Thomas A. Schmitz
2009-06-07 13:04 ` Hans Hagen [this message]
2009-06-07 20:08 ` Thomas A. Schmitz
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=4A2BBAE3.30906@wxs.nl \
--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).