* Combining colors with matrices
@ 2020-07-15 13:38 David Eric Cox
2020-07-15 14:48 ` David Eric Cox
2020-07-15 18:50 ` Otared Kavian
0 siblings, 2 replies; 3+ messages in thread
From: David Eric Cox @ 2020-07-15 13:38 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 252 bytes --]
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 redin MathML? I am producing pdf files exclusively.
Sent with [ProtonMail](https://protonmail.com) Secure Email.
[-- Attachment #1.2: Type: text/html, Size: 723 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Combining colors with matrices
2020-07-15 13:38 Combining colors with matrices David Eric Cox
@ 2020-07-15 14:48 ` David Eric Cox
2020-07-15 18:50 ` Otared Kavian
1 sibling, 0 replies; 3+ messages in thread
From: David Eric Cox @ 2020-07-15 14:48 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 651 bytes --]
Never mind. That was stupid of me. I can do it by containing a generalized fraction within \( and \).
Still getting used to thinking on multiple levels (TeX,ConTeXt,MathML, etc.)
Sent with [ProtonMail](https://protonmail.com) Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, July 15, 2020 9:38 AM, David Eric Cox <davidericcox@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 redin MathML? I am producing pdf files exclusively.
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.
[-- Attachment #1.2: Type: text/html, Size: 1551 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Combining colors with matrices
2020-07-15 13:38 Combining colors with matrices David Eric Cox
2020-07-15 14:48 ` David Eric Cox
@ 2020-07-15 18:50 ` Otared Kavian
1 sibling, 0 replies; 3+ messages in thread
From: Otared Kavian @ 2020-07-15 18:50 UTC (permalink / raw)
To: David Eric Cox, mailing list for ConTeXt users
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 <davidericcox@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-15 18:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15 13:38 Combining colors with matrices David Eric Cox
2020-07-15 14:48 ` David Eric Cox
2020-07-15 18:50 ` Otared Kavian
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).