From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104246 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Alignment Date: Mon, 13 May 2019 23:15:36 +0200 Message-ID: <9194f36a-a35b-eb65-9f26-420a9767dcc4@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1650931111613512969==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207542"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/6.1.16.1 To: mailing list for ConTeXt users , Fabrice Couvreur Original-X-From: ntg-context-bounces@ntg.nl Mon May 13 23:15:38 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hQIIM-000rty-Ag for gctc-ntg-context-518@m.gmane.org; Mon, 13 May 2019 23:15:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5104E1363A8; Mon, 13 May 2019 23:15:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cDitLm20wG57; Mon, 13 May 2019 23:15:12 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 78E7F137E46; Mon, 13 May 2019 23:15:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9CC0A137E45 for ; Mon, 13 May 2019 23:15:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 66UYJJlHM5Xs for ; Mon, 13 May 2019 23:15:11 +0200 (CEST) Original-Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 11FA81363A8 for ; Mon, 13 May 2019 23:15:11 +0200 (CEST) Original-Received: by mail-wr1-f53.google.com with SMTP id b18so6864853wrq.12 for ; Mon, 13 May 2019 14:15:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=1lB9nkDufpwKREHqErXn6/RpNguGsBTnqIjo4Q34Zf0=; b=R/WM/fFz6sKhtzuvIQBy4kr73NSmuF+wawLQT0/wGsm7qpYAMmklVBaOcIIZyPUcCi IUo6bBuqnJjOfhhfKA8XVNofTydH1BriLNpFpzrEW2yIZdScaIX3yGWz09Qa3mknB/+T yYncHCE/mr+5ykvin7ulWqtL/PgcfyPtLXfXfxSqU87YSff/rGOVsvseGFEeqTatVz08 iA30QAml0XbMPSbe9TkdIAl9NdEnWZpCdOyAAY0Tqn2I1vca+XQnqJb197Vn4QQDGTin kKdj2VnxJ9s5NdvBVUtZY/oeZIb7EYeIy6UkhqWtRzwDTW8HEqUDsyDGiKn12LNJLhRC hafQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=1lB9nkDufpwKREHqErXn6/RpNguGsBTnqIjo4Q34Zf0=; b=N6llRvLG2HTcqnAv4/aAQfS3Lk/8JDHmKIQb9KUaESoy2DcKUryGtZOALlQv4xIH4y ygFbkSFjdf20fvaj5ZCCaWqEQKDRReE9m7GbuI+Xtw7DooKD2UvUDm4+2BNEHyeet1CV e1i4iIhSFa83wFDOZ7PNv0IS9y6jDJt6Bb17vz9319ZuuhwdNPDMmP9Yr1fCD6XvhKvF pOU94BVBNHxD5epUzDX04UQaSBIuD9eU6PdQwa1aA/lTuy33xi0tbieyrfLgfITwuxJN OtBCTpPHBvqtMaFBeujHLDFSoJAPrRkaZ/Ep3qOrO7imBmcWwrxJUrIhc+LTabzuUqhO k/ZA== X-Gm-Message-State: APjAAAU6Ufw0MH/64qaN7/ZNz9Ju9AqwSrCOU7p+MnGi8RocVxAIV3Dz 549y93mYynt/MdLbxNEQ4X3Q1JzK X-Google-Smtp-Source: APXvYqwE2VtzHGF0wX5CrZbXdcxt+V/R/b20XNt7jYZxXOFBq64aLbj81QZIN0IPnS8Q/kbxPDnQZw== X-Received: by 2002:a5d:4d11:: with SMTP id z17mr15415748wrt.308.1557782110851; Mon, 13 May 2019 14:15:10 -0700 (PDT) Original-Received: from [192.168.1.16] (x4d07bb3e.dyn.telefonica.de. [77.7.187.62]) by smtp.gmail.com with ESMTPSA id g127sm565645wme.21.2019.05.13.14.15.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 14:15:10 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:104246 Archived-At: This is a multi-part message in MIME format. --===============1650931111613512969== Content-Type: multipart/alternative; boundary="------------7FFEDF58CB75159AC0EB032C" Content-Language: en-US This is a multi-part message in MIME format. --------------7FFEDF58CB75159AC0EB032C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Fabrice Couvreur schrieb am 13.05.2019 um 22:45: > Hi, > Not having too many ideas, I did this: is there not a more elegant way ? \definemathmatrix [pmatrix] [matrix:parentheses] [simplecommand=MATRIX] \starttext \startformula   \startmathalignment   \NC P \times M = P \NC \iff \MATRIX{x,y} \times \MATRIX{0.22,0.78;0.53,0.47} = \MATRIX{x,y} \NR   \NC                \NC \iff     \startmathcases     \NC 0.22x + 0.53y = x \NR     \NC 0.78x + 0.47y = y \NR     \stopmathcases   \NR   \NC                \NC \iff 0.78x - 0.53y = 0 \NR   \NC                \NC \iff   78x -   53y = 0 \NR   \stopmathalignment \stopformula \stoptext Wolfgang --------------7FFEDF58CB75159AC0EB032C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Fabrice Couvreur schrieb am 13.05.2019 um 22:45:
Hi,
Not having too many ideas, I did this: is there not a more elegant way ?

\definemathmatrix [pmatrix] [matrix:parentheses] [simplecommand=MATRIX]

\starttext

\startformula
  \startmathalignment
  \NC P \times M = P \NC \iff \MATRIX{x,y} \times \MATRIX{0.22,0.78;0.53,0.47} = \MATRIX{x,y} \NR
  \NC                \NC \iff
    \startmathcases
    \NC 0.22x + 0.53y = x \NR
    \NC 0.78x + 0.47y = y \NR
    \stopmathcases
  \NR
  \NC                \NC \iff 0.78x - 0.53y = 0 \NR
  \NC                \NC \iff   78x -   53y = 0 \NR
  \stopmathalignment
\stopformula

\stoptext

Wolfgang

--------------7FFEDF58CB75159AC0EB032C-- --===============1650931111613512969== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1650931111613512969==--