Skip to content

Commit

Permalink
Fix bugs for appendices.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebye committed Sep 6, 2021
1 parent 5a2f965 commit e58e3b8
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions thesis-uestc.cls
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ School: & \en@theschool \\

\setlength{\extrarowheight}{2pt}

\newcommand{\standardhead}{
\newcommand{\standardheader}{
\fancyhf{}
\ifchinesebook{
\fancyhead[CE]{\fontsize{10.5pt}{12.6pt}\selectfont\display@chineseheader}
Expand Down Expand Up @@ -846,13 +846,11 @@ School: & \en@theschool \\
}
}{}{}

\apptocmd{\tableofcontents}{\def\@TOC{\null}}{}{}

\newcommand{\thesistableofcontents}{
\tableofcontents
}

\renewcommand{\chaptermark}[1]{\markboth{\thechapter \hspace{5.25pt}#1}{}}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\hspace{5.25pt}#1}{}}

\newcommand{\thesisacknowledgement}{
\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
Expand All @@ -873,23 +871,28 @@ School: & \en@theschool \\
\newpage
\clearpage{\thispagestyle{empty}\cleardoublepage}
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}}
\standardhead
\standardheader
\pagenumbering{arabic}
}

\pretocmd{\@chapter}{
\ifdefined\@TOC
\ifdefined\@BODY
\else
\ifnum\value{chapter}=0
\thesiscontent
\fi
\fi
}{}{}

\apptocmd{\@chapter}{
\ifnum\value{chapter}=1
\ifchinesebook{\chaptermark{绪论}}{\chaptermark{Introduction}}
\setcounter{page}{1}
\ifdefined\@BODY
\else
\ifnum\value{chapter}=1
\ifchinesebook{\chaptermark{绪论}}{\chaptermark{Introduction}}
\setcounter{page}{1}
\fi
\fi
\def\@BODY{\null}
}{}{}

\newcommand{\thesischapterexordium}{
Expand Down

0 comments on commit e58e3b8

Please sign in to comment.