ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startitemize[columns] broken with backgrounds?
@ 2012-01-23  7:39 Otared Kavian
  2012-01-23  7:45 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Otared Kavian @ 2012-01-23  7:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-23 14:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-23  7:39 \startitemize[columns] broken with backgrounds? Otared Kavian
2012-01-23  7:45 ` Wolfgang Schuster
2012-01-23  9:47   ` Otared Kavian
2012-01-23 10:29     ` Wolfgang Schuster
2012-01-23 14:11       ` Otared Kavian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).