ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jörg Hagmann" <joerg.hagmann@unibas.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: background, mkii vs. mkiv
Date: Fri, 10 Sep 2010 16:01:07 +0200	[thread overview]
Message-ID: <4C8A3A23.6010509@unibas.ch> (raw)
In-Reply-To: <4C89DE21.3060109@unibas.ch>

  Ok, I narrowed it down:

-------First minimal example-----------
\setupcolors[state=start]

\starttext

\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}]
\startbackground

\startitemize[packed]
\item First question
\item Second question
\item Third question
\stopitemize

\stopbackground

\stoptext
---------end of first minimal example

This works in mk II, but not in mk IV.  It seems that 
start/stopbackground has been deprecated (?). And replaced with 
\definetextbackground ?

-------Second minimal example---------------------
\setupcolors[state=start]
\starttext

\setuptextbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}]

\starttextbackground


\startitemize[packed]
\item First question
\item Second question
\item Third question
\stopitemize

\stoptextbackground

\stoptext
---------end of second minimal example-----------------------

This "works" in both mk II and mk IV, but compare the background with 
the one in the first example.

Help appreciated, thanks
Jörg


On 9/10/10 9:28 AM, Jörg Hagmann wrote:
>  Could somebody please tell me why this minimal example works in mk II 
> but not in mk IV -- and what I have to change?
> Thanks very much, Jörg
>
> ---------minimal example--------------------------------
> \definestartstop[Questions][before={\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}]\startbackground},after=\stopbackground] 
>
>
> \starttext
>
> \startQuestions
> \startitemize[packed]
> \item First question
> \item Second question
> \item Third question
> \stopitemize
> \stopQuestions
>
>
> \stoptext
> ------------end minimal example----------------------
>
> PS: On 9/8/10 10:51 AM, luigi scarso wrote:
>> Did I misunderstand something?
>> $>  context --purge
>> or
>> $>context --purgeal
> I'm embarrassed ...
___________________________________________________________________________________
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:[~2010-09-10 14:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07 14:17 ctxtools Jörg Hagmann
2010-09-07 14:54 ` ctxtools Wolfgang Schuster
2010-09-08  8:48   ` ctxtools Jörg Hagmann
2010-09-08  8:51     ` ctxtools luigi scarso
2010-09-10  7:28       ` background, mkii vs. mkiv Jörg Hagmann
2010-09-10 14:01         ` Jörg Hagmann [this message]
2010-09-10 14:06           ` Wolfgang Schuster
2010-09-10 14:52             ` Jörg Hagmann
2010-09-10 15:09               ` Wolfgang Schuster
2010-09-10 14:52             ` Hans Hagen

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=4C8A3A23.6010509@unibas.ch \
    --to=joerg.hagmann@unibas.ch \
    --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).