From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How can I start wiith 2 in itemize?
Date: Sun, 13 Sep 2009 17:02:24 +0200 [thread overview]
Message-ID: <4AAD0980.1080104@gmx.net> (raw)
In-Reply-To: <4A9FB82E.3020701@gmx.net>
Hi Hans,
this is not fixed yet...
Peter Rolf schrieb:
> Xan schrieb:
>> Hi,
>>
>> I want to start itemize with 2.
>> I put \startitemize[n][start=2] but it does not work.
>>
> third and hopefully last try :D
>
> [strc-itm.mkii]
>
> \def\setitemlevel#1%
> {\ifnum\currentitemlevel>\zerocount
> \settrue\firstlistitem
> %
> % \expanded{\setitemparameter{\currentitemlevel}{\c!start}{1}}% ***
> \doifinset{0}{#1}{\setitemparameter\currentitemlevel\c!start{0}}%
>
> \setcounter{\@@itemcounter\currentitemlevel}{\the\numexpr\getitemparameter\currentitemlevel\c!start-1\relax}%
> ***
> \doifelsenothing{\getitemparameter\currentitemlevel\c!start}
> {\def\currentitemoffset{1}}
>
> {\def\currentitemoffset{\getitemparameter\currentitemlevel\c!start}%
> \letitemparameter\currentitemlevel\c!start\empty}%
> %
> \def\tempnumber
> {\countervalue{\@@itemcounter\currentitemlevel}}%
> \doifelse{\getitemparameter\currentitemlevel\c!placestopper}\v!yes
> {\def\tempsymbol{\getitemparameter\currentitemlevel\c!stopper}}
> {\let\tempsymbol\empty}%
> \fi}
>
>
> I get the correct numbers with the following example.
>
> \starttext
>
> \startitemize[n][start=2]
> \item foo
> \item bar
> \stopitemize
>
>
> \startitemize[n]
> \item foo
> \item bar
> \stopitemize
>
> \stoptext
>
>
>> Strange?
>>
>> Xan.
>> ___________________________________________________________________________________
>>
>> 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
>> ___________________________________________________________________________________
>>
>>
>
> ___________________________________________________________________________________
>
> 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
> ___________________________________________________________________________________
>
>
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2009-09-13 15:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-02 19:56 Xan
2009-09-02 22:28 ` Peter Rolf
2009-09-02 23:07 ` Aditya Mahajan
2009-09-03 12:35 ` Peter Rolf
2009-09-03 15:59 ` Xan
[not found] ` <4A9FF1A5.2040709@gmx.net>
[not found] ` <4A9FFACA.9010503@telefonica.net>
[not found] ` <4A9FFEF9.9040804@gmx.net>
[not found] ` <4AA00840.4060204@telefonica.net>
[not found] ` <4AA00D43.2020004@gmx.net>
[not found] ` <4AA00E06.9050505@telefonica.net>
[not found] ` <4AA01302.5050608@gmx.net>
2009-09-03 19:17 ` Xan
2009-09-13 15:02 ` Peter Rolf [this message]
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=4AAD0980.1080104@gmx.net \
--to=indiego@gmx.net \
--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).