]> gitweb.michael.orlitzky.com - mjotex.git/blob - mjo-common.tex
Ship a style file that makes it easy to include "everything."
[mjotex.git] / mjo-common.tex
1 %
2 % Only the most commonly-used macros. Needed by everything else.
3 %
4
5 % Place the argument in matching left/right parntheses.
6 \providecommand*{\of}[1]{ \left( {#1} \right) }
7
8 % Group terms using parentheses.
9 \providecommand*{\qty}[1]{ \left( {#1} \right) }
10
11 % Create a set from the given elements
12 \providecommand*{\set}[1]{ \left\lbrace {#1} \right\rbrace }
13
14 % A set comprehension, where the ``such that...'' bar is added
15 % automatically. The bar was chosen over a colon to avoid ambiguity
16 % with the L : V -> V notation. We can't leverage \set here because \middle
17 % needs \left and \right present.
18 \providecommand*{\setc}[2]{ \left\lbrace {#1}\ \middle|\ {#2} \right\rbrace }
19
20 % A pair of things.
21 \providecommand*{\pair}[2]{ \left( {#1}, {#2} \right) }