Changes

Jump to navigation Jump to search
1,316 bytes added ,  10:39, 22 February 2006
→‎Not so Simple Maths: How to do it in the Context Way
+ \sum_{j=1}^\infty z^j
\left( \sum_{\scriptstyle n=1 \atop \scriptstyle n \ne j}^\infty Z_j^n \right)
\stopformula
</context>
 
Context provides a wrapper around tex <cmd>pmatrix</cmd>. The above can be typeset in a contextish way as
<texcode>
A more complicated equation:
\definemathmatrix[pmatrix][left={\left(\,},right={\,\right)}]
\placeformula
\startformula
{{\theta_{\text{\CONTEXT}}}^2 \over x+2}
= \startpmatrix
\NC a_{11} \NC a_{12} \NC \ldots \NC a_{1n} \NR
\NC a_{21} \NC a_{22} \NC \ldots \NC a_{2n} \NR
\NC \vdots \NC \vdots \NC \ddots \NC \vdots \NR
\NC a_{n1} \NC a_{n2} \NC \ldots \NC a_{nn} \NR
\stoppmatrix
\startpmatrix b_1 \NR b_2 \NR \vdots \NR b_n \NR \stoppmatrix
+ \sum_{j=1}^\infty z^j
\left( \sum_{\scriptstyle n = 1 \atop \scriptstyle n \ne j}^\infty Z_j^n \right)
\stopformula
</texcode>
<context>
\setuplayout[scale=0.8,width=13cm]
A more complicated equation:
\definemathmatrix[pmatrix][left={\left(\,},right={\,\right)}]
\placeformula
\startformula
{{\theta_{\text{\CONTEXT}}}^2 \over x+2}
= \startpmatrix
\NC a_{11} \NC a_{12} \NC \ldots \NC a_{1n} \NR
\NC a_{21} \NC a_{22} \NC \ldots \NC a_{2n} \NR
\NC \vdots \NC \vdots \NC \ddots \NC \vdots \NR
\NC a_{n1} \NC a_{n2} \NC \ldots \NC a_{nn} \NR
\stoppmatrix
\startpmatrix b_1 \NR b_2 \NR \vdots \NR b_n \NR \stoppmatrix
+ \sum_{j=1}^\infty z^j
\left( \sum_{\scriptstyle n = 1 \atop \scriptstyle n \ne j}^\infty Z_j^n \right)
\stopformula
</context>

Navigation menu