On 5/24/2017 6:28 PM, Thomas Floeren wrote:
Hi,


I used to use the “command=” parameter when setting up itemize. Now I noticed 
that it introduces a spurious horizontal whitespace after the item symbol when 
the item is of type “\sym{}”.

I also noticed that the problem goes away if I use “inner=” instead of 
“command=”.

command is applied to the text, try command=\WORD and after \sym is a space so it depends on what command does with it

Example:

\setuppapersize [A6]

\starttext
\start
\setupitemize [each][command={\setupwhitespace[none]}]
With \type{\command=}
\startitemize
\item \dorecurse{20}{bla }
\sym{Y} \dorecurse{20}{bla }
\stopitemize
\stop

\setupitemize [each][inner={\setupwhitespace[none]}]
With \type{\inner=}
\startitemize
\item \dorecurse{20}{bla }
\sym{Y} \dorecurse{20}{bla }
\stopitemize

\stoptext


This is with ConTeXt 2017.05.15 21:48. With an older ConTeXt, for example 
2015.01.13 15:54, “inner=” and “command=” deliver identical, correct results.

So, I’m asking, has “command=” been deprecated or is it just a bug?

Or was I using it the wrong way, and “inner=” is the only correct parameter in 
the example above?
\setupitemize [each][nowhite]


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to