From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91849 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Math alignment Date: Tue, 07 Jul 2015 21:18:27 +0200 Message-ID: <559C2603.7030404@gmail.com> References: <0427DE7E-9FB7-46EA-930E-95349134A831@telia.com> <559B3D6D.1040607@gmail.com> <559BE67C.2030609@gmail.com> <4B85E5CE-75DC-44B4-8354-B46F46DBD0D1@telia.com> <559C17CE.5090500@gmail.com> <8B6A0B9F-850E-400B-B3AA-5369474EBB4E@telia.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0352679439==" X-Trace: ger.gmane.org 1436296751 24642 80.91.229.3 (7 Jul 2015 19:19:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2015 19:19:11 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Aberg Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 07 21:18:59 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZCYOR-0001Ka-L3 for gctc-ntg-context-518@m.gmane.org; Tue, 07 Jul 2015 21:18:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 719F310270 for ; Tue, 7 Jul 2015 21:18:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sYB0A36V8qtK for ; Tue, 7 Jul 2015 21:18:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 60A5310271 for ; Tue, 7 Jul 2015 21:18:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7955D10231 for ; Tue, 7 Jul 2015 21:18:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ElP_r5DzPsE2 for ; Tue, 7 Jul 2015 21:18:30 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id BD08510230 for ; Tue, 7 Jul 2015 21:18:30 +0200 (CEST) Original-Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t67JITs2012750 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 7 Jul 2015 21:18:30 +0200 Original-Received: by widjy10 with SMTP id jy10so197651290wid.1 for ; Tue, 07 Jul 2015 12:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=IQaycjiNZ+9CBTNMJIj+f/zeEPXW9gG3gwjRsRiZgMM=; b=uE7yXv91wz2L6qDKbD39KQD4j5XsQLBpZ1rIRoDZerVWS1xyfPaihcybCyWRmgbqw0 GiZyRA6F0/agwSROMQpw9nzq2zEO5fdEYIgcGCaeUDqDTwXKRbtDT8iRZbzDDDlwOQHJ /g3FKsOhEc/RA9N7lExPXtVpt5PR1t2Kg5F5Ikl+2D7vLQ+EpqgMZufvTU5zfmi2G+Yu x6u3UfaW4FboolS6pQWcAV15kZ+6LjG0l0izxik58lb2QSgqMAPlUfb0gFojTnWjm/I8 dEwzj5RWYLsNjnE8J/KuKIelQrRcrQ0S/a2t1qu7QSj4wZDa+D67Yz0ifMUbs4F4MJl8 1PWg== X-Received: by 10.194.174.194 with SMTP id bu2mr12497519wjc.76.1436296709586; Tue, 07 Jul 2015 12:18:29 -0700 (PDT) Original-Received: from keima.localdomain (x2f26f31.dyn.telefonica.de. [2.242.111.49]) by mx.google.com with ESMTPSA id ev8sm34853970wjb.8.2015.07.07.12.18.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jul 2015 12:18:28 -0700 (PDT) User-Agent: Postbox 4.0.1 (Macintosh/20150514) In-Reply-To: <8B6A0B9F-850E-400B-B3AA-5369474EBB4E@telia.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::235; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03ONvit1r - acff44b53c3f - 20150707 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::235 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::235; envelope-from=; helo=mail-wi0-x235.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91849 Archived-At: This is a multi-part message in MIME format. --===============0352679439== Content-Type: multipart/alternative; boundary="------------030704020108060108040201" This is a multi-part message in MIME format. --------------030704020108060108040201 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Hans Aberg > 7. Juli 2015 20:53 >> On 7 Jul 2015, at 20:17, Wolfgang Schuster wrote: > >> You can set the alignment for each column in a matrix with the align k= ey. >> >> \definemathmatrix >> [aligned] >> [n=3D2, >> align=3D{right,left}, >> distance=3D\spaceamount] >> >> \starttext >> >> \startformula >> J^j: >> \startaligned[left=3D\left\{,right=3D\right.] >> \NC =CF=89^0 \NC =E2=86=A6 0 \NR >> \NC =CF=89^j \NC =E2=86=A6 0 \NR >> \stopaligned >> \quad >> \startaligned[n=3D3,align=3D{right,middle,left},left=3D\left\{,ri= ght=3D\right.] >> \NC =CF=89^k \NC =E2=86=A6 \NC =CF=89^l \NR >> \NC =CF=89^l \NC =E2=86=A6 \NC -=CF=89^k \NR >> \stopaligned >> \stopformula >> >> \stoptext > > That looks like the right thing. Thanks. > > Your example is quite close to TeX, cf. example below. > > I have also put in an extra alignment to see what happens, monospace co= de alignment style. Changing =E2=80=98left=E2=80=99 to =E2=80=98right did= not seem to have any effect here. > Can you see the effect of the alignment? \starttext \startformula \startmatrix[align=3D{left,middle,right}] \NC a \NC b \NC c \NR \NC aa \NC bb \NC cc \NR \NC aaa \NC bbb \NC ccc \NR \stopmatrix \stopformula \stoptext Wolfgang --------------030704020108060108040201 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= =20 7. Juli 2015=20 20:53
On 7 Jul 2015, at 20:17, Wolfgang Schuster <schuste= r.wolfgang@gmail.com> wrote:

You can set the alignment =
for each column in a matrix with the align key.

\definemathmatrix
  [aligned]
  [n=3D2,
   align=3D{right,left},
   distance=3D\spaceamount]

\starttext

\startformula
    J^j:
    \startaligned[left=3D\left\{,right=3D\right.]
        \NC =CF=89^0 \NC =E2=86=A6 0 \NR
        \NC =CF=89^j \NC =E2=86=A6 0 \NR
    \stopaligned
    \quad
    \startaligned[n=3D3,align=3D{right,middle,left},left=3D\left\{,right=3D=
\right.]
        \NC =CF=89^k \NC =E2=86=A6 \NC  =CF=89^l \NR
        \NC =CF=89^l \NC =E2=86=A6 \NC -=CF=89^k \NR
    \stopaligned
\stopformula

\stoptext

That looks like the right thing. Thanks.

Your example is quite close to TeX, cf. example below.

I have also put in an extra alignment to see what happens, monospace code=
 alignment style. Changing =E2=80=98left=E2=80=99 to =E2=80=98right did n=
ot seem to have any effect here.

Can you see the effect of the alignment?

\starttext

\startformula
=C2=A0=C2=A0=C2=A0 \startmatrix[align=3D{left,middle,right}]
=C2=A0=C2=A0=C2=A0 \NC a=C2=A0=C2=A0 \NC b=C2=A0=C2=A0 \NC c=C2=A0=C2=A0 = \NR
=C2=A0=C2=A0=C2=A0 \NC aa=C2=A0 \NC bb=C2=A0 \NC cc=C2=A0 \NR
=C2=A0=C2=A0=C2=A0 \NC aaa \NC bbb \NC ccc \NR
=C2=A0=C2=A0=C2=A0 \stopmatrix
\stopformula

\stoptext

Wolfgang
--------------030704020108060108040201-- --===============0352679439== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0352679439==--