From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104550 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Atsuhito Kohda Newsgroups: gmane.comp.tex.context Subject: Re: feature request Date: Thu, 4 Jul 2019 14:18:09 +0900 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4501282685978471085==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="262147"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 04 07:18:43 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 1hiu8p-001643-0S for gctc-ntg-context-518@m.gmane.org; Thu, 04 Jul 2019 07:18:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D6372152366; Thu, 4 Jul 2019 07:18:26 +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 nHa8F2iE_Zpd; Thu, 4 Jul 2019 07:18:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EA23A15236B; Thu, 4 Jul 2019 07:18:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9822B152366 for ; Thu, 4 Jul 2019 07:18:24 +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 lk_KMwDJPXWQ for ; Thu, 4 Jul 2019 07:18:23 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.67; helo=mail-ot1-f67.google.com; envelope-from=atsu10.kohda@gmail.com; receiver= Original-Received: from mail-ot1-f67.google.com (mail-ot1-f67.google.com [209.85.210.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6E257151F73 for ; Thu, 4 Jul 2019 07:18:23 +0200 (CEST) Original-Received: by mail-ot1-f67.google.com with SMTP id z23so4734091ote.13 for ; Wed, 03 Jul 2019 22:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=09Xehka68Y+AowuQGhhQvw1wt9mmYWfi3UjugXOjmaQ=; b=WPq6kv2DGCcVLsaAL6qS8NpLSX5DSHh8TPIDsAP6fcnNnSbktqmg0fzh6uUFFVY+Hs +DDuzKgP5dwlaLi4WkGMvSILP22RNccDyEVd6f2RmrDts1czz4bfDg9LFk5KClDZHXfI c4GxA/pRSdy7DOTrFMOIW1B7Dfl1AOZ2xBGXG8hv4h7k6p8ygLb02z20x8HPLUh7iY1t 07N38q46zOPv4EQIeSZQkgTFfar0bygljIotttgCMc31uVqg0oW/RK0WsuuZLDI53Hxh eF3zX002F4rvfKRTEpk32N9NNtY4h8YfiOxw9GXecQYvW8Qut9YITh9LSJA4Mt+XH4Ub jTtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=09Xehka68Y+AowuQGhhQvw1wt9mmYWfi3UjugXOjmaQ=; b=Wq52BHrRk7cj6Gv2WoxYHH/AuUHwJLDA6ViYQxdbF1hdFQDgeohl/eYz8Hy/1C1acS BG3nkyxxJ8ZK7hyn5Vi3veBLTvKvMTDBkE3F0Pasn70WQ+YR18oyBuYRjh5vtfFACyW8 YuC0CWD3vfP/0JqskWhyy41kwFT+t6HARf0Im8/+UXz9u0vPNhhAiSmBTj4XGly1+4Zv qzrUfuvthTLlZ0qKLDbiAMXzt33h1BIZJ43qJRZYV8tOss6XkXIutE70/q+ehQfgBPVg ZkfHERXhw6/wM0N8LZq/X62zwSXJ4MiMsbkDxZAWOrgeDYTmaokONhPB/O2HIbQc+SWK 7Xxg== X-Gm-Message-State: APjAAAUA/95rfhDdJCxOTUs80kyAILzDMaLfRYTfzbqms6FXdFkev6j5 UaTEuTGgo7LGVtYfhESKVmBl732en1iTTjf92cL5we7F X-Google-Smtp-Source: APXvYqxpdBHWEQN1PGLcmjLMM/rCmmrFxHzj8oOAwZ7fhbK4kldSFZazAKsoveI/FPhjN+iZW9jPchH/xxDQ98bwD1M= X-Received: by 2002:a05:6830:8a:: with SMTP id a10mr14223139oto.167.1562217501372; Wed, 03 Jul 2019 22:18:21 -0700 (PDT) In-Reply-To: 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:104550 Archived-At: --===============4501282685978471085== Content-Type: multipart/alternative; boundary="0000000000003b3677058cd41b8d" --0000000000003b3677058cd41b8d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Henri, Thanks for your suggestions, they are very instructive. However, my request is not a smart way of displaying matrices but to know why \bmatrix and \vmatrix are not provided in core part of ConTeXt although \pmatrix is provided already in math-pln.mkiv About matrices, I first found commands in your first email in http://dl.contextgarden.net/myway/context-latex-math.pdf (like \startpmatrix \NC A\NC B\NR \NC C\NC D\NR\stoppmatrix) and then browsing ma-cb-en.pdf I noticed another command like \pmatrix{A&B\cr C&D\cr}. Now by your email, I know a command \pmatrix{A, B; C, D} One might say ConTeXt is flexible but I've an impression that ConTeXt is in a state of confusion/disorder. I think it is better if a standard command is provided by core ConTeXt or by a module etc. Or is it ConTeXt way that each user defines his/her own commands in setup area and uses them in text area? I'm afraid consistency and/or portability is lost in such scenario. BTW, I constantly convert Beamer documents into ConTeXt's simpleslide documents recently and it is very convenient if I can use \pmatrix{a&b\cr c&d\cr} style because it is similar to LaTeX documents. 2019=E5=B9=B47=E6=9C=883=E6=97=A5(=E6=B0=B4) 15:42 Henri Menke : > > > On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > > I've used LaTeX quite a long time but recently I begin to use ConTeXt > too. > > So I'm very sorry if the following is well-known issue. > > > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > > (ma-cb-en.pdf). And I notice it is defined in > > /usr/share/texmf/tex/context/base/mkiv/math-pln.mkiv (in Debian). > > But it seems \bmatrix, \vmatrix are not defined yet. > > Is there any reason why they are not defined? > > Similar commands or environments \begin{bmatrix}...\end{bmatrix}, > > \begin{vmatrix}...\end{vmatrix} are very often used in mathematical > > LaTeX documents. > > It is very useful if we can use \bmatrix and \vmatrix in ConTeXt > > documents, so please add > > \unexpanded\def\bmatrix#1% > > {\left[\matrix{#1}\right]} > > \unexpanded\def\vmatrix#1% > > {\left|\matrix{#1}\right|} > > in math-pln.mkiv or somewhere. > > Ignore my other message, this is even better: > > \definemathmatrix > [pmatrix] > [matrix:parentheses] > [simplecommand=3Dpmatrix] > > \definemathmatrix > [bmatrix] > [matrix:brackets] > [simplecommand=3Dbmatrix] > > \definemathmatrix > [vmatrix] > [matrix:bars] > [simplecommand=3Dvmatrix] > > \definemathmatrix > [Vmatrix] > [left=3D{\left\lVert\mskip\thinmuskip}, > right=3D{\mskip\thinmuskip\right\rVert}, > align=3Dmiddle, > simplecommand=3DVmatrix] > > \starttext > > \startformula > \startpmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stoppmatrix > \quad > \startbmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopbmatrix > \quad > \startvmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopvmatrix > \quad > \startVmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopVmatrix > \stopformula > > \startformula > \pmatrix{A, B; C, D} > \quad > \bmatrix{A, B; C, D} > \quad > \vmatrix{A, B; C, D} > \quad > \Vmatrix{A, B; C, D} > \stopformula > > \stoptext > > > > > By the way, I think it is critical to set > > \setupmathematics[ampersand=3Dnormal] > > to use \matrix above but I can't find this setting in ma-cb-en.pdf > > It is great if this is added in ma-cb-en.pdf > > > > > > > _________________________________________________________________________= __________ > > 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://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > > > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000003b3677058cd41b8d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Henri,
Thanks for your suggestions, they are very in= structive.
However, my request is not a smart way of displaying matrices=
but to know why \bmatrix and \vmatrix are not provided
in core part = of ConTeXt although \pmatrix is provided already
in math-pln.mkiv
About matrices, I first found commands in your first email in
http://dl.con= textgarden.net/myway/context-latex-math.pdf
(like \startpmatrix \NC = A\NC B\NR \NC C\NC D\NR\stoppmatrix)
and then browsing ma-cb-en.pdf I no= ticed another command
like \pmatrix{A&B\cr C&D\cr}.
Now by yo= ur email, I know a command \pmatrix{A, B; C, D}

One might say ConTeX= t is flexible but I've an impression
that ConTeXt is in a state of c= onfusion/disorder.

I think it is better if a standard command is pro= vided
by core ConTeXt or by a module etc.

Or is it ConTeXt way th= at each user defines his/her own commands
in setup area and uses them in= text area?
I'm afraid consistency and/or portability is lost in suc= h scenario.

BTW, I constantly convert Beamer documents into ConTeXt&= #39;s
simpleslide documents recently and it is very convenient
if I c= an use \pmatrix{a&b\cr c&d\cr} style because it is similar
to La= TeX documents.

2019=E5=B9=B47=E6=9C=883=E6=97=A5(=E6=B0=B4) 15:42 Henri Me= nke <henrimenke@gmail.com>= ;:


On 3/07/19 6:00 PM, Atsuhito Kohda wrote:
> I've used LaTeX quite a long time but recently I begin to use ConT= eXt too.
> So I'm very sorry if the following is well-known issue.
>
> I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excu= rsion"
> (ma-cb-en.pdf).=C2=A0 And I notice it is defined in
> /usr/share/texmf/tex/context/base/mkiv/math-pln.mkiv (in Debian).
> But it seems \bmatrix, \vmatrix are not defined yet.
> Is there any reason why they are not defined?
> Similar commands or environments \begin{bmatrix}...\end{bmatrix},
> \begin{vmatrix}...\end{vmatrix} are very often used in mathematical > LaTeX documents.
> It is very useful if we can use \bmatrix and \vmatrix in ConTeXt
> documents, so please add
> \unexpanded\def\bmatrix#1%
>=C2=A0 =C2=A0{\left[\matrix{#1}\right]}
> \unexpanded\def\vmatrix#1%
>=C2=A0 =C2=A0{\left|\matrix{#1}\right|}
> in math-pln.mkiv or somewhere.

Ignore my other message, this is even better:

\definemathmatrix
=C2=A0 [pmatrix]
=C2=A0 [matrix:parentheses]
=C2=A0 [simplecommand=3Dpmatrix]

\definemathmatrix
=C2=A0 [bmatrix]
=C2=A0 [matrix:brackets]
=C2=A0 [simplecommand=3Dbmatrix]

\definemathmatrix
=C2=A0 [vmatrix]
=C2=A0 [matrix:bars]
=C2=A0 [simplecommand=3Dvmatrix]

\definemathmatrix
=C2=A0 [Vmatrix]
=C2=A0 [left=3D{\left\lVert\mskip\thinmuskip},
=C2=A0 =C2=A0right=3D{\mskip\thinmuskip\right\rVert},
=C2=A0 =C2=A0align=3Dmiddle,
=C2=A0 =C2=A0simplecommand=3DVmatrix]

\starttext

\startformula
=C2=A0 =C2=A0 \startpmatrix
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \NC A \NC B \NR
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \NC C \NC D \NR
=C2=A0 =C2=A0 \stoppmatrix
=C2=A0 =C2=A0 \quad
=C2=A0 =C2=A0 \startbmatrix
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \NC A \NC B \NR
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \NC C \NC D \NR
=C2=A0 =C2=A0 \stopbmatrix
=C2=A0 =C2=A0 \quad
=C2=A0 =C2=A0 \startvmatrix
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \NC A \NC B \NR
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \NC C \NC D \NR
=C2=A0 =C2=A0 \stopvmatrix
=C2=A0 =C2=A0 \quad
=C2=A0 =C2=A0 \startVmatrix
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \NC A \NC B \NR
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \NC C \NC D \NR
=C2=A0 =C2=A0 \stopVmatrix
\stopformula

\startformula
=C2=A0 =C2=A0 \pmatrix{A, B; C, D}
=C2=A0 =C2=A0 \quad
=C2=A0 =C2=A0 \bmatrix{A, B; C, D}
=C2=A0 =C2=A0 \quad
=C2=A0 =C2=A0 \vmatrix{A, B; C, D}
=C2=A0 =C2=A0 \quad
=C2=A0 =C2=A0 \Vmatrix{A, B; C, D}
\stopformula

\stoptext

>
> By the way, I think it is critical to set
> \setupmathematics[ampersand=3Dnormal]
> to use \matrix above but I can't find this setting in ma-cb-en.pdf=
> It is great if this is added in=C2=A0 ma-cb-en.pdf
>
>
> ______________________________________________________________________= _____________
> 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/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________
>

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000003b3677058cd41b8d-- --===============4501282685978471085== 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== --===============4501282685978471085==--