ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: jmailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Converting from LaTeX for PDF accessibility tagging?
Date: Sun, 28 Jun 2020 21:29:26 -0400 (EDT)	[thread overview]
Message-ID: <nycvar.YAK.7.78.908.2006282129210.21241@nqv-guvaxcnq> (raw)
In-Reply-To: <CAPGiC740BH+ceE4eFA=VF=zCCRYCEor0AUQP3tS7B_1-y4E_vA@mail.gmail.com>

On Mon, 29 Jun 2020, Alasdair McAndrew wrote:

> (For matrices and arrays I still prefer the neat LaTeX implementation, but
> maybe that's simply my general unfamiliarity with ConTeXt.)  Thanks again!

Matrices can also be entered using MATLAB syntax (you need to specify a `simplecommand` for mathmatrix:

\definemathmatrix[bmatrix][matrix:brackets][simplecommand=BMATRIX]

\starttext

Default style:

\startformula
   \startbmatrix
     \NC 1 \NC 2 \NC 3 \NR
     \NC 4 \NC 5 \NC 6 \NR
     \NC 7 \NC 8 \NC 9 \NR
   \stopbmatrix
\stopformula

Compact style:

\startformula
   \BMATRIX{1, 2, 3; 4, 5, 6; 7, 8, 9}
\stopformula

\stoptext

I'd say this is more compact (and natural) than amsmath :-)

Aditya

___________________________________________________________________________________
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:[~2020-06-29  1:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28 11:43 Alasdair McAndrew
2020-06-28 16:26 ` Aditya Mahajan
2020-06-29  0:32   ` Alasdair McAndrew
2020-06-29  1:29     ` Aditya Mahajan [this message]

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=nycvar.YAK.7.78.908.2006282129210.21241@nqv-guvaxcnq \
    --to=adityam@umich.edu \
    --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).