emacs.d

My emacs configuration, done in a literate programming fashion using org-mode

git clone git://git.shimmy1996.com/emacs.d.git

math_macros.sty (11546B)

    1 \newcommand{\E}{\mathrm{e}}
    2 \newcommand{\I}{\mathrm{i}}
    3 % Scientific numbers
    4 \newcommand{\Em}{\text{e-}}
    5 \newcommand{\Ep}{\text{e+}}
    6 
    7 \newcommand{\Alpha}{A}
    8 \newcommand{\Beta}{B}
    9 \newcommand{\Epsilon}{E}
   10 
   11 \newcommand{\abs}[1]{\lvert#1\rvert}
   12 \newcommand{\ceil}[1]{\lceil#1\rceil}
   13 \newcommand{\floor}[1]{\lfloor#1\rfloor}
   14 \newcommand{\norm}[1]{\lVert#1\rVert}
   15 \newcommand{\mean}[1]{\bar{#1}}
   16 \newcommand{\conj}[1]{\overline{#1}}
   17 
   18 % Shorthands for mean.
   19 \newcommand{\ba}{\mean{a}}
   20 \newcommand{\bb}{\mean{b}}
   21 \newcommand{\bc}{\mean{c}}
   22 \newcommand{\bd}{\mean{d}}
   23 \newcommand{\be}{\mean{e}}
   24 % \newcommand{\bf}{\mean{f}}
   25 \newcommand{\bg}{\mean{g}}
   26 \newcommand{\bh}{\mean{h}}
   27 \newcommand{\bi}{\mean{i}}
   28 \newcommand{\bj}{\mean{j}}
   29 \newcommand{\bk}{\mean{k}}
   30 \newcommand{\bl}{\mean{l}}
   31 % \newcommand{\bm}{\mean{m}}
   32 \newcommand{\bn}{\mean{n}}
   33 \newcommand{\bo}{\mean{o}}
   34 \newcommand{\bp}{\mean{p}}
   35 \newcommand{\bq}{\mean{q}}
   36 \newcommand{\br}{\mean{r}}
   37 \newcommand{\bs}{\mean{s}}
   38 \newcommand{\bt}{\mean{t}}
   39 \newcommand{\bu}{\mean{u}}
   40 \newcommand{\bv}{\mean{v}}
   41 \newcommand{\bw}{\mean{w}}
   42 \newcommand{\bx}{\mean{x}}
   43 \newcommand{\by}{\mean{y}}
   44 \newcommand{\bz}{\mean{z}}
   45 
   46 \newcommand{\bA}{\mean{A}}
   47 \newcommand{\bB}{\mean{B}}
   48 \newcommand{\bC}{\mean{C}}
   49 \newcommand{\bD}{\mean{D}}
   50 \newcommand{\bE}{\mean{E}}
   51 \newcommand{\bF}{\mean{F}}
   52 \newcommand{\bG}{\mean{G}}
   53 \newcommand{\bH}{\mean{H}}
   54 \newcommand{\bI}{\mean{I}}
   55 \newcommand{\bJ}{\mean{J}}
   56 \newcommand{\bK}{\mean{K}}
   57 \newcommand{\bL}{\mean{L}}
   58 \newcommand{\bM}{\mean{M}}
   59 \newcommand{\bN}{\mean{N}}
   60 \newcommand{\bO}{\mean{O}}
   61 \newcommand{\bP}{\mean{P}}
   62 \newcommand{\bQ}{\mean{Q}}
   63 \newcommand{\bR}{\mean{R}}
   64 \newcommand{\bS}{\mean{S}}
   65 \newcommand{\bT}{\mean{T}}
   66 \newcommand{\bU}{\mean{U}}
   67 \newcommand{\bV}{\mean{V}}
   68 \newcommand{\bW}{\mean{W}}
   69 \newcommand{\bX}{\mean{X}}
   70 \newcommand{\bY}{\mean{Y}}
   71 \newcommand{\bZ}{\mean{Z}}
   72 
   73 \newcommand{\dd}{\mathop{}\,\mathrm{d}}
   74 \newcommand{\der}[2][]{\frac{\mathrm{d}#1}{\mathrm{d}#2}}
   75 \newcommand{\pder}[2][]{\frac{\partial#1}{\partial#2}}
   76 
   77 \newcommand{\geqst}{\geq_{\text{st}}}
   78 \newcommand{\leqst}{\leq_{\text{st}}}
   79 
   80 \newcommand{\pto}{\overset{p}\to}
   81 \newcommand{\lpto}{\overset{p}\longrightarrow}
   82 \newcommand{\dto}{\overset{d}\to}
   83 \newcommand{\ldto}{\overset{d}\longrightarrow}
   84 \newcommand{\asto}{\overset{\text{a.s.}}\longrightarrow}
   85 
   86 \newcommand{\sign}{\operatorname{sign}}
   87 \newcommand{\im}{\operatorname{Im}}
   88 \newcommand{\re}{\operatorname{Re}}
   89 \newcommand{\rank}{\operatorname{rank}}
   90 \newcommand{\trace}{\operatorname{trace}}
   91 \newcommand{\diag}{\operatorname{diag}}
   92 \newcommand{\col}{\operatorname{col}}
   93 \newcommand{\row}{\operatorname{row}}
   94 \newcommand{\arcsinh}{\operatorname{arcsinh}}
   95 \newcommand{\arccosh}{\operatorname{arccosh}}
   96 \newcommand{\arctanh}{\operatorname{arctanh}}
   97 \newcommand{\argmax}{\mathop{\arg\max}}
   98 \newcommand{\argmin}{\mathop{\arg\min}}
   99 
  100 \newcommand{\As}{\text{ as }}
  101 % \newcommand{\And}{\text{ and }}
  102 \newcommand{\To}{\text{ to }}
  103 \newcommand{\Or}{\text{ or }}
  104 \newcommand{\If}{\text{ if }}
  105 \newcommand{\Otherwise}{\text{ otherwise}}
  106 \newcommand{\ForAll}{\text{ for all }}
  107 \newcommand{\For}{\text{ for }}
  108 \newcommand{\Yes}{\text{Yes}}
  109 \newcommand{\No}{\text{No}}
  110 \newcommand{\Num}{\text{\# }}
  111 
  112 \newcommand{\vctr}[1]{\boldsymbol{#1}}
  113 \newcommand{\mtrx}[1]{\bm{#1}}
  114 
  115 % Special
  116 \newcommand{\vzero}{\vctr{0}}
  117 \newcommand{\vone}{\vctr{1}}
  118 % Greek
  119 \newcommand{\valpha}{\vctr{\alpha}}
  120 \newcommand{\vbeta}{\vctr{\beta}}
  121 \newcommand{\vgamma}{\vctr{\gamma}}
  122 \newcommand{\vdelta}{\vctr{\delta}}
  123 \newcommand{\vepsilon}{\vctr{\epsilon}}
  124 \newcommand{\vvarepsilon}{\vctr{\varepsilon}}
  125 \newcommand{\vzeta}{\vctr{\zeta}}
  126 \newcommand{\veta}{\vctr{\eta}}
  127 \newcommand{\vtheta}{\vctr{\theta}}
  128 \newcommand{\vvartheta}{\vctr{\vartheta}}
  129 \newcommand{\vkappa}{\vctr{\kappa}}
  130 \newcommand{\vlambda}{\vctr{\lambda}}
  131 \newcommand{\vmu}{\vctr{\mu}}
  132 \newcommand{\vnu}{\vctr{\nu}}
  133 \newcommand{\vxi}{\vctr{\xi}}
  134 \newcommand{\vpi}{\vctr{\pi}}
  135 \newcommand{\vvarpi}{\vctr{\varpi}}
  136 \newcommand{\vrho}{\vctr{\rho}}
  137 \newcommand{\vvarrho}{\vctr{\varrho}}
  138 \newcommand{\vsigma}{\vctr{\sigma}}
  139 \newcommand{\vvarsigma}{\vctr{\varsigma}}
  140 \newcommand{\vtau}{\vctr{\tau}}
  141 \newcommand{\vupsilon}{\vctr{\upsilon}}
  142 \newcommand{\vphi}{\vctr{\phi}}
  143 \newcommand{\vvarphi}{\vctr{\varphi}}
  144 \newcommand{\vchi}{\vctr{\chi}}
  145 \newcommand{\vpsi}{\vctr{\psi}}
  146 \newcommand{\vomega}{\vctr{\omega}}
  147 % Latin
  148 \newcommand{\va}{\vctr{a}}
  149 \newcommand{\vb}{\vctr{b}}
  150 \newcommand{\vc}{\vctr{c}}
  151 \newcommand{\vd}{\vctr{d}}
  152 \newcommand{\ve}{\vctr{e}}
  153 \newcommand{\vf}{\vctr{f}}
  154 \newcommand{\vg}{\vctr{g}}
  155 \newcommand{\vh}{\vctr{h}}
  156 \newcommand{\vi}{\vctr{i}}
  157 \newcommand{\vj}{\vctr{j}}
  158 \newcommand{\vk}{\vctr{k}}
  159 \newcommand{\vl}{\vctr{l}}
  160 \newcommand{\vm}{\vctr{m}}
  161 \newcommand{\vn}{\vctr{n}}
  162 \newcommand{\vo}{\vctr{o}}
  163 \newcommand{\vp}{\vctr{p}}
  164 \newcommand{\vq}{\vctr{q}}
  165 \newcommand{\vr}{\vctr{r}}
  166 \newcommand{\vs}{\vctr{s}}
  167 \newcommand{\vt}{\vctr{t}}
  168 \newcommand{\vu}{\vctr{u}}
  169 \newcommand{\vv}{\vctr{v}}
  170 \newcommand{\vw}{\vctr{w}}
  171 \newcommand{\vx}{\vctr{x}}
  172 \newcommand{\vy}{\vctr{y}}
  173 \newcommand{\vz}{\vctr{z}}
  174 
  175 % Special
  176 \newcommand{\mZero}{\mtrx{0}}
  177 \newcommand{\mOne}{\mtrx{1}}
  178 % Greek
  179 \newcommand{\mGamma}{\mtrx{\Gamma}}
  180 \newcommand{\mDelta}{\mtrx{\Delta}}
  181 \newcommand{\mTheta}{\mtrx{\Theta}}
  182 \newcommand{\mLambda}{\mtrx{\Lambda}}
  183 \newcommand{\mXi}{\mtrx{\Xi}}
  184 \newcommand{\mPi}{\mtrx{\Pi}}
  185 \newcommand{\mSigma}{\mtrx{\Sigma}}
  186 \newcommand{\mUpsilon}{\mtrx{\Upsilon}}
  187 \newcommand{\mPhi}{\mtrx{\Phi}}
  188 \newcommand{\mPsi}{\mtrx{\Psi}}
  189 \newcommand{\mOmega}{\mtrx{\Omega}}
  190 % Latin
  191 \newcommand{\mA}{\mtrx{A}}
  192 \newcommand{\mB}{\mtrx{B}}
  193 \newcommand{\mC}{\mtrx{C}}
  194 \newcommand{\mD}{\mtrx{D}}
  195 \newcommand{\mE}{\mtrx{E}}
  196 \newcommand{\mF}{\mtrx{F}}
  197 \newcommand{\mG}{\mtrx{G}}
  198 \newcommand{\mH}{\mtrx{H}}
  199 \newcommand{\mI}{\mtrx{I}}
  200 \newcommand{\mJ}{\mtrx{J}}
  201 \newcommand{\mK}{\mtrx{K}}
  202 \newcommand{\mL}{\mtrx{L}}
  203 \newcommand{\mM}{\mtrx{M}}
  204 \newcommand{\mN}{\mtrx{N}}
  205 \newcommand{\mO}{\mtrx{O}}
  206 \newcommand{\mP}{\mtrx{P}}
  207 \newcommand{\mQ}{\mtrx{Q}}
  208 \newcommand{\mR}{\mtrx{R}}
  209 \newcommand{\mS}{\mtrx{S}}
  210 \newcommand{\mT}{\mtrx{T}}
  211 \newcommand{\mU}{\mtrx{U}}
  212 \newcommand{\mV}{\mtrx{V}}
  213 \newcommand{\mW}{\mtrx{W}}
  214 \newcommand{\mX}{\mtrx{X}}
  215 \newcommand{\mY}{\mtrx{Y}}
  216 \newcommand{\mZ}{\mtrx{Z}}
  217 
  218 \newcommand{\tr}{^{\mathsf{T}}}
  219 \newcommand{\ip}[1]{\langle#1\rangle}
  220 
  221 \newcommand{\set}[1]{\mathbb{#1}}
  222 \newcommand{\field}[1]{\mathcal{#1}}
  223 \renewcommand{\emptyset}{\varnothing}
  224 
  225 % Latin
  226 \newcommand{\sA}{\set{A}}
  227 \newcommand{\sB}{\set{B}}
  228 \newcommand{\sC}{\set{C}}
  229 \newcommand{\sD}{\set{D}}
  230 \newcommand{\sE}{\set{E}}
  231 \newcommand{\sF}{\set{F}}
  232 \newcommand{\sG}{\set{G}}
  233 \newcommand{\sH}{\set{H}}
  234 \newcommand{\sI}{\set{I}}
  235 \newcommand{\sJ}{\set{J}}
  236 \newcommand{\sK}{\set{K}}
  237 \newcommand{\sL}{\set{L}}
  238 \newcommand{\sM}{\set{M}}
  239 \newcommand{\sN}{\set{N}}
  240 \newcommand{\sO}{\set{O}}
  241 \newcommand{\sP}{\set{P}}
  242 \newcommand{\sQ}{\set{Q}}
  243 \newcommand{\sR}{\set{R}}
  244 \newcommand{\sS}{\set{S}}
  245 \newcommand{\sT}{\set{T}}
  246 \newcommand{\sU}{\set{U}}
  247 \newcommand{\sV}{\set{V}}
  248 \newcommand{\sW}{\set{W}}
  249 \newcommand{\sX}{\set{X}}
  250 \newcommand{\sY}{\set{Y}}
  251 \newcommand{\sZ}{\set{Z}}
  252 
  253 % Latin
  254 \newcommand{\fA}{\field{A}}
  255 \newcommand{\fB}{\field{B}}
  256 \newcommand{\fC}{\field{C}}
  257 \newcommand{\fD}{\field{D}}
  258 \newcommand{\fE}{\field{E}}
  259 \newcommand{\fF}{\field{F}}
  260 \newcommand{\fG}{\field{G}}
  261 \newcommand{\fH}{\field{H}}
  262 \newcommand{\fI}{\field{I}}
  263 \newcommand{\fJ}{\field{J}}
  264 \newcommand{\fK}{\field{K}}
  265 \newcommand{\fL}{\field{L}}
  266 \newcommand{\fM}{\field{M}}
  267 \newcommand{\fN}{\field{N}}
  268 \newcommand{\fO}{\field{O}}
  269 \newcommand{\fP}{\field{P}}
  270 \newcommand{\fQ}{\field{Q}}
  271 \newcommand{\fR}{\field{R}}
  272 \newcommand{\fS}{\field{S}}
  273 \newcommand{\fT}{\field{T}}
  274 \newcommand{\fU}{\field{U}}
  275 \newcommand{\fV}{\field{V}}
  276 \newcommand{\fW}{\field{W}}
  277 \newcommand{\fX}{\field{X}}
  278 \newcommand{\fY}{\field{Y}}
  279 \newcommand{\fZ}{\field{Z}}
  280 
  281 \renewcommand{\subseteq}{\subset}
  282 
  283 \newcommand{\rInd}{\mathbf{1}}
  284 \newcommand{\rPoi}{\operatorname{Poisson}}
  285 \newcommand{\rBern}{\operatorname{Bern}}
  286 \newcommand{\rNorm}{\mathcal{N}}
  287 
  288 % Probability
  289 \newcommand{\pr}{\mathbb{P}}
  290 % Expectation
  291 \newcommand{\ev}{\mathbb{E}}
  292 % Variance
  293 \newcommand{\var}{\operatorname{Var}}
  294 % Covariance
  295 \newcommand{\cov}{\operatorname{Cov}}
  296 % Correlation
  297 \newcommand{\corr}{\operatorname{Cor}}
  298 % Skewness
  299 \newcommand{\skw}{\operatorname{Skw}}
  300 % Kurtosis
  301 \newcommand{\kur}{\operatorname{Kur}}
  302 
  303 % Random Vectors
  304 \newcommand{\randvctr}[1]{\mathbf{#1}}
  305 % Random Scalars
  306 \newcommand{\rind}{\bm{1}}
  307 \newcommand{\randvar}[1]{#1}
  308 
  309 \newcommand{\rX}{\randvar{X}}
  310 \newcommand{\rY}{\randvar{Y}}
  311 \newcommand{\rZ}{\randvar{Z}}
  312 \newcommand{\rvX}{\randvctr{X}}
  313 \newcommand{\rvY}{\randvctr{Y}}
  314 \newcommand{\rvZ}{\randvctr{Z}}
  315 
  316 \newcommand{\estm}[1]{\hat{#1}}
  317 
  318 % Special
  319 \newcommand{\hsigmasq}{\estm{\sigma^{2}}}
  320 % Greek
  321 \newcommand{\halpha}{\estm{\alpha}}
  322 \newcommand{\hbeta}{\estm{\beta}}
  323 \newcommand{\hgamma}{\estm{\gamma}}
  324 \newcommand{\hdelta}{\estm{\delta}}
  325 \newcommand{\hepsilon}{\estm{\epsilon}}
  326 \newcommand{\hvarepsilon}{\estm{\varepsilon}}
  327 \newcommand{\hzeta}{\estm{\zeta}}
  328 \newcommand{\heta}{\estm{\eta}}
  329 \newcommand{\htheta}{\estm{\theta}}
  330 \newcommand{\hvartheta}{\estm{\vartheta}}
  331 \newcommand{\hkappa}{\estm{\kappa}}
  332 \newcommand{\hlambda}{\estm{\lambda}}
  333 \newcommand{\hmu}{\estm{\mu}}
  334 \newcommand{\hnu}{\estm{\nu}}
  335 \newcommand{\hxi}{\estm{\xi}}
  336 \newcommand{\hpi}{\estm{\pi}}
  337 \newcommand{\hvarpi}{\estm{\varpi}}
  338 \newcommand{\hrho}{\estm{\rho}}
  339 \newcommand{\hvarrho}{\estm{\varrho}}
  340 \newcommand{\hsigma}{\estm{\sigma}}
  341 \newcommand{\hvarsigma}{\estm{\varsigma}}
  342 \newcommand{\htau}{\estm{\tau}}
  343 \newcommand{\hupsilon}{\estm{\upsilon}}
  344 \newcommand{\hphi}{\estm{\phi}}
  345 \newcommand{\hvarphi}{\estm{\varphi}}
  346 \newcommand{\hchi}{\estm{\chi}}
  347 \newcommand{\hpsi}{\estm{\psi}}
  348 \newcommand{\homega}{\estm{\omega}}
  349 
  350 \newcommand{\hGamma}{\estm{\Gamma}}
  351 \newcommand{\hDelta}{\estm{\Delta}}
  352 \newcommand{\hTheta}{\estm{\Theta}}
  353 \newcommand{\hLambda}{\estm{\Lambda}}
  354 \newcommand{\hXi}{\estm{\Xi}}
  355 \newcommand{\hPi}{\estm{\Pi}}
  356 \newcommand{\hSigma}{\estm{\Sigma}}
  357 \newcommand{\hUpsilon}{\estm{\Upsilon}}
  358 \newcommand{\hPhi}{\estm{\Phi}}
  359 \newcommand{\hPsi}{\estm{\Psi}}
  360 \newcommand{\hOmega}{\estm{\Omega}}
  361 
  362 % Latin
  363 \newcommand{\ha}{\estm{a}}
  364 \newcommand{\hb}{\estm{b}}
  365 \newcommand{\hc}{\estm{c}}
  366 \newcommand{\hd}{\estm{d}}
  367 \newcommand{\he}{\estm{e}}
  368 \newcommand{\hf}{\estm{f}}
  369 \newcommand{\hg}{\estm{g}}
  370 \newcommand{\hh}{\estm{h}}
  371 \newcommand{\hi}{\estm{i}}
  372 \newcommand{\hj}{\estm{j}}
  373 \newcommand{\hk}{\estm{k}}
  374 \newcommand{\hl}{\estm{l}}
  375 %\newcommand{\hm}{\estm{m}}
  376 \newcommand{\hn}{\estm{n}}
  377 \newcommand{\ho}{\estm{o}}
  378 \newcommand{\hp}{\estm{p}}
  379 \newcommand{\hq}{\estm{q}}
  380 \newcommand{\hr}{\estm{r}}
  381 \newcommand{\hs}{\estm{s}}
  382 %\newcommand{\ht}{\estm{t}}
  383 \newcommand{\hu}{\estm{u}}
  384 \newcommand{\hv}{\estm{v}}
  385 \newcommand{\hw}{\estm{w}}
  386 \newcommand{\hx}{\estm{x}}
  387 \newcommand{\hy}{\estm{y}}
  388 \newcommand{\hz}{\estm{z}}
  389 
  390 \newcommand{\hA}{\estm{A}}
  391 \newcommand{\hB}{\estm{B}}
  392 \newcommand{\hC}{\estm{C}}
  393 \newcommand{\hD}{\estm{D}}
  394 \newcommand{\hE}{\estm{E}}
  395 \newcommand{\hF}{\estm{F}}
  396 \newcommand{\hG}{\estm{G}}
  397 \newcommand{\hH}{\estm{H}}
  398 \newcommand{\hI}{\estm{I}}
  399 \newcommand{\hJ}{\estm{J}}
  400 \newcommand{\hK}{\estm{K}}
  401 \newcommand{\hL}{\estm{L}}
  402 \newcommand{\hM}{\estm{M}}
  403 \newcommand{\hN}{\estm{N}}
  404 \newcommand{\hO}{\estm{O}}
  405 \newcommand{\hP}{\estm{P}}
  406 \newcommand{\hQ}{\estm{Q}}
  407 \newcommand{\hR}{\estm{R}}
  408 \newcommand{\hS}{\estm{S}}
  409 \newcommand{\hT}{\estm{T}}
  410 \newcommand{\hU}{\estm{U}}
  411 \newcommand{\hV}{\estm{V}}
  412 \newcommand{\hW}{\estm{W}}
  413 \newcommand{\hX}{\estm{X}}
  414 \newcommand{\hY}{\estm{Y}}
  415 \newcommand{\hZ}{\estm{Z}}