File: Macros.tex

package info (click to toggle)
bornagain 23.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 103,948 kB
  • sloc: cpp: 423,131; python: 40,997; javascript: 11,167; awk: 630; sh: 318; ruby: 173; xml: 130; makefile: 51; ansic: 24
file content (115 lines) | stat: -rw-r--r-- 3,003 bytes parent folder | download | duplicates (2)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%   BornAgain Developers Reference
%%
%%   homepage:   http://www.bornagainproject.org
%%
%%   copyright:  Forschungszentrum Jülich GmbH 2015
%%
%%   license:    Creative Commons CC-BY-SA
%%
%%   authors:    Scientific Computing Group at MLZ Garching
%%               C. Durniak, M. Ganeva, G. Pospelov, W. Van Herck, J. Wuttke
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% TeX/LaTeX macros we will overwrite
\let\ringaccent\r

% Vectors
\def\v#1{\ensuremath{\mathbf{#1}}}
% unused \newcommand{\unitvec}[1]{\ensuremath{\widehat{\vect{#1}}}}

% Tensors
\def\TENS#1{\ensuremath{\mathsf{#1}}}
\def\ONE{\TENS{1}}
\def\U#1{\underline{#1}}
\def\UU#1{\underline{\underline{#1}}}
\def\WW#1{\mathbb{#1}}

% Math operators
\newcommand{\ggll}{\mathrel{\substack{\ll\\[-.05em]\gg}}}
\newcommand{\llgg}{\mathrel{\substack{\gg\\[-.05em]\ll}}}
\newcommand{\Nabla}{\v{\nabla}}
\def\OPR{\breve}
\def\UVEC{\hat}

% Curly letters
\newcommand{\curlf}{\ensuremath{\mathcal{F}}}
\newcommand{\curlp}{\ensuremath{\mathcal{P}}}
\def\Sample{\ensuremath{\mathcal{M}}}
\def\Sphere{\ensuremath{\mathcal{S}}}

% Pair correlation functions
\newcommand{\ppcf}[3]{\ensuremath{\mathcal{G}_{#1 ,#2}\left( \v{#3}_{#1} , \v{#3}_{#2} \right)}}
\newcommand{\ppcfb}[3]{\ensuremath{\mathcal{G}_{#1 #2}\left( \v{#3}_{#1 #2} \right)}}

% Fixed-font words
\newcommand{\Code}[1]{\texttt{#1}}
\newcommand{\BornAgain}{{Born\discretionary{}{}{}Again}}%

\def\DS{\displaystyle}

\def\AA{\ringaccent A}
\def\E#1{\textsl{#1}}
\def\FD{\mathcal{F}}
\def\GD{\mathcal{G}}
\def\PD{\mathcal{P}}
\def\Pauli{\bm{\OPR{\sigma}}}
\def\R{\v{R}}
\def\SD{\mathcal{S}}
\def\SRC#1#2{\href{https://jugit.fz-juelich.de/mlz/bornagain/-/tree/main/#1/#2}{#2}}
\def\T#1{\texttt{#1}}
\def\TDo{\TD_0}
\def\TD{D}
\def\TL{\overline{v}}
\def\d{\mathrm d}
\def\dn{\downarrow}
\def\eps{\epsilon}
\def\etal{\E{et al.}}
\def\e{\mathrm e}
\def\eB{\UVEC{\v{B}}}
\def\eb{\UVEC{B}} % component of \eB
\def\evp{c} % eigenvalue of \OPR p
\def\hx{\v{\OPR x}}
\def\hy{\v{\OPR y}}
\def\idest{\E{i.e.\ }}
\def\kD{\k_\text{D}}
\def\k{\v{k}}
\def\mv{\overline{v}}
\def\nz{\overline{n^2}}
\def\opkappa{\OPR{\kappa}}
\def\plll{\parallel}
\def\q{\v{q}}
\def\rD{\r_\text{D}}
\def\rS{\r_\text{S}}
\def\r{\v{r}}
\def\se{\text{e}}
\def\sf{\text{f}}
\def\si{\text{i}}
\def\sldM{\rho^\text{M}}
\def\sldN{\rho^\text{N}}
\def\smag{\text{magn}}
\def\snuc{\text{nucl}}
\def\up{\uparrow}
\def\xElas{\frac{\d\sigma}{\d\Omega}}

\renewcommand{\u}[1]{\underline{#1}}
\newcommand{\uu}[1]{\underline{\underline{#1}}}
\newcommand{\UP}{\uparrow}
\newcommand{\DN}{\downarrow}

%-------------------------------------------------------------------------------
%	HYPHENATION
%-------------------------------------------------------------------------------

\hyphenation{
Born-Again
equi-dis-tant
Laz-za-ri
MacOS
nano-par-ti-cle nano-par-ti-cles
para-crys-tal
Schrö-ding-er
wave-num-ber
Wuttke}