From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24960 Path: news.gmane.org!not-for-mail From: R S Ananda Murthy Newsgroups: gmane.comp.tex.context Subject: Re: How to do this in ConTeXt Date: Thu, 05 Jan 2006 16:03:18 +0530 Message-ID: <43BCF5EE.2010907@touchtelindia.net> References: <43BC 16BF.9030502@uqam.ca> <43BC3564.1090202@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 1136458913 27120 80.91.229.2 (5 Jan 2006 11:01:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jan 2006 11:01:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 05 12:01:52 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 1EuSsL-0007q4-UH for gctc-ntg-context-518@m.gmane.org; Thu, 05 Jan 2006 12:01:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6FBDC1279D; Thu, 5 Jan 2006 12:01:45 +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 19126-04; Thu, 5 Jan 2006 12:01:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 457CC1279A; Thu, 5 Jan 2006 11:33:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E89FE1279A for ; Thu, 5 Jan 2006 11:33:34 +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 18900-03 for ; Thu, 5 Jan 2006 11:33:34 +0100 (CET) Original-Received: from smtpout.touchtelindia.net (smtpout.touchtelindia.net [202.56.230.25]) by ronja.ntg.nl (Postfix) with SMTP id 6FB0612799 for ; Thu, 5 Jan 2006 11:33:31 +0100 (CET) Original-Received: from smtp.touchtelindia.net (localhost [127.0.0.1]) by smtpout.touchtelindia.net (Postfix) with ESMTP id 2425120F952 for ; Thu, 5 Jan 2006 16:05:39 -0500 (GMT) Original-Received: from [192.168.1.2] (unknown [59.144.52.200])by smtp.touchtelindia.net (Postfix) with SMTP id 332DB70E7Bfor ; Thu, 5 Jan 2006 16:01:05 -0500 (GMT) User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43BC3564.1090202@uqam.ca> X-imss-version: 2.035 X-imss-result: Passed X-imss-scores: Clean:95.60565 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:2 C:1 M:3 S:4 R:3 (0.1500 0.1500) 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:24960 Archived-At: FabriceL. wrote: > 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 > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > Thank you FabriceL for your help. It worked. Anand