Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

sjtuthesis.cls: reset algorithm counter #193

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sjtuthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
\listoftables
\addcontentsline{toc}{chapter}{\listtablename} %将表格目录加入全文目录
\listofalgorithms
\addcontentsline{toc}{chapter}{算法索引} %将算法目录加入全文目录
\addcontentsline{toc}{chapter}{\listalgorithmname} %将算法目录加入全文目录

\include{tex/symbol} % 主要符号、缩略词对照表

Expand Down