Changes from the template
Change "doctoral" to "master" thesis in page header.
File: setup/format.tex (line 125)
Change to:
\fancyhead[CE]{\wuhao 西安交通大学硕士学位论文}%
(TOC) Acknowledgement
- Remove acknowledgement from the TOC. Do this by commenting line 5 and 6 of
appendix/authorization.tex. - Re-add the "authorization page" (声明) to the TOC
a. For the Chinese TOC: Add
\noindent 声\quad 明after\tableofcontents(line 6). b. For the English TOC: Add\noindent Declarationsafter\tableofengcontents(line 13).
Abstract
File: setup/abstract.tex
Check the template in MS Word for reference
- If you need to start a new page before the English abstract, use this command.
\clearpage
\clearpage{\pagestyle{empty}\cleardoublepage}
- The word "ABSTRACT" in the page header should be upper case letters. You can do so by changing (you may need to add in some older version of the teamplates) the following line at the beginning of English abstract section.
\markboth{ABSTRACT}{ABSTRACT}
Language swap
Header should be made according to English chapter title. So we need to treat the table of content in Chinese (toc) as English TOC, and table of content in English (toe) as Chinese TOC. To do this, we need to modify the TOC setup as follow.
File: setup/format.tex
Notice \contentsname and \engcontentsname.
%========================================= TOC ===========================================
% 中文目录格式定义 - Chinese directory format definition
% @marchputt: swap the main TOC for English thesis
\renewcommand\contentsname{CONTENTS}
\titlecontents{chapter}[3.8em]{\hspace{-3.8em}}{\thecontentslabel~~}{}{\titlerule*[4pt]{.}\contentspage}
\dottedcontents{section}[38pt]{}{22pt}{0.3pc}
\dottedcontents{subsection}[70pt]{}{32pt}{0.3pc}
% 英文目录格式定义: 细点\@dottedtocline 粗点\@dottedtoclinebold
\renewcommand*\l@chapter{\@dottedtocline{0}{0em}{5em}}
\renewcommand*\l@section{\@dottedtocline{1}{1em}{1.8em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{2.8em}{2.5em}}
\def\@dotsep{0.75} % 定义英文目录的点间距
\setlength\leftmargini {50pt}
\setlength\leftmarginii {50pt}
\def\engcontentsname{目~~~~录}
\newcommand\tableofengcontents{
\@restonecolfalse
\chapter*{\engcontentsname %chapter*上移一行,避免在toc中出现。
\@mkboth{%
\engcontentsname}{\engcontentsname}}
\@starttoc{toe}%
\if@restonecol\twocolumn\fi
}
Then, there are some consequences at (1) the abstract, (2) how you treat "bilingualTOC", and (3) how you arrange the TOCs in setup/content.tex.
(1) TOC of abstract
First of all, the TOC should be like this (notice the abstract):

and

Since the TOC should be swapped (see Language swap), toc and toe should be swapped too.
File: setup/abstract.tex
In the English abstract section, modify as follow.
Original:
\addcontentsline{toc}{chapter}{\xiaosi ABSTRACT}
\addcontentsline{toe}{chapter}{\xiaosi ABSTRACT (English)}
Modified (notice toc and toe):
\addcontentsline{toe}{chapter}{\xiaosi ABSTRACT}
\addcontentsline{toc}{chapter}{\xiaosi ABSTRACT (English)}
(2) Treating bilingual TOC
In the tempalte, bilingual TOC is used. You should swap the usage. Normally, Chinese section header will come first, and English follows.
For example, an origianl section heading will look like this:
\BiSection{表}{Tables}
\BiSubsection{单个公式}{Equations}
After the swap, you should re-arrange the order too:
\BiSection{Tables}{表}
\BiSubsection{Equations}{单个公式}
(3) Re-arrange TOC
Make sure that \tableofengcontents comes before \tableofcontents in the setup/content.tex. Everything should look similar to:
% !Mode:: "TeX:UTF-8"
%====================================== 中文目录 ==========================================
\defaultfont
\pdfbookmark[0]{目~~~~录}{mulu}
\tableofengcontents % edited
\noindent 声\quad 明
% @marchputt: change from '\clearpage'
\clearpage{\pagestyle{empty}\cleardoublepage}% 正文章节从奇数页开始 - Positive article section starts from odd page
%====================================== 英文目录 ==========================================
\pdfbookmark[0]{Contents}{econtent}
\tableofcontents % edited
\noindent Declarations
\clearpage{\pagestyle{empty}\cleardoublepage}% 正文章节从奇数页开始 - Positive article section starts from odd page
Subsection spacing
There should be no spacees below \subsection. So we change that from 3mm in the template to 0mm in setup/format.tex (around line 73)
\titlespacing{\subsection}{2.13em}{3mm}{0mm}