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} diff --git a/thesis.tex b/thesis.tex index ddc98271..8b21ad20 100644 --- a/thesis.tex +++ b/thesis.tex @@ -59,7 +59,7 @@ \listoftables \addcontentsline{toc}{chapter}{\listtablename} %将表格目录加入全文目录 \listofalgorithms -\addcontentsline{toc}{chapter}{算法索引} %将算法目录加入全文目录 +\addcontentsline{toc}{chapter}{\listalgorithmname} %将算法目录加入全文目录 \include{tex/symbol} % 主要符号、缩略词对照表