[NTG-context] packed list only if items > 5

Hans Hagen j.hagen at xs4all.nl
Fri Nov 15 10:03:34 CET 2019


On 11/14/2019 9:07 PM, Pablo Rodriguez wrote:
> Dear list,
> 
> I have the following sample:
> 
>      \starttext
>      \startitemize[\ifnum\currentnofitems>5 packed\fi]
>      \dorecurse{7}
>          {\startitem\currentitemnumber/\currentnofitems\stopitem}
>      \stopitemize
>      \stoptext
> 
> Is there any way to get a packed list if and only if it contains more
> than a given number of items?

It could be some option (but as there is an underlying changed needed i 
want to discuss it with WS first, as we don't want compatibility 
issues), think of something:

\startitemize[packed][packcriterium=5]
     \dorecurse{7}{\startitem\currentitemnumber/\currentnofitems\stopitem}
\stopitemize



Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list