On Sun, Jan 13, 2008 at 11:41 PM, Aditya Mahajan
Hi Hans,
I have always found the space at the beginning of each item in \startitemize[text] to be too large. Currently, this is hard coded to be \emwidth plus \intertwordstretch minus \interwordshrink (line 1132 of core-itm.tex with the comment "new per 2006/10/20"). I always end of copying the definition of complexdoitemgroupitem to my private modules and changing the emwidth in the definition to 0.5\emwidth. Can you please keep this key to be configurable with a key (textinbetween)?
BTW, any particular reason not to simply say \removeunwantedspaces\space\ignorespaces instead of \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax \stopitemgroup uses just the first variant.
Thanks, Aditya
Hi Aditya, what do you about the following solution, the space between each item is configurable with the "space" key, the fourth parameter \dostartitemgroup gobbles we get from \startitemize if we use two parameters. \unprotect \def\complexdoitemgroupitem[#1]% {\ifconditional\textlistitem % begin of item \else \par \fi % \ignorespaces \ifconditional\concatnextitem % new, concat \doitembreak\nobreak % new, concat \fi % new, concat \doadvanceitem \ifcase\itemcolumndepth \ifnum\noflistelements>0\relax % wrong, but why was this here in the first place, probably some % mistaken change when cleaning up: \doitembreak\nobreak \fi\fi \ifconditional\firstlistitem \setfalse\firstlistitem \begingroup \ifcase\currentitemlevel \or % 1 \ifcase\itemcolumndepth \ifconditional\introlistitem\doitembreak\nobreak\fi \itembeforecommand % \getitemparameter\currentitemlevel\c!before \ifconditional\introlistitem\doitembreak\nobreak\fi \fi \else % 2 en hoger \ifconditional\paragraphlistitem \else \let\previtemlevel\currentitemlevel \decrement\previtemlevel \ifcase\autoitemgroupspacing\relax % nieuw \itembeforecommand \or \doifelsenothing{\itembeforecommand} {\itembeforecommand} {\getitemparameter\previtemlevel\c!inbetween}% \else \getitemparameter\previtemlevel\c!inbetween % == itemlevel-1 \fi \fi \fi \else \ifconditional\textlistitem % was bugged: \inlinelistitem \removeunwantedspaces % \removeunwantedspaces\hskip\interwordspace\!!plus\emwidth\relax % new per 2006/10/20 % \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax % new per 2006/10/20 % begin wolf \doifsomethingelse{\getitemparameter\currentitemlevel\c!space} {\hskip\getitemparameter\currentitemlevel\c!space\relax} {\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax}% % end wolf \else \iteminbetweencommand \fi \fi \ifconditional\concatnextitem % new, concat \vskip-\lastskip % new, concat \vskip-\lineheight % new, concat \nobreak % new, concat \fi % new, concat % \ignorespaces \dolistitem \relax \ifconditional\packlistitem \setupwhitespace[\v!none]% \fi \getitemparameter\currentitemlevel\c!inner \marsymbol \let\marsymbol\relax \doifsomething{#1} {\doifnot\itemreference\unknownitemreference {\bgroup \protectconversion \rawreference\s!lst{#1}\itemreference \egroup}}% \strut % added 11-08-99 \setfalse\concatnextitem % new, concat \nobreak % else problems with intext items \hskip\itemsignal % new, concat \getitemparameter\currentitemlevel\c!command} % \defaultitemcommand \def\startitemgroup {\doquadrupleempty\dostartitemgroup} \def\dostartitemgroup[#1][#2][#3][]% {\bgroup \ifnum\currentitemlevel=\zerocount \def\currentitemgroup{#1}% no nested mixing of itemgroups \fi \ifthirdargument \dodostartitemgroup[#2][#3]% \else \doifassignmentelse{#2} {\dodostartitemgroup[][#2]} {\dodostartitemgroup[#2][]}% \fi} \setupitemgroups [\c!space=] \protect \showframe \starttext before \startitemize[text][space=\interwordspace] \item text \item text \item text \stopitemize after \stoptext Wolfgang