[NTG-context] beta (itemize fit-option)

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Mar 27 08:06:35 CEST 2011


Am 26.03.2011 um 20:24 schrieb Andreas Harder:

> Hi all,
> 
> the fit-option in itemize-environments seem to be broken. Can someone confirm this?

strc-itm.mkiv (wrong order of arguments for \simplealignedbox):

\def\dolistitem % evt aantal items opslaan per niveau, scheelt zoeken
  {\ifconditional\textlistitem
   ...
   \ifconditional\fittinglistitems
     \ifdim\wd\itemgroupitembox>\getitemparameter\currentitemlevel\c!maxwidth sp\relax
       \xsetitemparameter\currentitemlevel\c!maxwidth{\number\wd\itemgroupitembox}%
     \fi
     \ifdim\currentitemmaxwidth>\zeropoint
       \setbox\itemgroupitembox\simplealignedbox
-        {\getitemparameter\currentitemlevel\c!itemalign}
-        {\dimexpr\currentitemmaxwidth+\getitemparameter\currentitemlevel\c!distance\relax}
+        {\dimexpr\currentitemmaxwidth+\getitemparameter\currentitemlevel\c!distance\relax}
+        {\getitemparameter\currentitemlevel\c!itemalign}
         {\box\itemgroupitembox\hskip\getitemparameter\currentitemlevel\c!distance}%
     \fi
   \else\ifdim\itemgroupaskedwidth>\zeropoint
     \doifsomething{\getitemparameter\currentitemlevel\c!itemalign}
       {\setbox\itemgroupitembox\simplealignedbox
-         {\getitemparameter\currentitemlevel\c!itemalign}
-         {\dimexpr\itemgroupaskedwidth+\getitemparameter\currentitemlevel\c!distance\relax}
+         {\dimexpr\itemgroupaskedwidth+\getitemparameter\currentitemlevel\c!distance\relax}
+         {\getitemparameter\currentitemlevel\c!itemalign}
          {\box\itemgroupitembox\hskip\getitemparameter\currentitemlevel\c!distance}}%
   \fi\fi
   ...
   \ignorespaces}

Wolfgang



More information about the ntg-context mailing list