From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24950 Path: news.gmane.org!not-for-mail From: Fabrice Larribe Newsgroups: gmane.comp.tex.context Subject: Re: How to do this in ConTeXt Date: Wed, 04 Jan 2006 13:41:03 -0500 Organization: UQAM, Math Message-ID: <43BC16BF.9030502@uqam.ca> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136400107 9516 80.91.229.2 (4 Jan 2006 18:41:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2006 18:41:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 04 19:41:46 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 1EuDZV-0001rG-FH for gctc-ntg-context-518@m.gmane.org; Wed, 04 Jan 2006 19:41:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9680C1287C; Wed, 4 Jan 2006 19:41:15 +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 09982-09; Wed, 4 Jan 2006 19:41:13 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08D671285B; Wed, 4 Jan 2006 19:41:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 21D711285B for ; Wed, 4 Jan 2006 19:41:12 +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 10056-02 for ; Wed, 4 Jan 2006 19:41:11 +0100 (CET) Original-Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by ronja.ntg.nl (Postfix) with SMTP id E1A2612859 for ; Wed, 4 Jan 2006 19:41:10 +0100 (CET) Original-Received: from [192.168.1.4] ([67.68.213.22]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060104184109.KXQR14963.tomts10-srv.bellnexxia.net@[192.168.1.4]> for ; Wed, 4 Jan 2006 13:41:09 -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:24950 Archived-At: Hi, R S Ananda Murthy wrote: > Hello, > > I need the format shown below: > > ------------- > |Example 1-1| > ----------------------------------------- > \setupoutput[pdftex] \setupcolors[state=start] Here is (almost) what you want to acheive, but without any macros: \blank \starttext %\def\Ex#1{ \line{\framed{\red #1}} } \line{ \framed[background=color,backgroundcolor=black]{ { {\white Exemple 1.1\ }}}\hfill } \hrule \blank To have numbers, you should use ennumeration.. And a try.. but I don't know how to adjust things... Others have to complete... \defineenumeration[Exemple][location=serried,headstyle=bold,width=broad, text={\framed[background=color,backgroundcolor=black]{\red\sc Exemple}\textrule},margin=0.5cm,before=\blank,after=\blank] \startExemple This is a nice exemple. \stopExemple This is the end. \stoptext F.