Difference between revisions of "Command/definemathmatrix"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \definemathmatrix")
 
 
(2 intermediate revisions by the same user not shown)
Line 24: Line 24:
 
</cd:description>
 
</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
 +
\definemathmatrix
 +
  [mymatrix]
 +
  [left={\left[},
 +
  right={\right]}]
 +
 +
\startformula
 +
  \startmymatrix
 +
    \NC a_{11} \NC a_{12} \NC a_{13} \NR
 +
    \NC a_{21} \NC a_{22} \NC a_{23} \NR
 +
    \NC a_{31} \NC a_{32} \NC a_{33} \NR
 +
  \stopmymatrix
 +
\stopformula
 +
</context></cd:example><cd:example title=""><context source="yes">
 
\definemathmatrix[mymatrix]
 
\definemathmatrix[mymatrix]
[left={\left(\thinspace},
+
  [matrix:brackets]
right={\thinspace\right|}]
+
  [simplecommand=mymatrix]
  
 
\startformula
 
\startformula
\startmymatrix
+
  \startmymatrix
\NC a_11 \NC 12 \NC a_13 \NR
+
    \NC a_{11} \NC a_{12} \NC a_{13} \NR
\NC a_21 \NC a_22 \NC a_23 \NR
+
    \NC a_{21} \NC a_{22} \NC a_{23} \NR
\NC a_31 \NC a_32 \NC a_33 \NR
+
    \NC a_{31} \NC a_{32} \NC a_{33} \NR
\stopmymatrix
+
  \stopmymatrix
 
\stopformula
 
\stopformula
 
</context></cd:example></cd:examples>
 
</context></cd:example></cd:examples>

Latest revision as of 10:01, 12 May 2024


\definemathmatrix

Summary

The command \definemathmatrix is used to define the format of a matrix environment.

Settings

\definemathmatrix[...][...][...=...,...]
[...]name
[...]name
...=...,...inherits from \setupmathmatrix

Description

Examples

Example 1

\definemathmatrix
  [mymatrix]
  [left={\left[},
   right={\right]}]

\startformula
  \startmymatrix
    \NC a_{11} \NC a_{12} \NC a_{13} \NR
    \NC a_{21} \NC a_{22} \NC a_{23} \NR
    \NC a_{31} \NC a_{32} \NC a_{33} \NR
  \stopmymatrix
\stopformula

Example 2

\definemathmatrix[mymatrix]
  [matrix:brackets]
  [simplecommand=mymatrix]

\startformula
  \startmymatrix
    \NC a_{11} \NC a_{12} \NC a_{13} \NR
    \NC a_{21} \NC a_{22} \NC a_{23} \NR
    \NC a_{31} \NC a_{32} \NC a_{33} \NR
  \stopmymatrix
\stopformula

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: