]>
gitweb.michael.orlitzky.com - mjotex.git/blob - mjo-common.tex
2 % Only the most commonly-used macros. Needed by everything else.
5 % Place the argument in matching left/right parntheses.
6 \providecommand*
{\of}[1]{ \left(
{#1}\right)
}
8 % Group terms using parentheses.
9 \providecommand*
{\qty}[1]{ \left(
{#1}\right)
}
11 % Group terms using square brackets.
12 \providecommand*
{\sqty}[1]{ \left[{#1}\right] }
14 % Create a set from the given elements
15 \providecommand*
{\set}[1]{\left\lbrace{#1}\right\rbrace}
17 % A set comprehension, where the ``such that...'' bar is added
18 % automatically. The bar was chosen over a colon to avoid ambiguity
19 % with the L : V -> V notation. We can't leverage \set here because \middle
20 % needs \left and \right present.
21 \providecommand*
{\setc}[2]{\left\lbrace{#1}\
\middle|\
{#2} \right\rbrace}
24 \providecommand*
{\pair}[2]{ \left(
{#1},
{#2}\right)
}
26 % The Cartesian product of two things.
27 \providecommand*
{\cartprod}[2]{ {#1}\times{#2} }
29 % The Cartesian product of three things.
30 \providecommand*
{\cartprodthree}[3]{ \cartprod{{#1}}{\cartprod{{#2}}{{#3}}} }
32 % The factorial operator.
33 \providecommand*
{\factorial}[1]{ {#1}!
}
38 % All of the product spaces (for example, R^n) that follow default to
39 % an exponent of ``n'', but that exponent can be changed by providing
40 % it as an optional argument. If the exponent given is ``1'', then it
41 % will be omitted entirely.
44 % The natural n-space, N x N x N x ... x N.
45 \providecommand*
{\Nn}[1][n
]{
46 \mathbb{N
}\if\detokenize{#1}\detokenize{1}{}\else^
{#1}\fi
49 % The integral n-space, Z x Z x Z x ... x Z.
50 \providecommand*
{\Zn}[1][n
]{
51 \mathbb{Z
}\if\detokenize{#1}\detokenize{1}{}\else^
{#1}\fi
54 % The rational n-space, Q x Q x Q x ... x Q.
55 \providecommand*
{\Qn}[1][n
]{
56 \mathbb{Q
}\if\detokenize{#1}\detokenize{1}{}\else^
{#1}\fi
59 % The real n-space, R x R x R x ... x R.
60 \providecommand*
{\Rn}[1][n
]{
61 \mathbb{R
}\if\detokenize{#1}\detokenize{1}{}\else^
{#1}\fi
64 % The complex n-space, C x C x C x ... x C.
65 \providecommand*
{\Cn}[1][n
]{
66 \mathbb{C
}\if\detokenize{#1}\detokenize{1}{}\else^
{#1}\fi