% Definitions needed by the thesis guide

\RequirePackage{suffix}
\newcommand*\Package[1]{\texttt{#1}\index{#1}}
\newcommand*\PackageG[1]{\texttt{\gls{#1}}\index{#1}}
\newcommand*\Option[1]{\texttt{#1}}
\newcommand*\Macro[1]{\texttt{\textbackslash#1}\index{#1@\textbackslash#1}}
\WithSuffix\newcommand\Macro*[1]{\texttt{\textbackslash#1}}
\newcommand*\Command[1]{\texttt{#1}}
\newcommand*\File[1]{\texttt{#1}}
\newcommand*\Env[1]{\texttt{#1}\index{#1}}
\newcommand*\BegEnv[1]{\texttt{\textbackslash begin\{#1\}}}
\newcommand*\EndEnv[1]{\texttt{\textbackslash end\{#1\}}}
\newcommand*{\BibTeX}{\textsc{Bib}\TeX}
% \newcommand*{\biblatex}{\texttt{biblatex}}
\newcommand*{\TeXLive}{\TeX\ Live\xspace}
\newcommand*{\TeXnicCenter}{\TeX nic Center\xspace}
\newcommand*{\TeXmaker}{Texmaker\xspace}
\newcommand*{\TeXstudio}{\TeX studio\xspace}
\newcommand*{\TeXworks}{\TeX works\xspace}
\newcommand*{\TikZ}{Ti\textit{k}Z\xspace}
\NewDocumentCommand {\CTANhref} { m } {\href{https://ctan.org/pkg/#1}{CTAN}}
\NewDocumentCommand {\CTANurl} { m } {\url{https://ctan.org/pkg/#1}}

\newcommand*{\pT}{\ensuremath{p_{\text{T}}}\xspace}
\newcommand*{\pTjet}{\ensuremath{p_{\text{T}}^{\text{jet}}}\xspace}
\newcommand*{\etajet}{\ensuremath{\eta^{\text{jet}}}\xspace}
\newcommand*{\diffptb}{\ensuremath{\diff{\sigma_{b}}{\pT^{b}}}\xspace}
\newcommand*{\diffnloptb}{\ensuremath{\diff{\sigma_{b}^{\text{NLO}}}{\pT^{b}}}\xspace}
\newcommand*{\diffetab}{\ensuremath{\diff{\sigma_{b}}{\eta^{b}}}\xspace}
\newcommand*{\diffnloetab}{\ensuremath{\diff{\sigma_{b}^{\text{NLO}}}{\eta^{b}}}\xspace}
% \newcommand*{\diffptb}{\ensuremath{\dif\sigma_{b}/\dif \pT^{b}}\xspace}
% \newcommand*{\diffnloptb}{\ensuremath{\dif\sigma_{b}^{\text{NLO}}/\dif \pT^{b}}\xspace}
% \newcommand*{\diffetab}{\ensuremath{\dif\sigma_{b}/\dif \eta^{b}}\xspace}
% \newcommand*{\diffnloetab}{\ensuremath{\dif\sigma_{b}^{\text{NLO}}/\dif \eta^{b}}\xspace}
\newcommand*{\Cbhad}{\ensuremath{\mathcal{C}_{b}^{\text{had}}}\xspace}

\newcommand*{\ttbar}{\Pqt{}\Paqt}
\newcommand*{\Bo}{\ensuremath{B^{0}}\xspace}
\newcommand*{\Bobar}{\ensuremath{\bar{B}^{0}}\xspace}

\newcommand*{\stat}{\ensuremath{\text{stat.}}}
\newcommand*{\sys}{\ensuremath{\text{sys.}}}

% \newcommand{\demovrb}[1]{%
%   \par\noindent
%   \begin{minipage}{0.39\textwidth}#1\end{minipage}
%   \begin{minipage}{0.59\textwidth}\texttt{\scriptsize\detokenize{#1}}\end{minipage}
%   \newline%
% }
% \newcommand{\demolst}[1]{%
%   \par\noindent
%   \begin{minipage}{0.39\textwidth}#1\end{minipage}
%   \begin{minipage}{0.59\textwidth}
%     \begin{lstlatex}
%       #1
%     \end{lstlatex}
%   \end{minipage}
%   \newline%
% }

% If you use the siunitx package include any decimal number in \qty or \num
% e.g. \num{2.3} \qty{2.3E4}{\GeV}. The decimal point will be replaced
% by a comma if you switch your document language to German!
% You do this by specifying the locale in siunitx
%
% The old way to achieve this is commented out here.
% Include the following definition to
% make ',' an ordinary symbol in decimal numbers
%\DecimalMathComma
% \mathchardef\CommaOrdinary="013B
% \mathchardef\CommaPunct   ="613B
% \mathcode`,="8000   % , im Math-Mode aktiv ("8000) machen
% {\catcode`\,=\active
%  \gdef ,{\obeyspaces\futurelet\next\CommaCheck}}
% \def\CommaCheck{\if\space\next\CommaPunct\else\CommaOrdinary\fi}
