Difference between revisions of "Command/definemathmatrix"
< Command
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] | ||
− | + | [matrix:brackets] | |
− | + | [simplecommand=mymatrix] | |
\startformula | \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 | \stopformula | ||
</context></cd:example></cd:examples> | </context></cd:example></cd:examples> |
Latest revision as of 10:01, 12 May 2024
Contents
\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