From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21362 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: Setting up chapter. Date: Wed, 13 Jul 2005 17:37:35 +0000 Organization: WexfordPress Message-ID: <200507131737.35979.john@wexfordpress.com> References: <200507111712.58013.john@wexfordpress.com> <42D3C264.1000106@logosrl.it> <200507121631.02038.john@wexfordpress.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" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121291022 22787 80.91.229.2 (13 Jul 2005 21:43:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2005 21:43:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 13 23:43:37 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 1Dsozp-0007kH-5A for gctc-ntg-context-518@m.gmane.org; Wed, 13 Jul 2005 23:42:25 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BCA54127A0; Wed, 13 Jul 2005 23:42:24 +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 31952-06; Wed, 13 Jul 2005 23:42:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E9F8127C4; Wed, 13 Jul 2005 23:38:33 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8FDF6127C4 for ; Wed, 13 Jul 2005 23:38:32 +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 32055-02 for ; Wed, 13 Jul 2005 23:38:31 +0200 (CEST) Original-Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by ronja.ntg.nl (Postfix) with ESMTP id 79D98127A0 for ; Wed, 13 Jul 2005 23:38:31 +0200 (CEST) Original-Received: from 69-174-190-44.frdrmd.adelphia.net ([69.174.190.44]) by mta9.adelphia.net (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with ESMTP id <20050713213829.SYCX29002.mta9.adelphia.net@69-174-190-44.frdrmd.adelphia.net> for ; Wed, 13 Jul 2005 17:38:29 -0400 Original-To: mailing list for ConTeXt users User-Agent: KMail/1.7.2 In-Reply-To: <200507121631.02038.john@wexfordpress.com> Content-Disposition: inline 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:21362 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21362 On Tuesday 12 July 2005 04:31 pm, John R. Culleton wrote: > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > But when time permits I will play with the other approaches > mentioned. Necessity overtook schedule. So I used the Jensen approach (thanks) modified as recommended by Kavian (thanks) with a few minor changes to suit my application. Herewith the final product: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\numcommand#1{\hfil\webo m\tfd#1\webo m \hfil} %\unexpanded\def\chaptercase{\uppercase} \def\mychapter#1#2% {\setupframed[width=\textwidth,align=middle,frame=off]\vbox{% \framed{\setupbodyfont[18pt]\setupinterlinespace[height=.1,depth=0] #1}% \framed{\setupbodyfont[15pt]\setupinterlinespace[line=2ex]#2\par}% \deco\par}} \setuphead[chapter][numbercommand=\numcommand,page=right, header=high, command=\mychapter,%textcommand=\chaptercase, textstyle=\sl,numberstyle=\bf] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I kept the unused \chaptercase definition around just in case I change my mind later on. This has been educational. Who says you can't teach an old dog new tricks? -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf