From aa2c80a0480541000c2302b62ccbe8a35fbc77b1 Mon Sep 17 00:00:00 2001 From: Cedric Date: Thu, 26 Dec 2024 15:25:55 +0000 Subject: [PATCH] Make flowchart numbering consistent Now all figures, tables and flowcharts are numbered with chapter.number. Fixes: https://github.com/hendricius/the-sourdough-framework/issues/395 Also added vertical space for list of tables so it matches the list of figures and list of flowcharts --- book/sourdough.sty | 3 +++ 1 file changed, 3 insertions(+) diff --git a/book/sourdough.sty b/book/sourdough.sty index d7e66835..eb611ca1 100644 --- a/book/sourdough.sty +++ b/book/sourdough.sty @@ -24,11 +24,14 @@ types=flowcharts,% , float, floattype=4,% + counterwithin=chapter, name=Flowchart,% listname = {List of Flowcharts} ]{loc} \setuptoc{loc}{chapteratlist} \DeclareTOCStyleEntry[numwidth=3em]{tocline}{figure} +\DeclareTOCStyleEntry[numwidth=3em]{tocline}{flowchart} +\DeclareTOCStyleEntry[numwidth=3em]{tocline}{table} % Common abbreviations \newcommand{\ie}{\emph{i.e.}\@ifnextchar.{\!\@gobble}{}}