Difference between revisions of "Command/definemathmatrix"

From Wiki
Jump to navigation Jump to search
 
Line 28: Line 28:
 
   [left={\left[},
 
   [left={\left[},
 
   right={\right]}]
 
   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]
 +
  [matrix:brackets]
 +
  [simplecommand=mymatrix]
  
 
\startformula
 
\startformula

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: