% !TeX encoding = UTF-8
% !TeX spellcheck = en_US
% !TeX root = WSP.tex


%Beamer colors
\setbeamertemplate{itemize item}{\color{orange}$\blacksquare$}
\setbeamertemplate{itemize subitem}{\color{yellow}$\blacktriangleright$}
\setbeamerfont{section number projected}{%
  family=\rmfamily,series=\bfseries,size=\normalsize}
\setbeamercolor{section number projected}{bg=orange,fg=black}
\setbeamercolor{subsection number projected}{bg=yellow,fg=black}
\setbeamertemplate{sections/subsections in toc}[square]
\setbeamercolor{section in toc}{fg=black}
\setbeamercolor{subsection in toc}{fg=black}


%Units
\newcommand{\milli}[0]{\mathrm{m}}
\newcommand{\second}[0]{\mathrm{s}}
\newcommand{\micro}[0]{\mathrm{\mu}}
\newcommand{\meter}[0]{\mathrm{m}}

%Columns
\newcommand{\LargCol}[0]{58mm}
\newcommand{\HautCol}[0]{6cm}

%Boites beamer
\setbeamercolor{regularcolor}{fg=black,bg=yellow}
\setbeamercolor{emphcolor}{fg=white,bg=red}
\setbeamercolor{questioncolor}{fg=white,bg=red}
\newenvironment{Boite}[1]{\begin{beamerboxesrounded}[upper=regularcolor]{#1}}{\end{beamerboxesrounded}}
\newenvironment{BoiteEmph}[1]{\begin{beamerboxesrounded}[upper=emphcolor,shadow=true]{#1}}{\end{beamerboxesrounded}}
\newenvironment{BoiteCentre}[1]{\begin{beamerboxesrounded}[upper=regularcolor,shadow=true]{#1}\center}{\end{beamerboxesrounded}}
\newenvironment{BoiteEmphCentre}[1]{\begin{beamerboxesrounded}[upper=emphcolor,shadow=true]{#1}\center}{\end{beamerboxesrounded}}
%%% columns
\newenvironment{Column}{\begin{column}{\LargCol}}{\end{column}}

%French parts
\newcommand{\CurrentPart}{}
\newenvironment{frenchpartie}[1]
{\part{#1} \renewcommand{\CurrentPart}{{\bfseries \Roman{part} #1}}\setcounter{section}{0}\begin{otherlanguage}{english}\renewcommand{\partname}{Part}}
{\end{otherlanguage}\frame[t]{\frametitle{\hfil\CurrentPart\hfil}\tableofcontents}}
\newcommand{\Partie}[1]{\begin{frenchpartie}{#1}\frame{\partpage}\end{frenchpartie}\setcounter{section}{0}\renewcommand{\CurrentPart}{{\bfseries \Roman{part} #1}}}
\mode<presentation>{
\newcommand{\SectionTdm}{{\begin{frame}\frametitle{\hfil\CurrentPart\hfil}\tableofcontents[currentsection]\end{frame}}\addtocounter{framenumber}{-1}\mode<handout>{}}}
\mode<handout>{\renewcommand{\SectionTdm}{}}

\newcommand{\attribution}[1]{\tiny by #1 on Wikimedia Commons}

\newcommand{\Apply}[2]{#1\left(#2\right)}
\newcommand{\Reals}{\mathbb{R}}
\newcommand{\Equiv}{\iff}
\newcommand{\PartialDD}[2]{\frac{\partial^2{#1}}{\partial{#2}^2}}
\newcommand{\LaplaceTSym}{\Delta_\perp}
\newcommand{\I}{\dot\imath}
\newcommand{\DSecondTime}[1]{\PartialDD{#1}{t}}
\newcommand{\Vector}[1]{#1}
\newcommand{\Laplacian}[1]{\Delta{#1}}
\newcommand{\Exp}[1]{e^{#1}}
\newcommand{\DSecondZ}[1]{\PartialDD{#1}{z}}
\newcommand{\LaplacianT}[1]{\LaplaceTSym{#1}}
\newcommand{\DZ}[1]{{\frac{\partial #1}{\partial z}}}
\newcommand{\EnvE}{\mathcal{E}}

\newcommand{\BibTeX}{\href{https://en.wikipedia.org/wiki/BibTeX}{$\mathrm{B{\scriptstyle{IB}} \! T\!_{\displaystyle E} \! X}$}\xspace}
%\newcommand{\BibTeX}{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em	T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}\xspace}
\newcommand{\dotbib}{\texttt{.bib}\xspace}
\newcommand{\JabRef}{\href{https://en.wikipedia.org/wiki/JabRef}{JabRef}\xspace}
\newcommand{\Zotero}{\href{https://www.zotero.org/}{Zotero}\xspace}