En-têtes communes pour LaTeX
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

42 lines
1.2 KiB

% 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\langle#1\right\rangle}
\newcommand{\grad}[1]{\nabla\left(#1\right)}
\newcommand{\rot}[1]{\nabla × #1}
% Expressions parenthésées
\newcommand{\pa}[1]{\left(#1\right)}
\newcommand{\paa}[1]{\left\{#1\right\}}
\newcommand{\pac}[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}}