forked from TH_General/Template_Summary
40 lines
1.6 KiB
TeX
40 lines
1.6 KiB
TeX
%--------------------
|
|
% this file contains usefull makros for various functionalities
|
|
%--------------------
|
|
|
|
% {{{ reference makros %
|
|
|
|
% double reference (name and normal ref)
|
|
\newcommand{\dref}[1]{\nameref{#1} (\cref{#1})}
|
|
% }}} %
|
|
|
|
% {{{ math makros%
|
|
|
|
%special operators
|
|
\DeclareMathOperator*{\argmax}{arg\,max}
|
|
\DeclareMathOperator*{\argmin}{arg\,min}
|
|
\DeclareMathOperator*{\lik}{lik}
|
|
\DeclareMathOperator*{\loss}{loss}
|
|
\DeclareMathOperator*{\loglik}{loglik}
|
|
\DeclareMathOperator*{\softmax}{softmax}
|
|
\DeclareMathOperator{\dec}{dec}
|
|
\DeclareMathOperator{\enc}{enc}
|
|
% }}} %
|
|
|
|
% {{{ acronym makros %
|
|
|
|
% texorpdfstring simplification
|
|
\newcommand{\glstopfull}[1]{\texorpdfstring{\glsxtrfull{#1}}{\glsfmtfull{#1}}}
|
|
\newcommand{\Glstopfull}[1]{\texorpdfstring{\Glsxtrfull{#1}}{\Glsfmtfull{#1}}}
|
|
\newcommand{\glstopfullpl}[1]{\texorpdfstring{\glsxtrfullpl{#1}}{\glsfmtfullpl{#1}}}
|
|
\newcommand{\Glstopfullpl}[1]{\texorpdfstring{\Glsxtrfullpl{#1}}{\Glsfmtfullpl{#1}}}
|
|
\newcommand{\glstopshort}[1]{\texorpdfstring{\glsxtrshort{#1}}{\glsfmtshort{#1}}}
|
|
\newcommand{\Glstopshort}[1]{\texorpdfstring{\Glsxtrshort{#1}}{\Glsfmtshort{#1}}}
|
|
\newcommand{\glstopshortpl}[1]{\texorpdfstring{\glsxtrshortpl{#1}}{\glsfmtshortpl{#1}}}
|
|
\newcommand{\Glstopshortpl}[1]{\texorpdfstring{\Glsxtrshortpl{#1}}{\Glsfmtshortpl{#1}}}
|
|
\newcommand{\glstoplong}[1]{\texorpdfstring{\glsxtrlong{#1}}{\glsfmtlong{#1}}}
|
|
\newcommand{\Glstoplong}[1]{\texorpdfstring{\Glsxtrlong{#1}}{\Glsfmtlong{#1}}}
|
|
\newcommand{\glstoplongpl}[1]{\texorpdfstring{\glsxtrlongpl{#1}}{\glsfmtlongpl{#1}}}
|
|
\newcommand{\Glstoplongpl}[1]{\texorpdfstring{\Glsxtrlongpl{#1}}{\Glsfmtlongpl{#1}}}
|
|
% }}} %
|