ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri Menke <henrimenke@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: feature request
Date: Wed, 3 Jul 2019 18:35:49 +1200	[thread overview]
Message-ID: <378ec5ab-4819-1116-cd39-663a2cacbf68@gmail.com> (raw)
In-Reply-To: <CABHwazUpi6kpA9t8WnO-9D5XQROGMQHPj9Xaa9TxeLpn95MX0w@mail.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 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.

\definemathmatrix
  [pmatrix]
  [left={\left(},right={\right)}]
 
\definemathmatrix
  [bmatrix]
  [left={\left[},right={\right]}]

\definemathmatrix
  [vmatrix]
  [left={\left\lvert},right={\right\rvert}]

\definemathmatrix
  [Vmatrix]
  [left={\left\lVert},right={\right\rVert}]

\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

\stoptext

> 
> By the way, I think it is critical to set
> \setupmathematics[ampersand=normal]

This should not be necessary in general.  Just use \NC and \NR.

> 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
___________________________________________________________________________________

  reply	other threads:[~2019-07-03  6:35 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-03  6:00 Atsuhito Kohda
2019-07-03  6:35 ` Henri Menke [this message]
2019-07-03  6:42 ` Henri Menke
2019-07-04  5:18   ` Atsuhito Kohda
2019-07-04  5:48     ` Henri Menke
2019-07-05 23:31       ` Atsuhito Kohda
2019-07-04 15:16     ` Aditya Mahajan
2019-07-04 15:54       ` Alan Braslau
2019-07-05 23:44         ` Atsuhito Kohda
2019-07-05 23:35       ` Atsuhito Kohda
  -- strict thread matches above, loose matches on Subject: below --
2011-11-11 15:34 Steffen Wolfrum
2011-11-11 15:53 ` Andreas Harder
2011-11-11 15:57   ` Wolfgang Schuster
2011-11-11 16:01 ` Wolfgang Schuster
2011-11-11 18:47 ` Idris Samawi Hamid ادريس  سماوي حامد
2011-11-13 10:55   ` Steffen Wolfrum
2011-11-13 21:33     ` Andreas Schneider
2011-11-14  7:57       ` Steffen Wolfrum
2011-11-14  8:07         ` Hans Hagen
2011-11-14  9:22           ` Steffen Wolfrum
2011-11-14 18:38             ` Idris Samawi Hamid ادريس  سماوي حامد
2011-11-15 22:03               ` Idris Samawi Hamid ادريس   سماوي حامد
2011-11-15 22:11                 ` Wolfgang Schuster
2011-11-15 22:28                 ` Aditya Mahajan
2011-11-15 22:47                   ` Idris Samawi Hamid ادريس   سماوي حامد
2011-11-14  8:47 ` Aditya Mahajan
2011-11-14 14:03   ` Hans Hagen
2011-11-15  3:35     ` Aditya Mahajan
2011-11-15  5:43       ` Aditya Mahajan
2011-11-15  8:56         ` Hans Hagen
2007-07-05 17:41 Feature request John R. Culleton
2007-07-05 21:37 ` Patrick Gundlach
2007-07-05 22:27   ` John R. Culleton
2007-07-06  8:09     ` Patrick Gundlach
2005-07-27  9:58 Steffen Wolfrum
2005-07-27 22:16 ` Hans Hagen
     [not found] <a06210200bf0958f2bc0f@87.193.3.198>
2005-07-26 16:20 ` Mojca Miklavec
2005-07-26 22:56   ` Hans Hagen
2005-07-27  5:15     ` luigi.scarso
2005-07-26 15:33 Steffen Wolfrum
2005-07-26 22:38 ` Hans Hagen
2005-07-26 15:00 Steffen Wolfrum
2005-07-26 13:32 Steffen Wolfrum
2005-07-26 14:21 ` Hans Hagen
2005-07-26 14:32 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=378ec5ab-4819-1116-cd39-663a2cacbf68@gmail.com \
    --to=henrimenke@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).