* Smallmatrix not implemented
@ 2015-07-06 9:03 Hans Aberg
2015-07-06 22:27 ` Wolfgang Schuster
2015-07-06 23:29 ` Hans Aberg
0 siblings, 2 replies; 3+ messages in thread
From: Hans Aberg @ 2015-07-06 9:03 UTC (permalink / raw)
To: ntg-context
Smallmatrix from AMS-TeX is not implemented in ConTeXt (Tex Live 2015), though crossed out in m-newmat.tex. I found this old post:
http://www.ntg.nl/pipermail/ntg-context/2005/013146.html
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Smallmatrix not implemented
2015-07-06 9:03 Smallmatrix not implemented Hans Aberg
@ 2015-07-06 22:27 ` Wolfgang Schuster
2015-07-06 23:29 ` Hans Aberg
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2015-07-06 22:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 603 bytes --]
> Hans Aberg <mailto:haberg-1@telia.com>
> 6. Juli 2015 11:03
> Smallmatrix from AMS-TeX is not implemented in ConTeXt (Tex Live
> 2015), though crossed out in m-newmat.tex. I found this old post:
> http://www.ntg.nl/pipermail/ntg-context/2005/013146.html
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.
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1777 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Smallmatrix not implemented
2015-07-06 9:03 Smallmatrix not implemented Hans Aberg
2015-07-06 22:27 ` Wolfgang Schuster
@ 2015-07-06 23:29 ` Hans Aberg
1 sibling, 0 replies; 3+ messages in thread
From: Hans Aberg @ 2015-07-06 23:29 UTC (permalink / raw)
To: ntg-context
[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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-06 23:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 9:03 Smallmatrix not implemented Hans Aberg
2015-07-06 22:27 ` Wolfgang Schuster
2015-07-06 23:29 ` Hans Aberg
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).