From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12710 Path: main.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: beginner's hazzles with backgrounds and definitions. Date: Sat, 26 Jul 2003 20:07:48 -0500 Sender: ntg-context-admin@ntg.nl Message-ID: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059404797 14328 80.91.224.249 (28 Jul 2003 15:06:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2003 15:06:37 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Jul 28 17:06:34 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19h9TX-00039B-00 for ; Mon, 28 Jul 2003 16:59:48 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3EA6110B46; Mon, 28 Jul 2003 16:59:49 +0200 (MEST) Original-Received: from julesburg.uits.indiana.edu (julesburg.uits.indiana.edu [129.79.1.75]) by ref.ntg.nl (Postfix) with ESMTP id 95E4D10B42 for ; Sun, 27 Jul 2003 03:07:48 +0200 (MEST) Original-Received: from fontz.uits.indiana.edu (fontz.uits.indiana.edu [129.79.1.76]) by julesburg.uits.indiana.edu (8.12.9/8.12.9/IUPO) with ESMTP id h6R17kPJ015928 for ; Sat, 26 Jul 2003 20:07:46 -0500 (EST) Original-Received: from indiana.edu (dial-122-112.dial.indiana.edu [156.56.122.112]) by fontz.uits.indiana.edu (8.12.9/8.12.9/IUPO) with ESMTP id h6R17iHW012075 for ; Sat, 26 Jul 2003 20:07:44 -0500 (EST) Original-To: ntg-context@ntg.nl X-Mailer: Apple Mail (2.552) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12710 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12710 Hi, I am new to context, migrating from latex for the purpose of writing an online book. I would like to set up a few definitions in the environment file that would replace latex's \begin{definition} ... \end{definition} environments. I realize that this can be done conveniently with \defineenumeration, but I want of course a few more features in it then in latex's setup. For example, I'd like to have the definition typeset in some color against some background. I tried the following in the environment file: \setupcolors[state=start] \definetextbackground [defbackground] [backgroundcolor=blue, backgroundoffset=.25cm, offset=.25cm, frame=off, location=paragraph, color=green] \defineenumeration [definition] [text=Definition, location=left, before={\starttextbackground[defbackground]}, after={\stoptextbackground}, letter=it] Then, in the text, when I use \startdefinition This is my definition. \stopdefinition the text comes out green all right, but the blue background is smeared all over two pages. I have tried a few modifications to no avail, so I fear I am doing it all wrong. Curiously, when I typeset the above th first time, I only get the green text (no blue), and the mess shows only up when typesetting the second time. Any help? Thanks, Matthias