Skip to content
Snippets Groups Projects
Macros.tex 2.57 KiB
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%   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}}

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

% 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}}%
\newcommand{\IsGISAXS}{\Code{IsGISAXS}}%
\newcommand{\FitGISAXS}{\Code{FitGISAXS}}%

\def\DS{\displaystyle}

\def\d{\mathrm d}
\def\e{\mathrm e}
\def\eps{\epsilon}
\def\E#1{\textsl{#1}}
\def\etal{\E{et al.}}
\def\FD{\mathcal{F}}
\def\GD{\mathcal{G}}
\def\idest{\E{i.e.\ }}
\def\k{\v{k}}
\def\kD{\k_\text{D}}
\def\mv{\overline{v}}
\def\nz{\overline{n^2}}
\def\plll{\parallel}
\def\PD{\mathcal{P}}
\def\q{\v{q}}
\def\hx{\v{\hat x}}
\def\hy{\v{\hat y}}
\def\AA{\ringaccent A}
\def\r{\v{r}}
\def\R{\v{R}}
\def\rD{\r_\text{D}}
\def\rS{\r_\text{S}}
\def\se{\text{e}}
\def\si{\text{i}}
\def\sf{\text{f}}
\def\SD{\mathcal{S}}
\def\SRC#1#2{\href{https://github.com/scgmlz/BornAgain/blob/master/#1/#2}{#2}}
\def\T#1{\texttt{#1}}
\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}