ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \startitemize[columns] broken with backgrounds?
Date: Mon, 23 Jan 2012 08:39:13 +0100	[thread overview]
Message-ID: <D932BCCF-7BB3-42E1-B17B-CD88EC8F4F33@gmail.com> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2012-01-23  7:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-23  7:39 Otared Kavian [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D932BCCF-7BB3-42E1-B17B-CD88EC8F4F33@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).