# Math equations # Document type: Value :article :amsmath # Use brackets around jot to prevent it from taking "1em" as argument. :{}:1em # Controls math line spacing :document A document containing some equations and matrices.
:Equations # The def! macro makes it easier to use LaTeX \newcommand. :Log:0:{ :Log } :equation* :split :5 :5 = 5 # A trailing apostrophe indicates that the first argument is optional. :3:4 :3:16 = 4 :split :equation* :equation* (1 + 2 + 3) = :1 + :2 + :3 :equation* :align* [ > 0 + 1 + 2 + + 99 + 100 > (0 + 100) + (1 + 99) + + (49 + 51) + 50 > 5050 ] :align* :align* [ = 0 + 1 + 2 + + (n - 1) + n; = n :n:2 + :n:2; = :n^2:2 + :n:2; = n :{n + 1}:2; ] :align*
:Matrices :math :X = :bmatrix [ |1|0|0| |0|1|0| |0|0|1| ] :bmatrix = # ~ denotes an empty (nil) value. :bmatrix [1|~|~; ~|1|~; ~|~|1] :bmatrix :math :document