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.

40 lines
1.1 KiB

  1. % Quelques commandes personnalisées
  2. % Tables globales
  3. \newenvironment{chaptable}[2]{
  4. \addchap*{#1}
  5. \begin{longtable}{#2}
  6. }{%
  7. \end{longtable}
  8. \addtocounter{table}{-1}% Ne pas compter comme une table
  9. }
  10. % En-têtes de tableau
  11. \setlength{\heavyrulewidth}{0.1em}
  12. % Typographie
  13. \newcommand{\chapterend}{\vspace{1em}\begin{center}\large ☙❧\end{center}} % Cul-de-lampe
  14. \newcommand{\siecle}[1]{\textsc{\romannumeral #1}\ieme{}~siècle}
  15. \newcommand{\eg}{\textit{e.g.}}
  16. \newcommand{\cf}{\textit{cf.} }
  17. % Outils mathématiques
  18. \AtBeginDocument{% Requis par unicode-math
  19. \renewcommand{\vec}{\symbf}
  20. \renewcommand{\nabla}{\vec{∇}}
  21. \renewcommand{\div}[1]{\nabla · #1}
  22. }
  23. % Opérateurs usuels
  24. \DeclareMathOperator{\di}{d\!}
  25. \newcommand{\mean}[1]{\left<#1\right>}
  26. \newcommand{\grad}[1]{\nabla\left(#1\right)}
  27. \newcommand{\rot}[1]{\nabla × #1}
  28. % Expressions parenthésées
  29. \newcommand{\pa}[1]{\left(#1\right)}
  30. \newcommand{\logp}[1]{\log\pa{#1}}
  31. \newcommand{\fracp}[2]{\pa{\frac{#1}{#2}}}
  32. % Grandeurs physiques classiques
  33. \newcommand{\Ec}{ℰ_\text{c}}
  34. \newcommand{\Ep}{ℰ_\text{p}}
  35. \newcommand{\Em}{ℰ_\text{m}}