Skip to content

Commit d83f50e

Browse files
committed
Hide list of algorithms by default
1 parent e4cdcb4 commit d83f50e

4 files changed

Lines changed: 39 additions & 15 deletions

File tree

config/commands.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
% common commands
22

3+
\newcommand{\ifbooltrue}[2]{\ifthenelse{\boolean{#1}}{#2}{}}
4+
\newcommand{\ifboolfalse}[2]{\ifthenelse{\boolean{#1}}{}{#2}}
5+
36
\ifthenelse{\equal{\TwoSide}{true}}
47
{
58
% TwoSide settings

page/graduate/toc.tex

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
11
\cleardoublepage
22

3-
\phantomsection
4-
\markloc
5-
\tableofcontents
3+
\ifbooltrue{ListOfContents}
4+
{
5+
\phantomsection
6+
\markloc
7+
\tableofcontents
8+
}
69

710
\begingroup
811
\renewcommand*{\addvspace}[1]{}
9-
\cleardoublepage
10-
\phantomsection
11-
\marklof
12-
\listoffigures
12+
\ifbooltrue{ListOfFigures}
13+
{
14+
\cleardoublepage
15+
\phantomsection
16+
\marklof
17+
\listoffigures
18+
}
1319

14-
\cleardoublepage
15-
\phantomsection
16-
\marklot
17-
\listoftables
20+
\ifbooltrue{ListOfTables}
21+
{
22+
\cleardoublepage
23+
\phantomsection
24+
\marklot
25+
\listoftables
26+
}
1827

19-
\cleardoublepage
20-
\phantomsection
21-
\markloa
22-
\listofalgotocloft
28+
\ifbooltrue{ListOfAlgorithms}
29+
{
30+
\cleardoublepage
31+
\phantomsection
32+
\markloa
33+
\listofalgotocloft
34+
}
2335
\endgroup

zjuthesis.cls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
\DeclareStringOption[false]{BlindReview}
3131
\DeclareStringOption[false]{PrintFilePath}
3232
\DeclareStringOption[true]{TwoSide}
33+
\DeclareBoolOption[true]{ListOfContents}
34+
\DeclareBoolOption[true]{ListOfFigures}
35+
\DeclareBoolOption[true]{ListOfTables}
36+
\DeclareBoolOption[false]{ListOfAlgorithms}
3337

3438
\ProcessKeyvalOptions*
3539

zjuthesis.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
GradLevel = master, % 'master' or 'doctor'
3737
Topic = 研究方向,
3838
ColaboratorName = 合作导师,
39+
% Table of Contents
40+
ListOfContents = true,
41+
ListOfFigures = true,
42+
ListOfTables = true,
43+
ListOfAlgorithms= false,
3944
% Title
4045
Title = 毕业论文/设计题目,
4146
TitleEng = {{Graduation Thesis Title}}

0 commit comments

Comments
 (0)