summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/hepthesis/example/thesis.sty
blob: c26f4c5b166658620e2138aa1db522bd378da8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
\ProvidesPackage{thesis}[2005/07/28]
%\RequirePackage{timing}
\RequirePackage{hepnicenames,hepunits,abhep}

%% Citation spacing hack to bring the citation
%% number a little closer to the referring text
\let\@OldCite\cite
\renewcommand{\cite}[1]{\mbox{\!\!\!\@OldCite{#1}}}

%% Maths
\DeclareRobustCommand{\thesismath}[1]{\ensuremath{\maybebmsf{#1}}}
\DeclareRobustCommand{\parenths}[1]{\mymath{\left({#1}\right)}}
\DeclareRobustCommand{\braces}[1]{\mymath{\left\{{#1}\right\}}}
\DeclareRobustCommand{\angles}[1]{\mymath{\left\langle{#1}\right\rangle}}
\DeclareRobustCommand{\sqbracs}[1]{\mymath{\left[{#1}\right]}}
\DeclareRobustCommand{\mods}[1]{\mymath{\left\lvert{#1}\right\rvert}}
\DeclareRobustCommand{\modsq}[1]{\mymath{\mods{#1}^2}}
\DeclareRobustCommand{\dblmods}[1]{\mymath{\left\lVert{#1}\right\rVert}}
\DeclareRobustCommand{\expOf}[1]{\mymath{\exp{\!\parenths{#1}}}}
\DeclareRobustCommand{\eexp}[1]{\mymath{e^{#1}}}
\DeclareRobustCommand{\plusquad}{\mymath{\oplus}}
\DeclareRobustCommand{\logOf}[1]{\log\!\parenths{#1}}
\DeclareRobustCommand{\lnOf}[1]{\ln\!\parenths{#1}}
\DeclareRobustCommand{\ofOrder}[1]{\mymath{ \mathcal{O}\parenths{#1} }}

%% General utility defns
\DeclareRobustCommand{\arXivCode}[1]{arXiv:#1}
\DeclareRobustCommand{\CPviolation}{\CP-violation\xspace}
\DeclareRobustCommand{\CPv}{\CPviolation}
\DeclareRobustCommand{\LHCb}{LHCb\xspace}
\DeclareRobustCommand{\LHC}{LHC\xspace}
\DeclareRobustCommand{\LEP}{LEP\xspace}
\DeclareRobustCommand{\CERN}{CERN\xspace}

%% Basic rate formalisms
\DeclareRobustCommand{\Rate}{\thesismath{\Gamma}\xspace}
\DeclareRobustCommand{\RateOf}[1]{\thesismath{\Gamma}\parenths{#1}\xspace}

%% Phrases to be consistent about (with b/B)
\DeclareRobustCommand{\bphysics}{\Pbottom-physics\xspace}
\DeclareRobustCommand{\bhadron}{\Pbottom-hadron\xspace}
\DeclareRobustCommand{\Bmeson}{\PB-meson\xspace}
\DeclareRobustCommand{\bbaryon}{\Pbottom-baryon\xspace}
\DeclareRobustCommand{\Bdecay}{\PB-decay\xspace}
\DeclareRobustCommand{\bdecay}{\Pbottom-decay\xspace}

%% Processes
\DeclareRobustCommand{\BToKPi}{\HepProcess{ \PB \to \PK \, \Ppi }\xspace}
\DeclareRobustCommand{\BToPiPi}{\HepProcess{ \PB \to \Ppi \, \Ppi }\xspace}
\DeclareRobustCommand{\BToKK}{\HepProcess{\PB \to \PK \, \PK}\xspace}
\DeclareRobustCommand{\BToRhoPi}{\HepProcess{ \PB \to \Prho \, \Ppi }\xspace}
\DeclareRobustCommand{\BToRhoRho}{\HepProcess{ \PB \to \Prho \Prho }\xspace}
\DeclareRobustCommand{\X}{\thesismath{X}\xspace}
\DeclareRobustCommand{\Xbar}{\thesismath{\overline{X}}\xspace}
\DeclareRobustCommand{\Xzero}{\HepGenParticle{X}{}{0}\xspace}
\DeclareRobustCommand{\Xzerobar}{\HepGenAntiParticle{X}{}{0}\xspace}
\DeclareRobustCommand{\epluseminus}{\Pelectron\Ppositron\xspace}

% Fix hyperref labels in PDFTeX
\@ifpackageloaded{hyperref}{%
  \pdfstringdefDisableCommands{%
      \def\pi{pi}%
      \def\gamma{gamma}%
  }%
}{}