Hi David,

Regarding matrices, below is an example. You can choose the names pmatrix, etc 
as you wish. There is even a module which allows you to compute the product of 
two matrices, etc (with \usemodule[m-matrix], see m-matrix.mkiv).

%% defining matrix with parentheses
\definemathmatrix[pmatrix]
        [matrix:parentheses]
        [simplecommand=pmatrix]

%% defining matrix with brackets
\definemathmatrix[bmatrix]
        [matrix:brackets]
        [simplecommand=bmatrix]
 
%% defining determinant with bars
\definemathmatrix[determinant]
        [matrix:bars]
        [simplecommand=thedeterminant]
        
\starttext
Let $A$ be the $3\times 3$ matrix defined by
\startformula
A := 
\startpmatrix
        \NC 11 \NC 12 \NC 13 \NR
        \NC 21 \NC 22 \NC 23 \NR
        \NC 31 \NC 32 \NC 33 \NR
\stoppmatrix .
\stopformula
This matrix can also be dfined by the Matlab structure of a matrix:
\startformula
A := \pmatrix{11,12,13 ; 21, 22, 23 ; 31, 32, 33}
\stopformula
Compute the value of
\startformula
\alpha := \thedeterminant{11,12,13 ; 21, 22, 23 ; 31, 32, 33} = {\rm det}(A).
\stopformula
\stoptext

Best regards: Otared K.

> On 15 Jul 2020, at 15:38, David Eric Cox <davideric...@protonmail.com> wrote:
> 
> Can anyone direct me to either traditional ConTeXt math documentation on how 
> to produce matrices or tell me how to show a variable in bold red in MathML?  
> I am producing pdf files exclusively.
> 
> 
> Sent with ProtonMail Secure Email.
> 
> ___________________________________________________________________________________
> 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 via email to