% Quelques commandes personnalisées
|
|
|
|
% Tables globales
|
|
\newenvironment{chaptable}[2]{
|
|
\addchap*{#1}
|
|
\begin{longtable}{#2}
|
|
}{%
|
|
\end{longtable}
|
|
\addtocounter{table}{-1}% Ne pas compter comme une table
|
|
}
|
|
|
|
% En-têtes de tableau
|
|
\setlength{\heavyrulewidth}{0.1em}
|
|
|
|
% Typographie
|
|
\newcommand{\chapterend}{\vspace{1em}\begin{center}\large ☙❧\end{center}} % Cul-de-lampe
|
|
\newcommand{\siecle}[1]{\textsc{\romannumeral #1}\ieme{}~siècle}
|
|
\newcommand{\eg}{\textit{e.g.}}
|
|
\newcommand{\cf}{\textit{cf.} }
|
|
|
|
% Outils mathématiques
|
|
\AtBeginDocument{% Requis par unicode-math
|
|
\renewcommand{\vec}{\symbf}
|
|
\renewcommand{\nabla}{\vec{∇}}
|
|
\renewcommand{\div}[1]{\nabla · #1}
|
|
}
|
|
% Opérateurs usuels
|
|
\DeclareMathOperator{\di}{d\!}
|
|
\newcommand{\mean}[1]{\left<#1\right>}
|
|
\newcommand{\grad}[1]{\nabla\left(#1\right)}
|
|
\newcommand{\rot}[1]{\nabla × #1}
|
|
% Expressions parenthésées
|
|
\newcommand{\pa}[1]{\left(#1\right)}
|
|
\newcommand{\logp}[1]{\log\pa{#1}}
|
|
\newcommand{\fracp}[2]{\pa{\frac{#1}{#2}}}
|
|
|
|
% Grandeurs physiques classiques
|
|
\newcommand{\Ec}{ℰ_\text{c}}
|
|
\newcommand{\Ep}{ℰ_\text{p}}
|
|
\newcommand{\Em}{ℰ_\text{m}}
|