From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29810 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: setuphead Date: Sun, 30 Jul 2006 18:02:04 -0400 (EDT) Message-ID: References: <7CFEB498-476B-4E80-A3F5-1EDA9852A912@st.estfiles.de> <44C8BEC6.5030305@elvenkind.com> <69F53897-0EEE-494B-92EB-EEF0E9510FDF@st.estfiles.de> <44CB0A16.3080301@elvenkind.com> <2586493A-A8E0-405C-88F4-A28E55888104@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154296954 22577 80.91.229.2 (30 Jul 2006 22:02:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 22:02:34 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 31 00:02:32 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 1G7JMm-0006wL-4l for gctc-ntg-context-518@m.gmane.org; Mon, 31 Jul 2006 00:02:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E8531FBC1; Mon, 31 Jul 2006 00:02:31 +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 29199-06-2; Mon, 31 Jul 2006 00:02:25 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D7D9D1FB3A; Mon, 31 Jul 2006 00:02:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34C2E1FAE5 for ; Mon, 31 Jul 2006 00:02:20 +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 29199-06 for ; Mon, 31 Jul 2006 00:02:10 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id BBB751FE26 for ; Mon, 31 Jul 2006 00:02:09 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 44CD2C5E.4C37F.9881 ; 30 Jul 2006 18:02:07 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <2586493A-A8E0-405C-88F4-A28E55888104@st.estfiles.de> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:29810 Archived-At: > Am 29.07.2006 um 09:11 schrieb Taco Hoekwater: > >> Steffen Wolfrum wrote: >>> You mean like this? >>> >>> \setuphead[chapter][command=\midaligned,numbercommand=\it,inbetween= >>> \crlf,textcommand=\bf] >> >> That is what I meant but it dodn't work out too well. New approach: >> >> \def\Sectioncommand#1#2% >> {\vbox{\centerline{\it Chapter #1}% >> \centerline{\bfb #2}}} >> >> \setuphead[chapter] >> [command=\Sectioncommand, >> style=] >> On Sun, 30 Jul 2006, Steffen Wolfrum wrote: > Well, looks good, BUT > if the chapter's name is quite long and needs a break > then the break command used there (\crlf \break \\) can't work > anymore .... How about \def\Sectioncommand#1#2% {\framed[align=middle,width=broad,frame=no] {\it Chapter #1 \crlf \bfb\setupinterlinespace#2\endgraf}} \setuphead[chapter] [command=\Sectioncommand, style=] \chapter{A very very very very very very loongish title of the chapter} Aditya