Re: [NTG-context] Smallmatrix not implemented

2015-07-06 Thread Hans Aberg
[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
___

Re: [NTG-context] Smallmatrix not implemented

2015-07-06 Thread Wolfgang Schuster



Hans Aberg mailto:haber...@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
___
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
___