From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33736 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: spread box contents [trying again] Date: Wed, 07 Mar 2007 09:47:34 -0700 Organization: Colorado State University Message-ID: 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: sea.gmane.org 1173286101 32203 80.91.229.12 (7 Mar 2007 16:48:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2007 16:48:21 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 07 17:48:13 2007 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 1HOzJC-0004vS-P5 for gctc-ntg-context-518@m.gmane.org; Wed, 07 Mar 2007 17:48:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E14B26F; Wed, 7 Mar 2007 17:43:45 +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 28387-08; Wed, 7 Mar 2007 17:43:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 36E7664; Wed, 7 Mar 2007 17:43:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5631C6F for ; Wed, 7 Mar 2007 17:43:36 +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 28011-03-3 for ; Wed, 7 Mar 2007 17:43:33 +0100 (CET) Original-Received: from trueband.net (trueband.net [216.163.120.10]) by ronja.ntg.nl (Postfix) with SMTP id D587A4C for ; Wed, 7 Mar 2007 17:43:32 +0100 (CET) Original-Received: (qmail 2246 invoked by uid 1006); 7 Mar 2007 16:47:55 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.0/100.0):. Processed in 1.880056 secs); 07 Mar 2007 16:47:55 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.20) by -v with SMTP; 7 Mar 2007 16:47:53 -0000 Original-Received: (qmail 3154 invoked from network); 7 Mar 2007 16:47:51 -0000 Original-Received: from unknown (HELO walayah-main) (67.54.131.34) by -v with SMTP; 7 Mar 2007 16:47:51 -0000 User-Agent: Opera Mail/9.02 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:33736 Archived-At: Hi gang, Did not get any feedback, I'll try again: ================================== Date: 2007-03-02 07:34 -700 Hmm, no reply yet, maybe the following is more interesting: On Thu, 01 Mar 2007 12:30:42 -0700, Idris Samawi Hamid wrote: > How can I evenly spread the contents of a box or column-row? In PlainTeX > there is > > \hbox{Here\hfill is\hfill an\hfill evenly\hfill spread\hfill line.} > > but there must be a better (read "ConTeXt-") way. I looked into thisyears > ago and may have found the answer; but I've forgotten it... =================================== \starttext \defineparagraphs[TwoColumns][n=2,distance=2cm] \setupparagraphs[TwoColumns][each][width=5cm,tolerance=stretch] \setupframedtexts[frame=off] \startframedtext[middle] \startalignment[middle] \startTwoColumns \hbox spread \textwidth{Here is the first line 1a} \TwoColumns Here \hfill is \hfill the \hfill first \hfill line \hfill 1b \stopTwoColumns \startTwoColumns Here \hfill is \hfill the \hfill second \hfill line \hfill 2a \TwoColumns Here \hfill is \hfill the \hfill second \hfill line \hfill 2b \stopTwoColumns \stopalignment \stopframedtext \stoptext ============================== How can I get the first column right? Note that, according to the manual, \textwidth gives the width of a column but in this case it apparently gives a full \hsize. RELATED QUESTION: How can I control the distance between rows? I do not want any extra whitespace between rows (i.e., except the normal interparagraph space). Please advise! Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/