- #1
- 7,861
- 1,598
Does LaTex have the ability to define typographic functions, in a manner similar to the way Postscript can? I've only studied LaTex by following examples and I haven't seen any with that degree of sophistication.
I'm not talking about whether one can write things like [itex] \sin{x} [/itex]. As an example of what I mean, can you could write a function (or "macro") to represent a 3x3 matrix in terms of a letter that you would input. So matrix-macro(a) would give
\begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{bmatrix}
and matrix_macro(b) would give
\begin{bmatrix} b_{11} & b_{12} & b_{13}\\ b_{21} & b_{22} & b_{23} \\ b_{31} & b_{32} & b_{33} \end{bmatrix}
I'm not talking about whether one can write things like [itex] \sin{x} [/itex]. As an example of what I mean, can you could write a function (or "macro") to represent a 3x3 matrix in terms of a letter that you would input. So matrix-macro(a) would give
\begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{bmatrix}
and matrix_macro(b) would give
\begin{bmatrix} b_{11} & b_{12} & b_{13}\\ b_{21} & b_{22} & b_{23} \\ b_{31} & b_{32} & b_{33} \end{bmatrix}