diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2022-09-13 17:16:14 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2022-09-13 17:16:14 -0400 |
commit | 1e870f1e0b16abd3adb790b5b5d036cebb19cc32 (patch) | |
tree | 1de327dbce528003d275d516dd89b8f17150e3f0 /document.sty | |
parent | ed9cf7063fed7ebfc1a28c6b54aa42655d4438dd (diff) |
Update master from template branch
Diffstat (limited to 'document.sty')
-rw-r--r-- | document.sty | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/document.sty b/document.sty index 493c860..511d030 100644 --- a/document.sty +++ b/document.sty @@ -20,7 +20,6 @@ \RequirePackage{amssymb} % Mathematical symbols \RequirePackage{siunitx} % SI Units \RequirePackage{setspace} % Line spacing -\RequirePackage{chngcntr} % Change how to count equations/figures/tables %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Headers/Footers % @@ -48,6 +47,8 @@ % Number equation with section number (ex: First equation in section 3 is 3.1) \numberwithin{equation}{section} +% Use french commas when writing numbers +\sisetup{locale=FR} %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% @@ -62,8 +63,10 @@ % Figures/Tables % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Count figure within sections (just like equations) +% Count within sections (third table of section 5 would be Table 5.3) \counterwithin{figure}{section} -% Count table within sections (just like equations) \counterwithin{table}{section} +% Separate section number from fig/table with a hyphen (5-3 instead of 5.3) +\renewcommand{\thefigure}{\thesection-\arabic{figure}} +\renewcommand{\thetable}{\thesection-\arabic{table}} |