From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74727 Path: news.gmane.org!not-for-mail From: "Rogers, Michael K" Newsgroups: gmane.comp.tex.context Subject: Re: Linebreak between Chapter Number and Name Date: Mon, 27 Feb 2012 01:47:11 +0000 Message-ID: <03DBDC96-1641-40B5-ABA5-8CF792E7D0F0@emory.edu> References: <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="===============1557379717==" X-Trace: dough.gmane.org 1330307274 28556 80.91.229.3 (27 Feb 2012 01:47:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 01:47:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 27 02:47:53 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 1S1pgs-0004dM-6s for gctc-ntg-context-518@m.gmane.org; Mon, 27 Feb 2012 02:47:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A420CB259; Mon, 27 Feb 2012 02:47:49 +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 y4kFrLhCZZh0; Mon, 27 Feb 2012 02:47:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0614CCB243; Mon, 27 Feb 2012 02:47:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56E9FCB243 for ; Mon, 27 Feb 2012 02:47:35 +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 2cJIH1+gfVqH for ; Mon, 27 Feb 2012 02:47:23 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id E1ED3CB20F for ; Mon, 27 Feb 2012 02:47:22 +0100 (CET) Original-Received: from ndb-mr2.cc.emory.edu (ndb-mr2.cc.emory.edu [170.140.52.250]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1R1lLJ1009115 for ; Mon, 27 Feb 2012 02:47:21 +0100 Original-Received: from e14edge1n.Eu.Emory.Edu (emoryfloatdmz.cc.emory.edu [170.140.52.254]) by ndb-mr2.cc.emory.edu (8.13.8/8.13.1) with ESMTP id q1R1lCwa029906 for ; Sun, 26 Feb 2012 20:47:12 -0500 Original-Received: from E14CH2N.Enterprise.emory.net (10.240.8.114) by e14edge1n.Eu.Emory.Edu (170.140.52.18) with Microsoft SMTP Server (TLS) id 14.2.247.3; Sun, 26 Feb 2012 20:47:11 -0500 Original-Received: from E14MBX20N.Enterprise.emory.net ([fe80::e9ea:8c9d:f94e:7cd3]) by e14ch2n.Enterprise.emory.net ([::1]) with mapi id 14.02.0247.003; Sun, 26 Feb 2012 20:47:11 -0500 Thread-Topic: [NTG-context] Linebreak between Chapter Number and Name Thread-Index: AQHM9OSmikp6dj3L20uEoWm1gGvlwpZQTXgA In-Reply-To: <4F4ACA8E.3010608@riseup.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [170.140.30.131] X-Emory-MailScanner-Information: Please contact the ISP for more information X-Emory-MailScanner-ID: q1R1lCwa029906 X-Emory-MailScanner: Found to be clean X-Emory-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.009, required 8, autolearn=disabled, HTML_MESSAGE 0.00, T_RP_MATCHES_RCVD -0.01) X-Emory-MailScanner-From: mroge02@emory.edu X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=170.140.52.250; country=US; region=GA; city=Atlanta; postalcode=30322; latitude=33.7952; longitude=-84.3248; metrocode=524; areacode=404; http://maps.google.com/maps?q=33.7952,-84.3248&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NGCNLlnM - 22c067c20b7c - 20120227 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:74727 Archived-At: --===============1557379717== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_03DBDC96164140B5ABA58CF792E7D0F0emoryedu_" --_000_03DBDC96164140B5ABA58CF792E7D0F0emoryedu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Feb 26, 2012, at 7:13 PM, Marc Trius wrote: Hi, I am trying to format a chapter heading so that there is a linebreak betwee= n 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\stopalignm= ent}}} I don't know if \vbox's are frowned on in ConTeXt, but my fix doesn't work = if you remove it. I've just started migrating from Plain Tex to ConTeXt, s= o please excuse a naive response. ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). --_000_03DBDC96164140B5ABA58CF792E7D0F0emoryedu_ Content-Type: text/html; charset="us-ascii" Content-ID: <28A9B194D6D62C45B33BFEA911E5A5CF@Enterprise.emory.net> Content-Transfer-Encoding: quoted-printable
On Feb 26, 2012, at 7:13 PM, Marc Trius wrote:

Hi,
I am trying to format a chapter heading so that there is a linebreak betwee= n 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\stopa= lignment}}}

I don't know if \vbox's are frowned on in ConTeXt, but my fix doesn't = work if you remove it.  I've just started migrating from Plain Tex to = ConTeXt, so please excuse a naive response.  



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
--_000_03DBDC96164140B5ABA58CF792E7D0F0emoryedu_-- --===============1557379717== 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 ___________________________________________________________________________________ --===============1557379717==--