From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21564 Path: news.gmane.org!not-for-mail From: Elena Fraboschi Newsgroups: gmane.comp.tex.context Subject: Re: \setuphead command Date: Mon, 25 Jul 2005 09:50:51 -0500 (EST) Message-ID: <20050725145051.939AC1A8C8@mendoza.math.indiana.edu> Reply-To: Elena Fraboschi , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: sea.gmane.org 1122302944 9698 80.91.229.2 (25 Jul 2005 14:49:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2005 14:49:04 +0000 (UTC) Cc: pragma@wxs.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 25 16:48:56 2005 Return-path: 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 1Dx4Ff-0004M9-OD for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jul 2005 16:48:19 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EB984127B2; Mon, 25 Jul 2005 16:48:18 +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 03400-04; Mon, 25 Jul 2005 16:48:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C5211279A; Mon, 25 Jul 2005 16:48:14 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4932C1279A for ; Mon, 25 Jul 2005 16:48:13 +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 03355-02 for ; Mon, 25 Jul 2005 16:48:12 +0200 (CEST) Original-Received: from mendoza.math.indiana.edu (mendoza.math.indiana.edu [129.79.147.100]) by ronja.ntg.nl (Postfix) with ESMTP id 0D07212797 for ; Mon, 25 Jul 2005 16:48:11 +0200 (CEST) Original-Received: from mendoza (mendoza [129.79.147.100]) by mendoza.math.indiana.edu (Postfix) with SMTP id 939AC1A8C8; Mon, 25 Jul 2005 09:50:51 -0500 (EST) Original-To: ntg-context@ntg.nl Content-MD5: 1RTf1DQ0wPb5JL7LhMg3SQ== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5.5 SunOS 5.9 i86pc i386 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21564 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21564 Dear All: I amhaving my own private warfare with the \setuphead command, and I wonder whether anyone can give me a hint. I have three problems, which I describe in detail below. They are: (1) how to setup run-in text after a subhead, (2) how to align the section, subsection, ... headers left or right (I am not talking of the running heads here) (3) vertical whitespace before a section header when it falls at the beginning of a new page What is *not* wanted :-) ==================== If the solution is use command=\mycommand, fine, I can do that. just please tell me that that's the only solution. I really am not asking about how to write a "Plain" or "LaTeX" command. Rather, what I'd like to know is if there is a ConTeXt-ish way to do these things, and by that I mean [something=something]. Description of my problems ========================== (1) At the Indiana Univ. Math. J. we use three levels of headings, let's call them \section, \subsection, and \subsubsection. The last two use run-in text. In Plain, the corresponding command might be something like this: \def\mysubsection#1{\vskip14pt\indent{\tenbfsl#1}.~} The outcome is this: My cat Inca. Inca is a beautiful black cat though she is now approaching her "golden" years. I could not come up with a [...=...] way to do run-in text after a heading. The only thing I did not try is something that occurred to me while walking to work - would this work? \setuphead[subsection][ after={\blank[none]} ] (2) Horizontal alignment. This problem is almost funny. Consider these two setups: \setuphead[section][ align=middle ] \setuphead[subsection][ align=left, ] The section will appear just fine, centered between the left and the right margins. The subsection head will appear flush RIGHT! If, instead, you write \setuphead[subsection][ align=right, ] the subsection head will appear flush LEFT. Hmmm... Hans, are you dyslexic? :-) (just in case, here comes another one :-)) I was able to obtain a subsection header as I wanted it by writing \setuphead[subsection][ align=left, command=\doglobal ] The problem is that, even though it works, I do not want to learn ConTeXt the wrong way. I do not want to "hack" it if there are set, orthodox ways to do what I want to do. (3) Plain TeX had some setup commands (have to re-acquaint myself with The TeXBook - have not done Plain in years) such that you could insert vertical whitespace before a section (subsection...) header, as wanted, but if in the course of writing that section header happened to fall at the top of a new page, then the vertical whitespace before it would be gobbled up. The reason is very simple: you do not want to have a "ragged top". My question is this: Is there any built-in thing like that in ConTeXt? Is there a command to "gobble up" vertical whitespace when a page break sends a heading to the top of the next page? Many thanks for any and all help. Best, elena (I wore thin the LiveContext interface this weekend - what a great thing to have!)