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

2011-03-27 Thread Wolfgang Schuster

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

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2011-03-27 Thread Hans Hagen

On 27-3-2011 8:06, Wolfgang Schuster wrote:


\def\dolistitem % evt aantal items opslaan per niveau, scheelt zoeken


thanks, fixed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2011-03-26 Thread Andreas Harder
Hi all,

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

\starttext
  \startitemize[R,fit] % ,fit - error
\dorecurse{8}{\item test}
  \stopitemize
\stoptext

Greeting
Andreas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___