From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29814 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: setuphead Date: Sun, 30 Jul 2006 18:51:14 -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> <44CD3330.30002@wxs.nl> 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 1154299902 29213 80.91.229.2 (30 Jul 2006 22:51:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 22:51:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 31 00:51:41 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 1G7K8E-0004Ah-1l for gctc-ntg-context-518@m.gmane.org; Mon, 31 Jul 2006 00:51:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40DA81FE37; Mon, 31 Jul 2006 00:51:33 +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 01096-05; Mon, 31 Jul 2006 00:51:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EAB381FE25; Mon, 31 Jul 2006 00:51:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 598FC1FE25 for ; Mon, 31 Jul 2006 00:51: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 00941-06 for ; Mon, 31 Jul 2006 00:51:20 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id 7D8121FB62 for ; Mon, 31 Jul 2006 00:51:18 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY skycaptain.mr.itd.umich.edu ID 44CD37E3.D6B23.20041 ; 30 Jul 2006 18:51:17 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <44CD3330.30002@wxs.nl> 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:29814 Archived-At: On Mon, 31 Jul 2006, Hans Hagen wrote: > 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 .... >> > > \setuphead[chapter] > [command=\Sectioncommand, > style=, > textstyle=\bfb, > numberstyle=\it] > > \def\Sectioncommand#1#2% > {\vbox \bgroup > \framed[align=middle,frame=off,offset=0pt]{Chapter #1}% > \framed[align=middle,frame=off,offset=0pt]{#2}% > \egroup} > > or something alike You also need to specify width of the frame, otherwise width=fit is default and framed box does not appear to be middle aligned. Aditya