From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21086 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: creating a new head Date: Wed, 29 Jun 2005 19:31:59 +0200 Message-ID: <42C2DB0F.9050904@wxs.nl> References: <20050629141632.43980.qmail@web33515.mail.mud.yahoo.com> 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 1120066140 21977 80.91.229.2 (29 Jun 2005 17:29:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2005 17:29:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 29 19:28:56 2005 Return-path: 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 1DngMh-0002ac-FK for gctc-ntg-context-518@m.gmane.org; Wed, 29 Jun 2005 19:28:47 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CABCA127B5; Wed, 29 Jun 2005 19:36:08 +0200 (CEST) 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 13982-03; Wed, 29 Jun 2005 19:36:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 96483127CF; Wed, 29 Jun 2005 19:32:19 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 18BBA127CF for ; Wed, 29 Jun 2005 19:32:18 +0200 (CEST) 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 13982-01 for ; Wed, 29 Jun 2005 19:32:17 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 30DE5127B5 for ; Wed, 29 Jun 2005 19:32:17 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j5THWCdW031938 for ; Wed, 29 Jun 2005 19:32:12 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id C40D71B28B; Wed, 29 Jun 2005 18:57:50 +0200 (CEST) Original-Received: from [10.100.1.53] (unknown [10.100.1.53]) by server-1.pragma-net.nl (Postfix) with ESMTP id 84D1A17984 for ; Wed, 29 Jun 2005 16:57:49 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20050629141632.43980.qmail@web33515.mail.mud.yahoo.com> X-Virus-Scanned: ClamAV 0.86.1/960/Wed Jun 29 06:31:06 2005 on mailrelay01 X-Virus-Status: Clean 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21086 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21086 Arun Swarup wrote: > Hi, > > I would like to design a new head for \chapter{...}, but I am new to > TeX/ConTeXt and am having trouble. > > I would like my head to be something like this: > http://www.geocities.com/arunswarup/images/title.png > > I know this a more a TeX-related rather than a ConTeXt-related problem \setuphead [chapter] [command=\MyChapter, style=\ss\bfd, header=high, after={\blank[3*big]}] \setupheadtext [chapter=Chapter] \def\MyChapter#1#2% {\vbox \bgroup \framed [frame=off,bottomframe=on,offset=none,height=1cm,width=broad,align=flushleft] {\headtext{chapter} #1} \vskip2mm \framed [frame=off,topframe=on,offset=none,height=4cm,width=broad,align={flushleft,low}] {#2} \egroup} \starttext \chapter{HOW TO INSTALL AND TEST SAMBA} \input tufte \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------