From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50578 Path: news.gmane.org!not-for-mail From: afsmith Newsgroups: gmane.comp.tex.context Subject: Re: formula-style alignment Date: Mon, 18 May 2009 03:53:15 -0700 Message-ID: <5df5befa0905180353t7e3036b6s7092d1c6d5d6ef19@mail.gmail.com> References: <5df5befa0905171223y36548073i3f0ffdb9df9b3f99@mail.gmail.com> 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 1242644049 23731 80.91.229.12 (18 May 2009 10:54:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2009 10:54:09 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Mon May 18 12:54:02 2009 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 1M60Tp-0004ue-UK for gctc-ntg-context-518@m.gmane.org; Mon, 18 May 2009 12:54:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77EBC1FDEE; Mon, 18 May 2009 12:54:00 +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 14741-03; Mon, 18 May 2009 12:53:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B43381FDCE; Mon, 18 May 2009 12:53:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C7AC1FDCE for ; Mon, 18 May 2009 12:53:25 +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 14742-03 for ; Mon, 18 May 2009 12:53:17 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 383D61FDA1 for ; Mon, 18 May 2009 12:53:17 +0200 (CEST) Original-Received: from yx-out-1718.google.com (yx-out-1718.google.com [74.125.44.152]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5) with ESMTP id n4IArGtN015461 for ; Mon, 18 May 2009 12:53:16 +0200 Original-Received: by yx-out-1718.google.com with SMTP id 34so1778755yxf.74 for ; Mon, 18 May 2009 03:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hD+1P4bsw61KZ2el0LIP9G/UigCtSliK3UXvVpoJmNU=; b=bo/HHovHa8kbs5MevIRNdtp04fJvWM0Twp0qTe7p8icfs+Q17+9q/L70QAKMJ7d76z MnAXFWuEb7oYAfkqMUajutznOG/3ZjmRaVscEHhPhV+L9W4279rm1UjITkCSv+FRSEWr fkWORXroXvYwKRMShNMnEnyCCfcqkBCMgPWJU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Gd0I4Sp9tQ1LST8E/O3zgEuyBCK0p9O+JMoAJmQJ3lnIO+0m8ya7WmatsmUoSa3m85 Qy+3H5xtqtUCkbRo9X+iI4GCxK7o7LeFr7ciUNmYDe/BAOcN6HZZf6qNUiOubAl1Qte5 BWJB0lzjTPn55NS1zTnCKoy3hJHDweJYuJ/xY= Original-Received: by 10.90.86.9 with SMTP id j9mr4180996agb.32.1242643995437; Mon, 18 May 2009 03:53:15 -0700 (PDT) In-Reply-To: <5df5befa0905171223y36548073i3f0ffdb9df9b3f99@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.44.152; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 227397609 - c68fa995b12e - 20090518 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:50578 Archived-At: Thanks Wolfgang. That works... Now how about inside a definition or subject header? Here is an example. \localhsize in this case seems to resolve to a width of 0, making the contained text break as often as it can... \defineframed[lrframe][ width=\localhsize, align=normal, rulethickness=1pt] \setuplayout[header=0pt,footer=0pt] \definedescription[topdesc][ inbetween={\blank[none]}, headstyle={\bf}, style={\tf\rm}, location=top, width=broad] \define[3]\CHRONDESC {\starttopdesc {\dontleavehmode\lrframe{#1\hfill#2}} \startnarrower[left]{#3}\stopnarrower \stoptopdesc} \definehead[mysubject][subject] \setuphead[mysubject][style={\bf}] \define[3]\CHRONSUB {\mysubject{\dontleavehmode\lrframe{#1\hfill#2}} \startnarrower[left]{#3}\stopnarrower} \showframe[text] \starttext \startnarrower[left] \dontleavehmode\lrframe[width=broad] {leftleftleft \hfill right rightrightright} \stopnarrower \crlf \startnarrower[left] \dontleavehmode\lrframe[width=\localhsize] {leftleftleftleft\hfill right rightrightright} \stopnarrower \crlf \CHRONDESC {This happened from June 08 to June 09} {06/08--06/09} {\CHRONDESC {This happened from June 08 to December 08} {06/08--12/08} {\input tufte } \CHRONDESC {This happened from January 09 to June 09} {01/09--06/09} {\input zapf }} \CHRONDESC {This happened from June 09 to July 09} {06/09-07/09} {\input knuth } \crlf \CHRONSUB {This happened from June 08 to June 09} {06/08--06/09} {\CHRONSUB {This happened from June 08 to December 08} {06/08--12/08} {\input tufte } \CHRONSUB {This happened from January 09 to June 09} {01/09--06/09} {\input zapf }} \crlf \stoptext > Am 17.05.2009 um 21:23 schrieb afsmith: > > > Hey again, ntg-context. > > > > I would like to align one piece of a line to the left, and another > > piece of the same line to the right, sort of like numbered math > > equations, except not math. > > Additionally I would like to do this inside a narrowed block > > \starttext > > \input knuth > > \startnarrower > > \input knuth > > \dontleavehmode\framed[width=\localhsize,align=normal]{left\hfill right} > > \stopnarrower > > \stoptext > > Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________