Am 08.09.2011 um 17:26 schrieb Hans Hagen:
On 8-9-2011 10:56, Wolfgang Schuster wrote:
It can be solved with something like this:
thanks for analyzing this
\def\doactualitemnumber {\begingroup
%\c!numberconversionset=,
^^ we can use \c!numberconversionset=itemgroup:\currentitemgroup,
but my solution above doesn’t work with complex itemize constructs.
and then add (someplace) in the define macro:
\definestructureconversionset[itemgroup:#1][\currentitemconversionset][\currentitemsymbol]%
and at the end of the restarter:
\ifx\currentrepeatstart\empty \let\currentitemconversionset\currentitemsymbol \else \edef\currentitemconversionset{\currentitemconversionset,\currentitemsymbol}% \fi
which seems to work (baking a beta now)
Thanks, the numbers are now correct. What’s missing is a fix for the problem Aditya mentioned (missing number for the first level item): \unexpanded\def\actualitemnumber {\ifconditional\repeatlistitem - \ifcase\currentitemlevel\or\else + \ifcase\currentitemlevel\else \doactualitemnumber \fi \else \doactualitemnumber \fi} and \noitem is broken with the changes in MkIV: \def\doitemgroupnoitem - {\doadvanceitem\donolistitem} + {\let\currentitemreference\empty + \doadvanceitem\donolistitem} Wolfgang