Difference between revisions of "Command/definemathmatrix"

From Wiki
Jump to navigation Jump to search
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]
+
\definemathmatrix
[left={\left[},
+
  [mymatrix]
right={\right]}]
+
  [left={\left[},
 +
  right={\right]}]
  
 
\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>

Revision as of 10:00, 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

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: