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:52:06 +0200	[thread overview]
Message-ID: <4C8A4616.4050801@unibas.ch> (raw)
In-Reply-To: <8EAA5623-3E28-440F-BC47-D4278BBF7126@gmail.com>

  Thank you, Wolfgang. I added the line 
"\setnewconstant\backgroundsplit\zerocount" to pack-rul.mkiv, AND IT WORKED!
This leaves the (not vital for me) question why minimal example 2 (using 
"setuptextbackground") produces that funny background with the same 
commands as in "setupbackground".

Thanks again, Jörg
On 9/10/10 4:06 PM, Wolfgang Schuster wrote:
> Am 10.09.2010 um 16:01 schrieb Jörg Hagmann:
>
>> 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 ?
> The reason is simpler, Hans replaced in MkIV many \newcounter and \chardef
> definitions with real counters and forgot for the background macros to add
>
> \setnewconstant\backgroundsplit\zerocount
>
> to pack-rul.mkiv.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>

-- 
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

___________________________________________________________________________________
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:52 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
2010-09-10 14:06           ` Wolfgang Schuster
2010-09-10 14:52             ` Jörg Hagmann [this message]
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=4C8A4616.4050801@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).