From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74733 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Linebreak between Chapter Number and Name Date: Mon, 27 Feb 2012 14:24:02 -0500 (EST) Message-ID: References: <4F4ACA8E.3010608@riseup.net> <03DBDC96-1641-40B5-ABA5-8CF792E7D0F0@emory.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-830394269-1330370645=:10564" X-Trace: dough.gmane.org 1330370671 29685 80.91.229.3 (27 Feb 2012 19:24:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 19:24:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 27 20:24:31 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S26BT-0006XD-10 for gctc-ntg-context-518@m.gmane.org; Mon, 27 Feb 2012 20:24:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BEDA0CB260; Mon, 27 Feb 2012 20:24:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 40P65EUKxW82; Mon, 27 Feb 2012 20:24:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3397FCB25B; Mon, 27 Feb 2012 20:24:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38F49CB25B for ; Mon, 27 Feb 2012 20:24:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EjbWO9RIYsGe for ; Mon, 27 Feb 2012 20:24:15 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 30118CB251 for ; Mon, 27 Feb 2012 20:24:14 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1RJO6xC016083 for ; Mon, 27 Feb 2012 20:24:14 +0100 Original-Received: FROM adi-netbook (bas3-montreal02-1096680022.dsl.bell.ca [65.94.2.86]) By tombraider.mr.itd.umich.edu ID 4F4BD854.E256A.22717 ; Authuser adityam; 27 Feb 2012 14:24:05 EST In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QGD7o7ke - 8c7e1089d754 - 20120227 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74733 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-830394269-1330370645=:10564 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 27 Feb 2012, Wolfgang Schuster wrote: > Am 27.02.2012 um 02:47 schrieb Rogers, Michael K: >> >> On Feb 26, 2012, at 7:13 PM, Marc Trius wrote: >> >>> I am trying to format a chapter heading so that there is a linebreak be= tween the number and the name. The only way I managed to do this is this: >>> >>> >>> \setuphead[ >>> chapter][command=3D\ChapTitle] >>> \def\ChapTitle#1#2% >>> {\framed[height=3D2cm,width=3Dbroad]{#1\\#2} >>> } >> >> >> This worked for me: >> >> \def\ChapTitle#1#2{\framed{\vbox{\startalignment[center]#1\par#2\stopali= gnment}}} > > \define[2]\ChapTitle > {\framed[width=3Dbroad,align=3Dmiddle]{#1\\#2}} > >> I don't know if \vbox's are frowned on in ConTeXt, but my fix doesn't wo= rk if you remove it. I've just started migrating from Plain Tex to ConTeXt= , so please excuse a naive response. > > Special layouts for the headings requires sometimes \vbox and \hbox but i= n this case you don=92t need it. Well, \framed[...,align=3Dmiddle,...] is a \vbox. Aditya --8323328-830394269-1330370645=:10564 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-830394269-1330370645=:10564--