4 Commits

4 changed files with 22 additions and 2 deletions
Split View
  1. +16
    -0
      headers_figs.sty
  2. +1
    -1
      headers_fonts.sty
  3. +2
    -0
      headers_science.sty
  4. +3
    -1
      macros.sty

+ 16
- 0
headers_figs.sty View File

@ -47,3 +47,19 @@
]{caption}
\usepackage{subcaption} % Sous-figures & légendes associées
\captionsetup[subfigure]{margin=5pt}
% Table des crédits
\addtotoclist[]{loc}
\DeclareRobustCommand{\credits}[1]{%
\addcontentsline{loc}{credits}{%
\ifnum\value{subfigure}>0
\protect\numberline{\thefigure.\thesubfigure}
\else
\protect\numberline{\thefigure}
\fi
#1%
}%
}
\newcommand*{\listofcredits}{\listoftoc[Crédits des figures]{loc}}
\setuptoc{loc}{chapteratlist,totoc}
\DeclareTOCStyleEntry[level=1,indent=1.5em,numwidth=2.3em,dynnumwidth,pagenumberformat={\addfontfeatures{Numbers=Monospaced}}]{tocline}{credits}

+ 1
- 1
headers_fonts.sty View File

@ -10,7 +10,7 @@
]{EBGaramond}
% Police pour les mathématiques
\usepackage[math-style=french]{unicode-math}
\usepackage[math-style=french,warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
\setmathfont[StylisticSet={2}]{Garamond-Math.otf}
%StylisticSet
%2 → Curved \partial

+ 2
- 0
headers_science.sty View File

@ -13,12 +13,14 @@
\protected\def\numpi{\text{\ensuremath{\pi}}}
\usepackage{siunitx}
\sisetup{
output-decimal-marker = {,},
number-unit-product = \,,
inter-unit-product = \ensuremath{\!\cdot\!},
list-units = single,
multi-part-units = single,
range-units = single,
input-signs = {+ − ±},
input-uncertainty-signs = {±},
input-symbols = {π …},
input-comparators = {< = > ≈ ≥ ≫ ≤ ≪ ∼ ≲ ≳ ≃}
}

+ 3
- 1
macros.sty View File

@ -26,11 +26,13 @@
}
% Opérateurs usuels
\DeclareMathOperator{\di}{d\!}
\newcommand{\mean}[1]{\left<#1\right>}
\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}}}

Loading…
Cancel
Save