Skip to content

Commit

Permalink
Merge pull request #306 from endless-hu/update-ee
Browse files Browse the repository at this point in the history
Update EE template.   Make TOC `\prevstyle`, make `previous` empty style.
  • Loading branch information
TheNetAdmin committed Apr 11, 2023
2 parents f3dc3c4 + 548901a commit 59b7845
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 21 deletions.
17 changes: 4 additions & 13 deletions config/format/major/ee/layout.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,15 @@
{
\ifthenelse{\equal{\Period}{proposal}}
{
\ifthenelse{\equal{\Type}{thesis}}
{
\renewcommand{\cftchapfont} {\bfseries\zihao{-4}}
\renewcommand{\cftsecfont} {\bfseries\zihao{-4}}
\renewcommand{\cftsubsecfont} {\zihao{-4}}
\renewcommand{\cftsubsubsecfont} {\zihao{-4}}
}
{}
\renewcommand{\cftchapfont} {\bfseries\zihao{-4}}
\renewcommand{\cftsecfont} {\bfseries\zihao{-4}}
\renewcommand{\cftsubsecfont} {\zihao{-4}}
\renewcommand{\cftsubsubsecfont} {\zihao{-4}}
}
{
\setlength{\cftsecindent} {0em}
\setlength{\cftsubsecindent} {2em}
\setlength{\cftsubsubsecindent} {4em}
\fancypagestyle{previous}
{
\fancyfoot{}
\fancyfoot[C]{\zihao{-5}\thepage}
}
}

\appto{\bodystyle}{
Expand Down
2 changes: 0 additions & 2 deletions page/undergraduate/final/major/ee/cover-part.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
\cleardoublepage

\tableofcontents

\ifthenelse{\equal{\Period}{final}}
{
\cleardoublepage
Expand Down
8 changes: 8 additions & 0 deletions page/undergraduate/final/major/ee/cover.tex
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,11 @@
\end{tabularx}
\end{center}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Actual previous pages (Their page style is empty)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\inputpage{final}{eechecklist}
\inputpage{final}{promise}
\ifthenelse{\equal{\BlindReview}{true}}{}{\inputbody{final/acknowledgement}}
\inputbody{final/abstract}
6 changes: 2 additions & 4 deletions page/undergraduate/final/major/ee/previous.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
\inputpage{final}{eechecklist}
\inputpage{final}{promise}
\ifthenelse{\equal{\BlindReview}{true}}{}{\inputbody{final/acknowledgement}}
\inputbody{final/abstract}
% This file is intentionally left blank, the actual previous
% pages are in `page/undergraduate/final/major/ee/cover.tex'
3 changes: 1 addition & 2 deletions page/undergraduate/final/major/ee/toc.tex
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
% This file is intentionally left blank, the actual toc is in
% `page/undergraduate/final/major/ee/cover-part.tex'
\tableofcontents

0 comments on commit 59b7845

Please sign in to comment.