From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17676 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \setuphead for chapter Date: Wed, 29 Dec 2004 16:05:29 +0100 Message-ID: <41D2C7B9.6060001@wxs.nl> References: <41D2764F.3040001@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.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 1104332743 14817 80.91.229.6 (29 Dec 2004 15:05:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Dec 2004 15:05:43 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 29 16:05:36 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CjfOK-000600-00 for ; Wed, 29 Dec 2004 16:05:36 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E9C5127B2; Wed, 29 Dec 2004 16:05: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 26102-01; Wed, 29 Dec 2004 16:05:32 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B8005127AC; Wed, 29 Dec 2004 16:05:32 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A4ADD127AC for ; Wed, 29 Dec 2004 16:05:31 +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 25988-03 for ; Wed, 29 Dec 2004 16:05:30 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id D9E351279C for ; Wed, 29 Dec 2004 16:05:30 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iBTF5PjV031783; Wed, 29 Dec 2004 16:05:25 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 54A762C559; Wed, 29 Dec 2004 16:02:49 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 10F5117B14; Wed, 29 Dec 2004 15:02:48 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: VnPenguin , mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 X-Virus-Status: Clean 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 Xref: main.gmane.org gmane.comp.tex.context:17676 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17676 VnPenguin wrote: > On Wed, 29 Dec 2004 10:18:07 +0100, Hans Hagen wrote: you need to force vmode in order to make blank work \def\MyChapterCommand#1#2{\vbox{\ruledhbox{#1}\blank[2cm]\ruledhbox{#2}}} Hans >>VnPenguin wrote: >> >>>Hi all, >>>I'm trying to define chapter style like the following: >>>------------------------------------------------------------------ >>> >>> Chapter 1 >>> >>> This is the name of chapter >>> >>>------------------------------------------------------------------ >>>But I can't found the option of \setuphead which allows me insert a >>>"new line" (and a vertical space) between chapter number and chapter >>>name yet. >>> >>>Any help will be appreciated, >> >>\def\MyChapterCommand#1#2{#1\blank#2} >> >>\setuphead[chapter][command=\MyChapterCommand] >> > > Here is the code I try: > ----------------------- begin of code > -------------------------------------------- > \language[en] > \setuppapersize[A4] > > \def\MyChapterCommand#1#2{#1\blank[2cm]#2} > > \setuphead > [chapter] > [command=\MyChapterCommand] > > \starttext > \chapter[foo]{This is first Chapter} > \section{totototo} > \subsection{tatata} > blahblah > \stoptext > ------------ end of code --------------------------------------------------- > Unfortunately, I can not get the thing for which I'm looking :-) > I'm wrong some thing ? > > Q. > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > > -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------