Period at the end of a "alignment block".
I have a macro to typeset function definitions: \define[5]\functionarray { \startalign[n=4, align={left,right,center,left}] \NC #1: \NC #2 \NC \to \NC #3 \NR \NC \NC #4 \NC \mapsto \NC #5 \stopalign } I use it like this: (notice the period at the end) \startformula \functionarray{f}{X}{Y}{x}{f(x)}. \stopformula I get the following error: Display math should end with \Ustopdisplaymath ... If I remove the ".", the error does not happen. How should I implement my "functionarray"? Thanks, André Caldas.
On Mon, 10 Sep 2012, Andre Caldas wrote:
I have a macro to typeset function definitions:
\define[5]\functionarray { \startalign[n=4, align={left,right,center,left}] \NC #1: \NC #2 \NC \to \NC #3 \NR \NC \NC #4 \NC \mapsto \NC #5 \stopalign }
I use it like this: (notice the period at the end) \startformula \functionarray{f}{X}{Y}{x}{f(x)}. \stopformula
I get the following error: Display math should end with \Ustopdisplaymath ...
If I remove the ".", the error does not happen.
How should I implement my "functionarray"?
Use mathmatrix. \definemathmatrix[functionarray][n=4, align={left,right,middle,left}, distance=0.2em] \define[5]\functionarray {\startfunctionarray \NC #1: \NC #2 \NC \to \NC #3 \NR \NC \NC #4 \NC \mapsto \NC #5 \NR \stopfunctionarray} Aditya
participants (2)
-
Aditya Mahajan
-
Andre Caldas