From c0a3a651d80f2eed99db01f3c3482b10d02ffc18 Mon Sep 17 00:00:00 2001 From: Ce Gao Date: Thu, 18 May 2017 16:30:15 +0800 Subject: [PATCH] sjtuthesis.cls: reset algorithm counter Closes https://github.com/weijianwen/SJTUThesis/issues/186 Thanks https://github.com/goodbest Signed-off-by: Ce Gao --- sjtuthesis.cls | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sjtuthesis.cls b/sjtuthesis.cls index df840c95..4d2ed556 100644 --- a/sjtuthesis.cls +++ b/sjtuthesis.cls @@ -194,6 +194,9 @@ } +% Ref https://github.com/weijianwen/SJTUThesis/issues/186 +\@addtoreset{algorithm}{chapter}% algorithm counter resets every chapter + % Floating parameters \renewcommand{\textfraction}{0.15} \renewcommand{\topfraction}{0.85}