Skip to content

Commit

Permalink
Hide list of algorithms by default
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNetAdmin committed Apr 23, 2023
1 parent e4cdcb4 commit d83f50e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 15 deletions.
3 changes: 3 additions & 0 deletions config/commands.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
% common commands

\newcommand{\ifbooltrue}[2]{\ifthenelse{\boolean{#1}}{#2}{}}
\newcommand{\ifboolfalse}[2]{\ifthenelse{\boolean{#1}}{}{#2}}

\ifthenelse{\equal{\TwoSide}{true}}
{
% TwoSide settings
Expand Down
42 changes: 27 additions & 15 deletions page/graduate/toc.tex
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
\cleardoublepage

\phantomsection
\markloc
\tableofcontents
\ifbooltrue{ListOfContents}
{
\phantomsection
\markloc
\tableofcontents
}

\begingroup
\renewcommand*{\addvspace}[1]{}
\cleardoublepage
\phantomsection
\marklof
\listoffigures
\ifbooltrue{ListOfFigures}
{
\cleardoublepage
\phantomsection
\marklof
\listoffigures
}

\cleardoublepage
\phantomsection
\marklot
\listoftables
\ifbooltrue{ListOfTables}
{
\cleardoublepage
\phantomsection
\marklot
\listoftables
}

\cleardoublepage
\phantomsection
\markloa
\listofalgotocloft
\ifbooltrue{ListOfAlgorithms}
{
\cleardoublepage
\phantomsection
\markloa
\listofalgotocloft
}
\endgroup
4 changes: 4 additions & 0 deletions zjuthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
\DeclareStringOption[false]{BlindReview}
\DeclareStringOption[false]{PrintFilePath}
\DeclareStringOption[true]{TwoSide}
\DeclareBoolOption[true]{ListOfContents}
\DeclareBoolOption[true]{ListOfFigures}
\DeclareBoolOption[true]{ListOfTables}
\DeclareBoolOption[false]{ListOfAlgorithms}

\ProcessKeyvalOptions*

Expand Down
5 changes: 5 additions & 0 deletions zjuthesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
GradLevel = master, % 'master' or 'doctor'
Topic = 研究方向,
ColaboratorName = 合作导师,
% Table of Contents
ListOfContents = true,
ListOfFigures = true,
ListOfTables = true,
ListOfAlgorithms= false,
% Title
Title = 毕业论文/设计题目,
TitleEng = {{Graduation Thesis Title}}
Expand Down

0 comments on commit d83f50e

Please sign in to comment.