-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnewcommands.txt
More file actions
171 lines (157 loc) · 6.65 KB
/
newcommands.txt
File metadata and controls
171 lines (157 loc) · 6.65 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
%% Diffraction specific things
\newcommand{\kalpha}{\ensuremath{K_\alpha}\xspace}
\newcommand{\kbeta}{\ensuremath{K_\beta}\xspace}
%% PDF-specific things
\newcommand{\qmax}{\ensuremath{Q_{\mathrm{max}}}\xspace}
\newcommand{\qmaxinst}{\ensuremath{Q_{\mathrm{max-inst}}}\xspace}
\newcommand{\qmin}{\ensuremath{Q_{\mathrm{min}}}\xspace}
\newcommand{\qbroad}{\ensuremath{Q_{\mathrm{broad}}}\xspace}
\newcommand{\qdamp}{\ensuremath{Q_{\mathrm{damp}}}\xspace}
\newcommand{\deltatwo}{\ensuremath{\delta_2}\xspace}
\newcommand{\deltaone}{\ensuremath{\delta_1}\xspace}
\newcommand{\spdiameter}{\ensuremath{sp_{\mathrm{diameter}}}\xspace}
\newcommand{\uiso}{\ensuremath{U_{\mathrm{iso}}}\xspace}
\newcommand{\uaniso}{\ensuremath{U_{\mathrm{aniso}}}\xspace}
\newcommand{\sratio}{\ensuremath{sratio}\xspace}
\newcommand{\rpoly}{\ensuremath{rpoly}\xspace}
\newcommand{\rw}{\ensuremath{R_w}\xspace}
\newcommand{\rapdf}{\textit{RA-PDF}\space}
\newcommand{\cif}{\texttt{CIF}\xspace}
\newcommand{\rmin}{\ensuremath{r_{\mathrm{min}}}\xspace}
\newcommand{\rmax}{\ensuremath{r_{\mathrm{max}}}\xspace}
\newcommand{\rlim}{\ensuremath{r_{\mathrm{lim}}}\xspace}
\newcommand{\mmax}{\ensuremath{m_{\mathrm{max}}}\xspace}
\newcommand{\delr}{\ensuremath{dr}\xspace}
\newcommand{\delrn}{\ensuremath{dr_N}\xspace}
\newcommand{\delq}{\ensuremath{dQ}\xspace}
\newcommand{\qualp}{\ensuremath{\mathcal{Q}_p}\xspace}
\newcommand{\iq}{\ensuremath{I(Q)}\xspace}
\newcommand{\sq}{\ensuremath{S(Q)}\xspace}
\newcommand{\fq}{\ensuremath{F(Q)}\xspace}
\newcommand{\gr}{\ensuremath{G(r)}\xspace}
\newcommand{\rr}{\ensuremath{R(r)}\xspace}
\newcommand{\q}{\ensuremath{Q}\xspace}
\newcommand{\ir}{\ensuremath{r}\xspace}
\newcommand{\dd}{\ensuremath{\mathrm{d}}}
\newcommand{\ii}{\mathrm{i}}
% we like our vectors to be bold and not italicised
\renewcommand{\vec}[1]{\mathbf{#1}}
%units
\newcommand{\iaa}{\AA\ensuremath{^{-1}}\xspace}
\newcommand{\iaasquared}{\AA\ensuremath{^{-2}}\xspace}
\newcommand{\aasquared}{\AA\ensuremath{^{2}}\xspace}
% comments
% Add your own here. Pick your own color.
\newcommand{\sjb}[1]{\textcolor{blue}{[sjb:#1]}}
\newcommand{\sjba}[1]{}
\newcommand{\mt}[1]{\textcolor{orange}{[mt:#1]}}
\newcommand{\mta}[1]{}
% referencing figures etc. correctly
%
% when you make the label, use
% \label{fig:<name>} for figures
% \label{eq:<name>} for equations and so on (see below for what to use}
%
% Never use numbers for anything as the numbering always changes. The point
% is to use a <name> that is descriptive (and preferrably memorable)
%
% when you then reference the item reference it like
% "...as is evident in \fig{<name>}" and will compile as "...as evident in Fig. 4"
\newcommand{\eq}[1]{Eq.~\ref{eq:#1}}
\newcommand{\eqs}[1]{Eqs.~\ref{eq:#1}}
\newcommand{\fig}[1]{Fig.~\ref{fig:#1}}
\newcommand{\figs}[1]{Figs.~\ref{fig:#1}}
\newcommand{\sect}[1]{Section~\ref{sec:#1}}
\newcommand{\apen}[1]{Appendix~\ref{sec:#1}}
\newcommand{\tabl}[1]{Table~\ref{table:#1}}
\newcommand{\bra}[1]{\left<#1\right|}
\newcommand{\ket}[1]{\left|#1\right>}
%\newcommand{\abs}[1]{\left|#1\right|}
% correctly formated latin
\newcommand{\etal}{\emph{et al.}\xspace}
\newcommand{\adhoc}{\emph{ad hoc}\xspace}
\newcommand{\insitu}{\emph{in situ}\xspace}
\newcommand{\operando}{\emph{operando}\xspace}
\newcommand{\abinitio}{\emph{ab initio}\xspace}
% Colored symbols used during editing.
% Also, define new colors here if you like
\definecolor{dgreen}{HTML}{008000}
\newcommand{\done}{\textcolor{dgreen}{{\large{$\checkmark$}}}}
\newcommand{\doing}{\textcolor{blue}{{\large{$\blacklozenge$}}}}
\newcommand{\checkme}{\textcolor{orange}{{\large{$\blacktriangleleft$}}}}
\newcommand{\fixme}{\textcolor{red}{{\large{$\blacktriangleright$}}}}
% some style preferences for code listings
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
% used for building skels. If you want to jump out of the list and jump back in later do it this way:
% \be % begin the enumerated list
% ...
% \seti\ee % paus the list, saving the counter
% ...
% \be\conti % continue the list from where we left off
% ...
% \ee % end the list, it is the end of hte paper
\newcounter{saveenumi}
\newcommand{\seti}{\setcounter{saveenumi}{\value{enumi}}}
\newcommand{\conti}{\setcounter{enumi}{\value{saveenumi}}}
\newcommand{\be}{\begin{enumerate}}
\newcommand{\ee}{\end{enumerate}}
\newcommand{\bes}{\begin{enumerate}[wide, labelwidth=!, labelindent=0pt, label=\textbf{\textcolor{blue}{\arabic*}.}]}
\newcommand{\ees}{\end{enumerate}}
% Group program names. Generally the pdf is dropped, so PDFgui is \gui, and the diffpy is dropped
% so diffpy.srreal is \srreal
\newcommand{\clustermining}{{\sc clusterMining}\xspace}
\newcommand{\cmi}{{\sc Diffpy-CMI}\xspace}
\newcommand{\esuite}{{\sc ePDFsuite}\xspace}
\newcommand{\getx}{{\sc PDFgetX3}\xspace}
\newcommand{\gui}{{\sc PDFgui}\xspace}
\newcommand{\guitwo}{{\sc PDFgui2}\xspace}
\newcommand{\itc}{{\sc PDFitc}\xspace}
\newcommand{\labpdfproc}{\textsc{diffpy.labpdfproc}\xspace}
\newcommand{\morph}{{\sc PDFmorph}\xspace}
\newcommand{\motexml}{{\sc MotEx-ML}\xspace}
\newcommand{\mpdf}{{\sc diffpy.mpdf}\xspace}
\newcommand{\nmfmapping}{{\sc nmfMapping}\xspace}
\newcommand{\pdffit}{{\sc pdffit}\xspace}
\newcommand{\pdffittwo}{{\sc pdffit2}\xspace}
\newcommand{\plotdata}{{\sc plotdata}\xspace}
\newcommand{\pyfai}{{\sc PyFai}\xspace}
\newcommand{\shed}{{\sc SHED}\xspace}
\newcommand{\strumining}{{\sc structureMining}\xspace}
\newcommand{\xpdacq}{{\sc xpdAcq}\xspace}
\newcommand{\xpdan}{{\sc xpdAn}\xspace}
\newcommand{\xpdtools}{{\sc xpdtools}\xspace}
\newcommand{\xsuite}{{\sc xPDFsuite}\xspace}
\newcommand{\diffpy}{\textsc{diffpy}\xspace}
\newcommand{\fourigui}{{\sc diffpy.fourigui}\xspace}
\newcommand{\pyobjcryst}{{\sc pyobjcryst}\xspace}
\newcommand{\srfit}{{\sc diffpy.srfit}\xspace}
\newcommand{\srmise}{{\sc diffpy.srmise}\xspace}
\newcommand{\srreal}{{\sc diffpy.srreal}\xspace}
\newcommand{\srxplanar}{{\sc diffpy.srxplanar}\xspace}
\newcommand{\structure}{{\sc diffpy.structure}\xspace}
\newcommand{\utils}{{\sc diffpy.utils}\xspace}
% general program names
\newcommand{\jupyter}{{\sc Jupyter}\xspace}
\newcommand{\pycharm}{{\sc PyCharm}\xspace}