From 1e870f1e0b16abd3adb790b5b5d036cebb19cc32 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 13 Sep 2022 17:16:14 -0400 Subject: Update master from template branch --- document.sty | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'document.sty') 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}} -- cgit v1.2.3