From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24955 Path: news.gmane.org!not-for-mail From: "FabriceL." Newsgroups: gmane.comp.tex.context Subject: Re: How to do this in ConTeXt Date: Wed, 04 Jan 2006 15:51:48 -0500 Message-ID: <43BC3564.1090202@uqam.ca> References: <43BC16BF.9030502@uqam.ca> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136407948 7164 80.91.229.2 (4 Jan 2006 20:52:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2006 20:52:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 04 21:52:27 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EuFc6-00055F-67 for gctc-ntg-context-518@m.gmane.org; Wed, 04 Jan 2006 21:52:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4C2F81276C; Wed, 4 Jan 2006 21:52:05 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11612-05; Wed, 4 Jan 2006 21:52:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7A89412826; Wed, 4 Jan 2006 21:52:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5714F12826 for ; Wed, 4 Jan 2006 21:52:01 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11609-05 for ; Wed, 4 Jan 2006 21:52:00 +0100 (CET) Original-Received: from tomts25-srv.bellnexxia.net (tomts25.bellnexxia.net [209.226.175.188]) by ronja.ntg.nl (Postfix) with SMTP id 1E4D91276C for ; Wed, 4 Jan 2006 21:51:57 +0100 (CET) Original-Received: from [192.168.1.4] ([67.68.213.22]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060104205154.ZHIX25777.tomts25-srv.bellnexxia.net@[192.168.1.4]> for ; Wed, 4 Jan 2006 15:51:54 -0500 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Originating-IP: [0] X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24955 Archived-At: Hi, Hans, it's so instructive to read yout post... I have learned from this last post 2 new commands ! However, I think the original poster wish a line who run to the right margin, so I added to your code in the "defineenumeration" a "inbetween=\vskip-4pt{\hrule height 1.5pt}\blank". This is not very elegant, but this works. By the way, I'm interested to know if there is a better solution. > Hans wrote: > one of you has to wikify this answer ... I'm not sure how to do this, but I can try how this works. The complete code follows. FL. \setupcolors[state=start] \setupbackgrounds[text][text][background=color,backgroundcolor=darkred,backgroundoffset=3pt] \defineenumeration [example] [way=bychapter, separator=\compoundhyphen, chapternumber=yes, color=white, command=\exampleframed, inbetween=\vskip-4pt{\hrule height 1.5pt}\blank] \defineframed [exampleframed] [background=color, backgroundcolor=black, foregroundcolor=white, style=bold, frame=off] \starttext \chapter{One} \input tufte \startexample \input tufte \stopexample \input tufte \stoptext