local_cmmds.tex: Add \order and \cf commands
[thesis.git] / src / local_cmmds.tex
1 % Fourier Transform to angular momentum space
2 \newcommand{\Four}[1]{\ensuremath{{\mathcal F}\left\{ {#1} \right\}}}
3 % Fourier Transform to frequency space
4 \newcommand{\Fourf}[1]{\ensuremath{{\mathcal F}_f\left\{ {#1} \right\}}}
5
6 % Symbol denoting the Langevin function
7 \newcommand{\Langevin}{\ensuremath{\mathcal{L}}}
8 % Symbol denoting big-O order of #1
9 \newcommand{\order}[1]{\ensuremath{\mathcal{O}\p({#1})}}
10
11 % Integral from #1 to #2 of #4 with respect to #3
12 \newcommand{\integral}[4]{\ensuremath{\int_{#1}^{#2} {#4} \dd{#3}}}
13 % Integral from -infty to +infty of #2 with respect to #1
14 \newcommand{\iInfInf}[2]{\integral{-\infty}{\infty}{#1}{#2}}
15 % Integral from 0 to +infty of #2 with respect to #1
16 % note that the second char in the name is a capital o, not a 0
17 % because ?Latex doesn't allow digits in command names
18 \newcommand{\iOInf}[2]{\integral{0}{\infty}{#1}{#2}}
19 % #3 evaluated at #2 and #1
20 \newcommand{\evaluated}[3]{\ensuremath{\left.{#3}\right|_{#1}^{#2}}}
21 % #2 evaluated at #1
22 \newcommand{\eval}[2]{\ensuremath{\left.{#2}\right|_{#1}}}
23 % evaluated at infty and -infty
24 \newcommand{\eInfInf}[1]{\evaluated{-\infty}{\infty}{#1}}
25 % evaluated at infty and 0
26 \newcommand{\eOInf}[1]{\evaluated{0}{\infty}{#1}}
27
28 % we do a lot of lim t_T -> infty, so macro that out
29 % lim as #1 -> infty
30 \newcommand{\limInf}[1]{\ensuremath{\lim_{{#1}\rightarrow \infty}}}
31 \newcommand{\limT}{\limInf{t_T}}
32 \newcommand{\normLimT}{\limT \frac{1}{t_T}\ } % '\ ' for a normal space
33 % lim as t_T -> infty of integral from -t_T/2 to t_T/2 of #1 with respect to t
34 \newcommand{\iLimT}[1]{\normLimT \integral{-t_T/2}{t_T/2}{t}{#1}}
35
36 \newcommand{\magSq}[1]{\ensuremath{\left|{#1}\right|^2}}
37 \newcommand{\PSD}{\ensuremath{\operatorname{PSD}}}
38
39 % complex conjugate
40 \newcommand{\conj}[1]{\ensuremath{\overline{#1}}}
41
42 % Symbol denoting the contour C
43 \newcommand{\C}{\ensuremath{\mathcal{C}}}
44 % Integral about contour C of #1 with respect to z
45 \newcommand{\iC}[1]{\integral{\C}{}{z}{#1}}
46 \newcommand{\Reals}{\ensuremath{\mathds{R}}}
47 \newcommand{\Imags}{\ensuremath{\mathds{I}}}
48 \newcommand{\Real}{\ensuremath{\operatorname{Re}}}
49 \newcommand{\Imag}{\ensuremath{\operatorname{Im}}}
50 \newcommand{\ResX}[3]{\operatorname{Res}\left({{#1}={#2}},{#3}\right)}
51 \newcommand{\Res}[2]{\ResX{z}{#1}{#2}}
52 \newcommand{\limX}[2]{\lim_{{#1} \rightarrow {#2}}}
53 \newcommand{\limZ}[1]{\limX{z}{#1}}
54 \newcommand{\limZp}{\limZ{z_p}}
55 \newcommand{\CPV}{\ensuremath{\mathds{P}}}
56
57 \newcommand{\supScript}[1]{\ensuremath{^{\text{#1}}}}
58 \newcommand{\st}{\supScript{st}}
59 \newcommand{\nd}{\supScript{nd}}
60 \newcommand{\rd}{\supScript{rd}}
61 \newcommand{\sth}{\supScript{th}} % th, TH already taken
62
63 \newcommand{\colA}[1]{\textcolor{red}{#1}}
64 \newcommand{\colB}[1]{\textcolor{blue}{#1}}
65 \definecolor{purple}{rgb}{0.8, 0, 0.8}
66 \newcommand{\colAB}[1]{\textcolor{purple}{#1}}
67 \newcommand{\colC}[1]{\textcolor{green}{#1}}
68
69 \newcommand{\cf}{\emph{cf.}} % "confer" or "bring together" / "compare"
70 \newcommand{\ie}{\emph{i.e.}} % "id est" or "in other words"
71 \newcommand{\insilico}{\emph{in silico}} % quasi latin for "on a computer"
72 \newcommand{\invitro}{\emph{in vitro}}   % latin for "in glass"
73 \newcommand{\invivo}{\emph{in vivo}}     % latin for "in living organisms"
74
75 \newcommand{\ensuretext}[1]{\ensuremath{\text{#1}}}
76 % Hyeon and Thirumalai equation number #1
77 \newcommand{\HTeq}[1]{\ensuretext{\emph{H\&T eq.\ {#1}}}}
78 \newcommand{\kT}{\ensuremath{k_B T}}
79 \newcommand{\bt}{\ensuremath{\beta}}
80 \newcommand{\fs}{\ensuremath{f^*}}
81 \newcommand{\dx}{\ensuremath{\Delta x(\fs)}}
82 \newcommand{\dxs}[1]{\ensuremath{\Delta x_{#1}(\fs)}} % for subscripting
83 \newcommand{\FO}{\ensuremath{\Delta F_0^\ddagger(\fs)}}
84 \newcommand{\vD}{\ensuremath{\nu_D(\fs)}}
85 \newcommand{\vDs}[1]{\ensuremath{\nu_{D{#1}}(\fs)}}
86 \newcommand{\kexp}{\ensuremath{\vD e^{-\bt \FO}}}
87 \newcommand{\kexps}[1]{\ensuremath{\vDs{#1} e^{-\bt_{#1} \FO_{#1}}}}
88 \newcommand{\kf}{\ensuremath{k(\fs)}}
89 \newcommand{\kfs}[1]{\ensuremath{k_{#1}(\fs)}}
90 %\newcommand{\avg}[1]{\ensuremath{\left\langle {#1} \right\rangle}}
91 \newcommand{\abs}[1]{\ensuremath{\lvert {#1} \rvert}}
92 \newcommand{\logp}[1]{\ensuremath{\log\!\!\left( {#1} \right)}}
93 % \! is a negative thin space to get the paren closer to the log
94 %\renewcommand{\r}{\ensuremath{r_f}}
95 %\newcommand{\rs}[1]{\ensuremath{r_{f{#1}}}}% to avoid double-subscripting
96 \newcommand{\ep}{\varepsilon}
97
98 \newcommand{\species}[1]{\emph{#1}} % \species{Homo sapiens}
99
100 % Chemicals
101 \newcommand{\diNaHPO}{Na\textsubscript{2}HPO\textsubscript{4}}
102 \newcommand{\NadiHPO}{NaH\textsubscript{2}PO\textsubscript{4}}
103
104 % Workaround for inline minted markup
105 %   http://code.google.com/p/minted/issues/detail?id=15
106 % usage: \imint{language}|value|
107 \NewDocumentCommand\imint{mv}{\texttt{#2}}
108
109 % Aliases for citations
110 \defcitealias{calibcant}{calibcant}
111 \defcitealias{comedi}{Comedi}
112 \defcitealias{cygwin}{Cygwin}
113 \defcitealias{cython}{Cython}
114 \defcitealias{epics}{EPICS}
115 \defcitealias{gentoo}{Gentoo}
116 \defcitealias{h5config}{h5config}
117 \defcitealias{hdf5}{HDF5}
118 \defcitealias{interix}{Interix}
119 \defcitealias{king10}{sawsim}
120 \defcitealias{labview}{LabVIEW}
121 \defcitealias{prefix}{Gentoo Prefix}
122 \defcitealias{pyafm}{pyafm}
123 \defcitealias{pycomedi}{pycomedi}
124 \defcitealias{pymodbus}{pymodbus}
125 \defcitealias{pymol}{PyMol}
126 \defcitealias{pypid}{pypid}
127 \defcitealias{pypiezo}{pypiezo}
128 \defcitealias{python}{Python}
129 \defcitealias{sandal09}{Hooke}
130 \defcitealias{stepper}{stepper}
131 \defcitealias{beazley96}{SWIG}
132 \defcitealias{unfold-protein}{unfold-protein}
133 \defcitealias{wavemetrics-igor}{IGOR Pro}
134 \defcitealias{xcode}{Xcode}
135 \defcitealias{yaml}{YAML}
136
137 \newcommand{\Comedi}{\citetalias{comedi}}
138 \newcommand{\Hooke}{\citetalias{sandal09}}
139 \newcommand{\calibcant}{\citetalias{calibcant}}
140 \newcommand{\hFconfig}{\citetalias{h5config}}
141 \newcommand{\pyafm}{\citetalias{pyafm}}
142 \newcommand{\pypid}{\citetalias{pypid}}
143 \newcommand{\pypiezo}{\citetalias{pypiezo}}
144 \newcommand{\pycomedi}{\citetalias{pycomedi}}
145 \newcommand{\pysawsim}{\texttt{pysawsim}}
146 \newcommand{\sawsim}{\citetalias{king10}}
147 \newcommand{\stepper}{\citetalias{stepper}}
148 \newcommand{\unfoldprotein}{\citetalias{unfold-protein}}