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
___________________________________________________________________________________