From: Hans Aberg <haberg-1@telia.com>
To: ntg-context@ntg.nl
Subject: Re: Smallmatrix not implemented
Date: Tue, 7 Jul 2015 01:29:43 +0200 [thread overview]
Message-ID: <8D7A26A7-B392-4C3B-B842-C640A5653F10@telia.com> (raw)
In-Reply-To: <9F6062DA-FB43-4F50-BFE5-F216AB613079@telia.com>
[I do not get copies from the list, though having signed up.]
>> Smallmatrix from AMS-TeX is not implemented in ConTeXt (Tex Live 2015), though crossed out in m-newmat.tex.
>
> You can create your own matrix environment for inline use:
>
> \definemathmatrix
> [smallmatrix]
> [left=\Big(,
> right=\Big),
> style=\scriptstyle,
> strut=0.7,
> distance=.25em]
>
> \starttext
>
> This is a example \m{ \startsmallmatrix \NC a \NC b \NR \NC c \NC d \NR
> \stopsmallmatrix } for a smallmatrix environment.
It looks pretty much like the AMS-LaTeX variation. Below is another example of use, as a displayed formula.
----
% Defines a small two-by-two matrix.
\def\twomatrix#1#2#3#4{\startsmallmatrix\NC{#1}\NC{#2}\NR\NC{#3}\NC{#4}\NR\stopsmallmatrix}
% The Pauli spin matrices, explicit forms.
\def\pspint{{\twomatrix1001}}
\def\pspinx{{\twomatrix0110}}
\def\pspiny{{\twomatrix0{-𝕚}𝕚0}}
\def\pspinz{{\twomatrix100{-1}}}
Pauli spin matrices
\startformula
σ^0 ≔ \pspint, \quad σ^3 ≔ \pspinz, \quad
σ^1 ≔ \pspinx, \quad σ^2 ≔ \pspiny
\stopformula
----
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2015-07-06 23:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 9:03 Hans Aberg
2015-07-06 22:27 ` Wolfgang Schuster
2015-07-06 23:29 ` Hans Aberg [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=8D7A26A7-B392-4C3B-B842-C640A5653F10@telia.com \
--to=haberg-1@telia.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).