From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19281 Path: news.gmane.org!not-for-mail From: "luigi.scarso" Newsgroups: gmane.comp.tex.context Subject: Re: Chapter numbers in the right margin Date: Tue, 22 Mar 2005 07:21:29 +0100 Message-ID: <423FB969.7050209@logosrl.it> 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 1111472390 29830 80.91.229.2 (22 Mar 2005 06:19:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2005 06:19:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 22 07:19:50 2005 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 1DDcje-0003CY-GZ for gctc-ntg-context-518@m.gmane.org; Tue, 22 Mar 2005 07:19:26 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 350E5127EB; Tue, 22 Mar 2005 07:21:40 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25612-06; Tue, 22 Mar 2005 07:21:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 01959127C3; Tue, 22 Mar 2005 07:21:37 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 68509127C3 for ; Tue, 22 Mar 2005 07:21:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25838-01 for ; Tue, 22 Mar 2005 07:21:34 +0100 (CET) Original-Received: from ServerNotes.logosrl.it (unknown [81.208.99.91]) by ronja.ntg.nl (Postfix) with ESMTP id 70243127B5 for ; Tue, 22 Mar 2005 07:21:34 +0100 (CET) Original-Received: from [192.168.2.85] ([192.168.2.85]) by ServerNotes.logosrl.it (Lotus Domino Release 6.5.1) with ESMTP id 2005032207213549-421 ; Tue, 22 Mar 2005 07:21:35 +0100 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-MIMETrack: Itemize by SMTP Server on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 22/03/2005 07.21.35, Serialize by Router on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 22/03/2005 07.21.35, Serialize complete at 22/03/2005 07.21.35 X-Virus-Scanned: by 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:19281 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19281 Randall Skelton wrote: >Hi all, > >Does anyone have a setuphead snipit and definition to place a large >chapter number in the right margin of the page on the first page of >each chapter? I believe this should be similar (but simplier) than >what is done in 'ConTeXt an Excursion' but I wasn't able to find a >definition for that. I'd be quite willing to put this up on the wiki >when I figure it out... > >What I have so far doesn't really lead to much flexibility in terms of >positioning. I'd like to be able to set both the horizontal and >vertical position of the chapter number. I'd also like to have the >number shift vertically downwards for each new chapter. > >\def\MyChapterText#1{#1 > \inright{ \switchtobodyfont[MyTitling, 72pt] \rm \headnumber[chapter] } >} > >\setuphead > [Topic, chapter] > [textcommand=\MyChapterText, > style={\switchtobodyfont[MyTitling, 16pt]\sc}, > color=black, > number=no, > page=right, > continue=no, > header=empty, > before=\vbox to 4cm\bgroup, > after=\vss\egroup] > >Many thanks, >Randall >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > > > From cont-eni.pdf, chapter Text elements: \setuphead[...][..,..=..,..] : command \command#1#2 numbercommand \command#1 textcommand \command#1 : Use textcommand only for text, numbercommand only for number, command for both; you can see some examples in section Variations in titles .