From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46380 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: starting headings at top of column Date: Wed, 17 Dec 2008 11:57:41 -0600 Message-ID: <49493D95.5000106@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229536998 6094 80.91.229.12 (17 Dec 2008 18:03:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 18:03:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 17 19:04:23 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LD0kv-0004nf-5W for gctc-ntg-context-518@m.gmane.org; Wed, 17 Dec 2008 19:04:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BB9701FC6F; Wed, 17 Dec 2008 19:03:04 +0100 (CET) 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 19541-01-2; Wed, 17 Dec 2008 19:02:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08B3F1FC09; Wed, 17 Dec 2008 19:02:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 57C721FB29 for ; Wed, 17 Dec 2008 19:02:06 +0100 (CET) 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 19529-01 for ; Wed, 17 Dec 2008 19:01:12 +0100 (CET) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by ronja.ntg.nl (Postfix) with ESMTP id 967001FC0D for ; Wed, 17 Dec 2008 18:57:46 +0100 (CET) Original-Received: from mail.link77.net (mail.link77.net [172.22.0.125]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id mBHHvjYG029063 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 17 Dec 2008 12:57:45 -0500 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.2 (ClamAV engine v0.94.1) Original-Received: from [172.20.4.229] (account lars_huttar@sil.org [172.20.4.229] verified) by mail.link77.net (CommuniGate Pro SMTP 5.2.10) with ESMTPSA id 203725251 for ntg-context@ntg.nl; Wed, 17 Dec 2008 12:57:45 -0500 User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) X-Enigmail-Version: 0.95.7 X-Scanned-By: MIMEDefang 2.62 on 172.22.0.51 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:46380 Archived-At: Hello, I've started talking to people in charge about contributing some money to this mailing list, or the wiki, or something ... we're certainly getting a lot of help from it. Is there an org or project to contribute to? Anyway, my current challenge is this. We have a two-column layout using columnsets. Fairly often, we start a new section (within a column... this does not interrupt the flow of columns). Some constraints we want to fulfill are: - Normally we want a little space before each new section heading - Except at the top of a column; can I check whether we're at the top of a column and do a conditional \vskip based on that?(*) - Avoid orphans: when starting a new section, if there's not enough room left in the current column, do a column break before outputting the section heading. I've tried \testcolumn[n], but it doesn't seem to work right. What are the units of the argument to \testcolumn? We also do manual column balancing using \definecolumnset, \setupcolumnset, and \setupcolumnsetlines. My concern is, does this apply after other layout is performed, so that any test performed above (*) regarding position within the column would fail to reflect these column balancing adjustments and therefore could give wrong results? That could explain why \testcolumn has been behaving in unexpected ways... Thanks, Lars ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________