On Fri, 18 Apr 2014, Thangalin wrote:
Hi Rik,
The example isn't quite as minimal as it could be... Here is a simplified version demonstrating the problem:
\setuplayout[backspace=4cm]
\define[2]\MarginHead{\inmargin{#1 #2}}
\setuphead[section][ alternative=text, command=\MarginHead, ]
\defineitemgroup[itemz] \setupitemgroup[itemz][each][joinedup]
\startbuffer[Item] \startitemz \item Item \item Item \stopitemz \stopbuffer
\starttext \section{No Whitespace} No extra whitespace before items. \getbuffer[Item]
\section{Extra Whitespace} \getbuffer[Item] Unexpected extra whitespace before items. \stoptext
Here is one way to get rid of the extra white-space. I could not figure out a clean way of adding this signal to the setup. \setuplayout[backspace=6cm, leftmargin=5.5cm] \define[2]\MarginHead{\inmargin{#1 #2}} \setuphead[section] [ command=\MarginHead, alternative=text, distance=\zeropoint, ] \unprotect \def\SIGNAL{\hskip\d_strc_itemgroups_signal} \protect \defineitemgroup[itemz] \setupitemgroup[itemz][each][joinedup] \startbuffer[Item] \startitemz \item Item \item Item \stopitemz \stopbuffer \starttext \section{No Whitespace} No extra whitespace before items. \getbuffer[Item] \section{Extra Whitespace} \SIGNAL \getbuffer[Item] Unexpected extra whitespace before items. \stoptext