notes: add useful operators

This commit is contained in:
Michele Guerini Rocco 2020-05-31 11:25:04 +02:00
parent 681b1b62b8
commit 686d2d4554

View File

@ -29,24 +29,36 @@ header-includes: |
\usepackage{float} \usepackage{float}
\floatplacement{figure}{H} \floatplacement{figure}{H}
% customer macros
%% "with" in formulas %% customer macros
\DeclareMathOperator*{\with}{% % "with" in formulas
\DeclareMathOperator{\with}{%
\hspace{30pt} \text{with} \hspace{30pt} \hspace{30pt} \text{with} \hspace{30pt}
} }
%% "thus" in formulas
\DeclareMathOperator*{\thus}{% % "thus" in formulas
\DeclareMathOperator{\thus}{%
\hspace{30pt} \Longrightarrow \hspace{30pt} \hspace{30pt} \Longrightarrow \hspace{30pt}
} }
%% "et" in formulas
\DeclareMathOperator*{\et}{% % "et" in formulas
\DeclareMathOperator{\et}{%
\hspace{30pt} \wedge \hspace{30pt} \hspace{30pt} \wedge \hspace{30pt}
} }
%% "if" in formulas
\DeclareMathOperator*{\incase}{% % "if" in formulas
\DeclareMathOperator{\incase}{%
\hspace{20pt} \text{if} \hspace{20pt} \hspace{20pt} \text{if} \hspace{20pt}
} }
% expectation and variance operators
\DeclareMathOperator{\Exp}{\mathbb{E}}
\DeclareMathOperator{\Var}{Var}
% average value with angle brakets
\newcommand{\avg}[1]{\langle#1\rangle}
% book cover
\makeatletter \makeatletter
\renewcommand\maketitle{ \renewcommand\maketitle{
\begin{titlepage} \begin{titlepage}