[NTG-context] \startitemize[columns] broken with backgrounds?

Otared Kavian otared at gmail.com
Mon Jan 23 08:39:13 CET 2012

Hi all,

It seems that when using background, \startitemize[columns] does not work as expected: there are no columns, and the numbers of the items are pushed to the left.
Below is a not so minimal example: the resulting PDF can be found here:
http://dl.dropbox.com/u/4316076/enumeration-background-exo.pdf
I am not sure whether this behaviour began with a recent beta or  not.
The version I am using is: ConTeXt  ver: 2012.01.16 18:33 MKIV.

Best regards: OK
%%% begin enumeration-background-exo.pdf
\definenumber[MyExoNumber][way=bysection,sectionumber=yes]
\setuptextrules[rulecolor=darkred]
\define\ExoCommand{\incrementnumber[MyExoNumber]
\textrule[top]{Exercise \getnumber[MyExoNumber]}
\startbackground[frame=off,leftframe=on,
framecolor=darkred]}

\defineenumeration[exo]
[location=hanging,
width=fit,
text={},
number=hide,
number=no,
before={\ExoCommand},
after={\stopbackground\blank}]

\defineconversion[exercice][\numbers]
\def\StartQuestions{%
\startitemize[exercice][width=2em,packed,style=bold,stopper=,right=)]}
\def\StopQuestions{\stopitemize}
\def\q{\item}

\starttext

%%%%%%%%%%%%%%%%%
\startexo
Prove that
\startformula
\cos(nt) + {\rm i}\sin(nt) = (\cos(t) + {\rm i}\sin(t))^n.
\stopformula
\StartQuestions
\dorecurse{5}{\q This is question \recurselevel. }
\StopQuestions
\stopexo
%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%
\startexo Solve the following equations or inequations:
\startitemize[r,packed,columns][stopper=,left={(},right={)},distance=1em]
\item $3x - 5 = 4$.
\item $(x-1)(x+3) = 5$.
\item $2 - 3x \geq 2 x - 8$.
\item $(x - 1) \leq (x-1)(x+2)$.
\item $2x^2 - 3x +1 < 0$.
\item $x^2 - 4x \geq x - x^2 - 1$.
\stopitemize
\stopexo
%%%%%%%%%%%%%%%%%

\stoptext
%%% end enumeration-background-exo.pdf