From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74726 Path: news.gmane.org!not-for-mail From: Marc Trius Newsgroups: gmane.comp.tex.context Subject: Linebreak between Chapter Number and Name Date: Sun, 26 Feb 2012 18:13:02 -0600 Message-ID: <4F4ACA8E.3010608@riseup.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1235936756==" X-Trace: dough.gmane.org 1330301615 28160 80.91.229.3 (27 Feb 2012 00:13:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 00:13:35 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 27 01:13: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 1S1oDa-000214-F1 for gctc-ntg-context-518@m.gmane.org; Mon, 27 Feb 2012 01:13:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BEAC2CB258; Mon, 27 Feb 2012 01:13: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 458ToJ5oeV-0; Mon, 27 Feb 2012 01:13:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15DA3CB243; Mon, 27 Feb 2012 01:13:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29ACFCB243 for ; Mon, 27 Feb 2012 01:13:25 +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 XRwz-afj1iRz for ; Mon, 27 Feb 2012 01:13:13 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 89732CB20F for ; Mon, 27 Feb 2012 01:13:13 +0100 (CET) Original-Received: from mx1.riseup.net (mx1.riseup.net [204.13.164.18]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1R0Ghqh027074 for ; Mon, 27 Feb 2012 01:16:44 +0100 Original-Received: from fruiteater.riseup.net (fruiteater-pn.riseup.net [10.0.1.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id DBEE351CC6 for ; Sun, 26 Feb 2012 16:13:03 -0800 (PST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: derpayatz@fruiteater.riseup.net) with ESMTPSA id 7E8FC850 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 X-Virus-Scanned: clamav-milter 0.97.3 at mx1 X-Virus-Status: Clean X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=204.13.164.18; country=US; region=WA; city=Seattle; postalcode=98194; latitude=47.5951; longitude=-122.3326; metrocode=819; areacode=206; http://maps.google.com/maps?q=47.5951,-122.3326&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0IGCMgIpe - 825f4285bf70 - 20120227 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:74726 Archived-At: This is a multi-part message in MIME format. --===============1235936756== Content-Type: multipart/alternative; boundary="------------050604000102070806090608" This is a multi-part message in MIME format. --------------050604000102070806090608 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I am trying to format a chapter heading so that there is a linebreak between the number and the name. The only way I managed to do this is this: \setuphead[ chapter][command=\ChapTitle] \def\ChapTitle#1#2% {\framed[height=2cm,width=broad]{#1\\#2} } But this limits me to a fixed height for the frame. This doesn't work if I don't set a fixed height, which would be a problem with longer chapter names that need linebreaks. What is the correct way to do this? Thank you, Marc Trius. --------------050604000102070806090608 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,
I am trying to format a chapter heading so that there is a linebreak between the number and the name. The only way I managed to do this is this:


\setuphead[

chapter][command=\ChapTitle]

\def\ChapTitle#1#2%

{\framed[height=2cm,width=broad]{#1\\#2}

}


But this limits me to a fixed height for the frame. This doesn't work if I don't set a fixed height, which would be a problem with longer chapter names that need linebreaks.

What is the correct way to do this?

Thank you,
Marc Trius.
--------------050604000102070806090608-- --===============1235936756== 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 ___________________________________________________________________________________ --===============1235936756==--