Debian Codegraph @

texmf-dist/doc/latex/hepthesis/example/mythesismath.sty

raw
1 \ProvidesPackage{thesismath}[2005/11/01]
2
3 \DeclareRobustCommand{\thesismath}[1]{\ensuremath{\maybebmsf{#1}}}
4 \DeclareRobustCommand{\parenths}[1]{\thesismath{\left({#1}\right)}}
5 \DeclareRobustCommand{\braces}[1]{\thesismath{\left\{{#1}\right\}}}
6 \DeclareRobustCommand{\angles}[1]{\thesismath{\left\langle{#1}\right\rangle}}
7 \DeclareRobustCommand{\sqbracs}[1]{\thesismath{\left[{#1}\right]}}
8 \DeclareRobustCommand{\mods}[1]{\thesismath{\left\lvert{#1}\right\rvert}}
9 \DeclareRobustCommand{\modsq}[1]{\thesismath{\mods{#1}^2}}
10 \DeclareRobustCommand{\dblmods}[1]{\thesismath{\left\lVert{#1}\right\rVert}}
11 \DeclareRobustCommand{\expOf}[1]{\thesismath{\exp{\!\parenths{#1}}}}
12 \DeclareRobustCommand{\eexp}[1]{\thesismath{e^{#1}}}
13 \DeclareRobustCommand{\plusquad}{\thesismath{\oplus}}
14 \DeclareRobustCommand{\logOf}[1]{\log\!\parenths{#1}}
15 \DeclareRobustCommand{\lnOf}[1]{\ln\!\parenths{#1}}
16 \DeclareRobustCommand{\ofOrder}[1]{\thesismath{ \mathcal{O}\parenths{#1} }}
17 \DeclareRobustCommand{\about}{\thesismath{\sim\!\,}}
18
19 %% Vectors, tuples and sets
20 \DeclareRobustCommand{\cross}{\thesismath{\times}\xspace}
21 \DeclareRobustCommand{\bvec}[1]{\thesismath{\bm{#1}}\xspace}
22 \DeclareRobustCommand{\colset}[1]{\thesismath{\begin{Bmatrix}#1\end{Bmatrix}}\xspace}
23 \DeclareRobustCommand{\coltuple}[1]{\thesismath{\begin{pmatrix}#1\end{pmatrix}}\xspace}
24 \DeclareRobustCommand{\colvector}[1]{\thesismath{\begin{pmatrix}#1\end{pmatrix}}\xspace}
25 \DeclareRobustCommand{\colthreevec}[3]{\thesismath{\begin{pmatrix}#1\\ #2\\ #3\end{pmatrix}}\xspace}
26 \DeclareRobustCommand{\rowset}[1]{\braces{#1}\xspace}
27 \DeclareRobustCommand{\rowtuple}[1]{\parenths{#1}\xspace}
28 \DeclareRobustCommand{\rowvector}[1]{\parenths{#1}\xspace}
29 \DeclareRobustCommand{\rowthreevec}[3]{\parenths{{#1}, {#2}, {#3}}\xspace}
30
31 %% Ranges
32 \DeclareRobustCommand{\rangeSS}[1]{\parenths{#1}\xspace}
33 \DeclareRobustCommand{\rangeSH}[1]{\left({#1}\right]\xspace}
34 \DeclareRobustCommand{\rangeHS}[1]{\left[{#1}\right)\xspace}
35 \DeclareRobustCommand{\rangeHH}[1]{\sqbracs{#1}\xspace}
36 \DeclareRobustCommand{\softrange}[1]{\rangeSS{#1}}
37 \DeclareRobustCommand{\hardrange}[1]{\rangeHH{#1}}
38
39 %% Matrix
40 \DeclareRobustCommand{\boldmatrix}[1]{\thesismath{\bm{\mathrm{#1}}}\xspace}
41 \DeclareRobustCommand{\transposeT}{\MathUpright{T}\,}
42 \DeclareRobustCommand{\hermitianT}{\dagger}
43 \DeclareRobustCommand{\twomatrix}[2]{\thesismath{\begin{pmatrix}#1\\ #2\end{pmatrix}}\xspace}
44 \DeclareRobustCommand{\threematrix}[3]{\thesismath{\begin{pmatrix}#1\\ #2\\ #3\end{pmatrix}}\xspace}
45
46 %% Differentials
47 \DeclareRobustCommand{\diff}[1]{\thesismath{\mathrm{d} #1}}
48 \DeclareRobustCommand{\pdiff}[1]{\thesismath{\partial #1}}
49 \DeclareRobustCommand{\dByd}[2]{\thesismath{ \frac{\diff{#1}}{\diff{#2}} }}
50 \DeclareRobustCommand{\pdByd}[2]{\thesismath{ \frac{\pdiff{#1}}{\pdiff{#2}} }}
51 \DeclareRobustCommand{\DeltaVec}[1]{\thesismath{\boldsymbol{\Delta}\mathbf{#1}}}
52 \DeclareRobustCommand{\DeltaN}[1]{\thesismath{\Delta #1}}
53 \DeclareRobustCommand{\deltaVec}[1]{\thesismath{\boldsymbol{\delta}\mathbf{#1}}}
54 \DeclareRobustCommand{\deltaN}[1]{\thesismath{\delta #1}}
55 \DeclareRobustCommand{\d}[1]{\thesismath{\mathrm{d}#1}}
56
57 %% Complex numbers
58 \DeclareRobustCommand{\I}{\thesismath{\imath}}
59 \let\@oldRe\Re
60 \let\@oldIm\Im
61 \DeclareRobustCommand{\Im}{\thesismath{ \@oldIm{}\mathfrak{m} }\xspace}
62 \DeclareRobustCommand{\Re}{\thesismath{ \@oldRe{}\mathfrak{e}\mspace{3mu} }\xspace}
63 \DeclareRobustCommand{\ImaginaryPart}[1]{\thesismath{ \,\Im\!\,\braces{#1} }\xspace}
64 \DeclareRobustCommand{\RealPart}[1]{\thesismath{ \,\Re\!\braces{#1} }\xspace}
65
66 %% Groups
67 \DeclareRobustCommand{\group}[1]{\thesismath{\mayberm{#1}}}
68 \DeclareRobustCommand{\Ugroup}[1]{\group{U}\parenths{#1}}
69 \DeclareRobustCommand{\SUgroup}[1]{\group{S}\Ugroup{#1}}