From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/8963 Path: main.gmane.org!not-for-mail From: "Bruce D'Arcus" Newsgroups: gmane.comp.tex.context Subject: Chapter headings and tex boxes Date: Thu, 8 Aug 2002 22:12:22 -0400 (EDT) Sender: owner-ntg-context@let.uu.nl Message-ID: <1634502.1028859142284.JavaMail.cpadmin@nassol01.mcs.muohio.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035399327 31957 80.91.224.250 (23 Oct 2002 18:55:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:55:27 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:8963 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:8963 OK; this one has sample code :-) Have finally gotten very close to what I want for a chapter heading. I'm not exactly sure what I've done, however, nor how to fix the remaining problem. What this code does is place the chapter number at the top left of the page, and the title centered a bit below. The problem is that I don't want the rbox to be a fixed 7em. Rather, I want the size to be dependent on the size of the text that occupies it (because with a short one-line title I get considerably more whitespace between the title and the first paragraph than if the title is two lines). Sooo...again with the question: "what do I do?" \def\HeadTitle#1#2% {\rbox to 7em \bgroup \rbox{\framed[width=\hsize, align=right, frame=off]{#1}}% \rbox{\framed[width=\hsize, align=middle, frame=off]{#2}}% \egroup } \setuphead [chapter] [command=\HeadTitle] What I also have not figured out: how to get the caps command to work on the title and headings.