├── mythesis.pdf ├── Hardbound-cover.pdf ├── Styles ├── ntu_logo.png ├── signature.png ├── title-page.png ├── ntu-watermark.png ├── title-page-plain.png ├── watermark-example.png ├── mydefs.sty └── lstpatch.sty ├── Figures ├── Chapter1 │ └── demo1.png └── Chapter2 │ └── demo1.png ├── References ├── second_paper.bib └── first_paper.bib ├── Chapters ├── Chapter4.tex ├── Chapter5.tex ├── Chapter3.tex ├── Chapter2.tex └── Chapter1.tex ├── .github └── FUNDING.yml ├── Appendices └── AppendixA.tex ├── LICENSE ├── Hardbound-cover.tex ├── .gitignore ├── README.md ├── mythesis.tex └── Thesis.cls /mythesis.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/mythesis.pdf -------------------------------------------------------------------------------- /Hardbound-cover.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Hardbound-cover.pdf -------------------------------------------------------------------------------- /Styles/ntu_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Styles/ntu_logo.png -------------------------------------------------------------------------------- /Styles/signature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Styles/signature.png -------------------------------------------------------------------------------- /Styles/title-page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Styles/title-page.png -------------------------------------------------------------------------------- /Styles/ntu-watermark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Styles/ntu-watermark.png -------------------------------------------------------------------------------- /Figures/Chapter1/demo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Figures/Chapter1/demo1.png -------------------------------------------------------------------------------- /Figures/Chapter2/demo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Figures/Chapter2/demo1.png -------------------------------------------------------------------------------- /Styles/title-page-plain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Styles/title-page-plain.png -------------------------------------------------------------------------------- /Styles/watermark-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wang-chen/thesis_template_ntu/HEAD/Styles/watermark-example.png -------------------------------------------------------------------------------- /References/second_paper.bib: -------------------------------------------------------------------------------- 1 | @book{bauschke2011convex, 2 | title={Convex analysis and monotone operator theory in Hilbert spaces}, 3 | author={Bauschke, Heinz H and Combettes, Patrick L}, 4 | year={2011}, 5 | publisher={Springer Science \& Business Media} 6 | } -------------------------------------------------------------------------------- /Chapters/Chapter4.tex: -------------------------------------------------------------------------------- 1 | %!TEX root=../mythesis.tex 2 | % Chapter Template 3 | 4 | \chapter{Chapter4 Name} % Main chapter title 5 | \chaptermark{Chapter4 ABBREVIATIONS} % replace the chapter name with its abbreviated form 6 | \label{ch:chapter4} 7 | \lipsum[50] 8 | 9 | \section{Section 1} 10 | \lipsum[50] 11 | 12 | \section{Section 2} 13 | \lipsum[50] -------------------------------------------------------------------------------- /Chapters/Chapter5.tex: -------------------------------------------------------------------------------- 1 | %!TEX root=../mythesis.tex 2 | % Chapter Template 3 | 4 | \chapter{Chapter5 Name} % Main chapter title 5 | \chaptermark{Chapter5 ABBREVIATIONS} % replace the chapter name with its abbreviated form 6 | \label{ch:chapter5} 7 | \lipsum[50] 8 | 9 | \section{Section 1} 10 | \lipsum[50] 11 | 12 | \section{Section 2} 13 | \lipsum[50] -------------------------------------------------------------------------------- /References/first_paper.bib: -------------------------------------------------------------------------------- 1 | 2 | %Application 3 | 4 | @article{DynamicOptim_Opportunities_challenges, 5 | author={J. B. Rawlings and B. T. Stewart}, 6 | title={Coordinating multiple optimization-based controllers: New opportunities and challenges}, 7 | journal={Journal of Process Control}, 8 | year={2008}, 9 | volume={18}, 10 | pages={839--845}, 11 | } 12 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: wang-chen # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /Appendices/AppendixA.tex: -------------------------------------------------------------------------------- 1 | %!TEX root=../mythesis.tex 2 | % Appendix A 3 | 4 | \chapter{Proofs for Part I or Chapter 3} % Main appendix title 5 | 6 | \label{AppendixA} % For referencing this appendix elsewhere, use \ref{AppendixA} 7 | 8 | %\lhead{Appendix A. \emph{Appendix Title Here}} % This is for the header on each page - perhaps a shortened title 9 | \section{Proof of Lemma} 10 | \label{pf:ApprGradSys} 11 | 12 | $$\psi^{av}(\theta)=\frac{1}{T}\int^{T}_0[\psi(\theta+\mu(\tau))+C]\otimes\frac{\mu(\tau)}{a}d\tau$$ 13 | 14 | 15 | 16 | \section{Proof of another Lemma} 17 | \begin{equation} 18 | \begin{aligned} 19 | \gamma_1(\left\|x\right\|)\leq W(t,x)\leq \gamma_2(\left\|x\right\|)\\ 20 | \frac{\partial{W}}{\partial{t}}+\frac{\partial{W}}{\partial{x}}\phi(t,x,0)\leq-\gamma_3(\left\|x\right\|) 21 | \end{aligned} 22 | \end{equation} 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Chen Wang (https://chenwang.site) Nanyang Technological University 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Chapters/Chapter3.tex: -------------------------------------------------------------------------------- 1 | %!TEX root=../mythesis.tex 2 | % Chapter Template 3 | 4 | \chapter{Chapter3 Name} % Main chapter title 5 | \chaptermark{Distributed Optimization in Networked Systems} % replace the chapter name with its abbreviated form 6 | \label{ch:doptim_netsys} % Change X to a consecutive number; for referencing this chapter elsewhere, use \ref{ChapterX} 7 | 8 | 9 | 10 | %----------------------------------- 11 | % SECTION 1 12 | %----------------------------------- 13 | 14 | \section{Section1}\label{sec:top_opt_model} 15 | 16 | 17 | See \fref{fig:demo2} 18 | 19 | \begin{figure}[!htbp] 20 | \centering 21 | \includegraphics[width=0.4\linewidth]{Chapter2/demo1} 22 | \caption{Another illustration.} 23 | \label{fig:demo2} 24 | \end{figure} 25 | 26 | Let's cite out first table: \tref{tab:mytable}. 27 | 28 | \begin{table} 29 | \centering 30 | \begin{tabular}{ccccc}\toprule 31 | \multirow{2}{*}{Table} & \multicolumn{2}{c}{Group 1} & \multicolumn{2}{c}{Group 2}\\ 32 | & Col 1 & Col 2 & Col 1 & Col 2 \\\midrule 33 | Row 1 & 14.37 & \textbf{5.76} & 2.65 & \textbf{2.84}\\ 34 | Row 2 & 5.43 & \textbf{7.36} & 2.22 & \textbf{2.49}\\ 35 | Row 3 & 5.54 & \textbf{5.68} & \textbf{4.42} & 2.92\\ 36 | \bottomrule 37 | \end{tabular} 38 | \caption{My Table.} 39 | \label{tab:mytable} 40 | \end{table} 41 | 42 | -------------------------------------------------------------------------------- /Styles/mydefs.sty: -------------------------------------------------------------------------------- 1 | %% Version 1.4.3 (11/1/2015) 2 | %% Created by Jimmy Xu 3 | %self-defined macros and commands for brevity. 4 | \def \colexp #1{[#1_1,#1_2,...,#1_m]^T} 5 | \newcommand{\overbar}[1]{\mkern 1.5mu\overline{\mkern-1.5mu#1\mkern-1.5mu}\mkern 1.5mu} 6 | \newcommand{\proj}[2][\mathcal{X}]{P_{#1}\left [#2\right ]} 7 | \def \avector {\frac{{\bf 1}{\bf 1}^T}{m}} 8 | \def \hnorm [#1]#2#3{\left\|#1_{#2}^{#3}\right\|} %\sqrt{\sum^t_{k=0}{#1}^2} 9 | \def \enorm #1{\left\|#1\right\|_E} %\sqrt{E\left[\left\|#1\right\|^2\right]} 10 | \def \condexp #1{E\left[#1|\mathcal{F}_k\right]} 11 | \def \einnprod #1#2{\left\langle #1, #2\right \rangle_E} %define the innerproduct of two random vector 12 | \def \expect #1{E\left[#1\right]} 13 | \def \bracket #1{\left(#1\right)} 14 | 15 | \def \norm #1{\left\|#1\right\|} 16 | \def \innprod #1#2{\left\langle #1, #2\right \rangle} 17 | \def \ones {{\bf 1}} 18 | \def \Ones {\mathds{1}} %include usepackage{dsfont} 19 | \def \zeros {{\bf 0}} 20 | \def \Bracket #1{\left\{#1\right\}} 21 | \def \seq #1{\{#1\}_{k\geq 0}} 22 | \def \prox #1#2{{\bf prox}_{#1}#2} 23 | \def \ocp {(OCP)} 24 | \def \oep {(OEP)} 25 | \def \cspace {\mathcal{C}} 26 | \def \eqname #1#2{\overset{(\text{#1})}{#2}} %denoting the symbol of inequalities 27 | \def \abs #1{\left|#1\right|} 28 | \def \alert #1{\textcolor{red}{#1}} 29 | \def \myfigscale {0.618} 30 | \def \myfigwidth {0.4944\textwidth} 31 | \def \mybigfigwidth {0.7416\textwidth} 32 | \def \mysubfigwidth {0.4326\textwidth} 33 | \def \etal {\emph{et al.}~} 34 | \newcommand{\diag}{\operatorname{diag}\diagfences} -------------------------------------------------------------------------------- /Chapters/Chapter2.tex: -------------------------------------------------------------------------------- 1 | %!TEX root=../mythesis.tex 2 | % Chapter Template 3 | 4 | \chapter{Literature Review} % Main chapter title 5 | \chaptermark{Literature Review} % replace the chapter name with its abbreviated form 6 | \label{ch:literature_review} % Change X to a consecutive number; for referencing this chapter elsewhere, use \ref{ChapterX} 7 | 8 | %\lhead{Chapter X. \emph{Chapter Title Here}} % Change X to a consecutive number; this is for the header on each page - perhaps a shortened title 9 | %----------------------------------- 10 | % SECTION 1 11 | %----------------------------------- 12 | 13 | \section{Part 1} 14 | 15 | When you cite a paper \cite{bauschke2011convex}, the back reference from bibgraph will apper as page number. 16 | 17 | You can also cite paper with author name using the command `citet': such as: \citet{bauschke2011convex}. 18 | 19 | \section{Part 2} 20 | 21 | cite another paper \cite{DynamicOptim_Opportunities_challenges}. 22 | 23 | \begin{lemma}[My lemma] 24 | A great lemma. 25 | \begin{equation} 26 | c^2=a^2+b^2 27 | \end{equation} 28 | \end{lemma} 29 | 30 | \begin{theorem}[My theorem] 31 | A great theorem. 32 | \begin{equation} 33 | c^2=a^2+b^2 34 | \end{equation} 35 | \end{theorem} 36 | 37 | \begin{proof} 38 | The proof is intuitive. 39 | \end{proof} 40 | 41 | \begin{corollary}[My corollary] 42 | A great corollary. 43 | \begin{equation} 44 | c^2=a^2+b^2 45 | \end{equation} 46 | \end{corollary} 47 | 48 | \begin{proposition}[My proposition] 49 | A great proposition. 50 | \begin{equation} 51 | c^2=a^2+b^2 52 | \end{equation} 53 | \end{proposition} 54 | 55 | \begin{example}[My example] 56 | A great example. 57 | \begin{equation} 58 | c^2=a^2+b^2 59 | \end{equation} 60 | \end{example} 61 | 62 | \begin{definition}[My definition] 63 | A great definition. 64 | \begin{equation} 65 | c^2=a^2+b^2 66 | \end{equation} 67 | \end{definition} 68 | 69 | \begin{assumption}[My assumption] 70 | A great assumption. 71 | \begin{equation} 72 | c^2=a^2+b^2 73 | \end{equation} 74 | \end{assumption} 75 | 76 | \begin{remark}[My remark] 77 | A great remark. 78 | \begin{equation} 79 | c^2=a^2+b^2 80 | \end{equation} 81 | \end{remark} 82 | -------------------------------------------------------------------------------- /Chapters/Chapter1.tex: -------------------------------------------------------------------------------- 1 | %!TEX root=../mythesis.tex 2 | % Chapter 1 3 | 4 | \chapter{Introduction} % Main chapter title 5 | \chaptermark{Introduction} 6 | \label{ch:introduction} % For referencing the chapter elsewhere, use \ref{Chapter1} 7 | 8 | %---------------------------------------------------------------------------------------- 9 | % SECTION 1 10 | %---------------------------------------------------------------------------------------- 11 | 12 | \section{Some useful hints} 13 | 14 | My figure citation: \fref{fig:demo1}. (command: fref) 15 | 16 | My section citation: \sref{sec:contribution}. (command: sref) 17 | 18 | My Chaptere citation: \cref{ch:introduction}. (command: cref) 19 | 20 | My Paper citation: \cite{bauschke2011convex}. (notice back reference to page from bibliograph) 21 | 22 | My equation citation: \eqref{eq:equ2}. (command: eqref), or cite equation by tag: \eqref{eq:equ1}. 23 | 24 | \begin{equation}\label{eq:equ1} 25 | F(\theta)=\sum_{i=1}^mf_i(\theta) \tag{DOP} 26 | \end{equation} 27 | 28 | \begin{equation}\label{eq:equ2} 29 | F(\theta)=\sum_{i=1}^mf_i(\theta) 30 | \end{equation} 31 | 32 | \begin{figure}[htbp] 33 | \centering 34 | \includegraphics[width=0.85\textwidth]{Chapter1/demo1} 35 | \caption{An illustration.} 36 | \label{fig:demo1} 37 | \end{figure} 38 | 39 | 40 | 41 | %---------------------------------------------------------------------------------------- 42 | \section{Major Contributions}\label{sec:contribution} 43 | Our main contributions can be stated as follows: 44 | \begin{itemize} 45 | \item \emph{First part}: My first contributions, several lines 46 | 47 | 48 | \item \emph{Second}: Second contributions, several lines 49 | 50 | 51 | \item \emph{Third name}: 52 | Third contributions, several lines 53 | 54 | \end{itemize} 55 | 56 | %---------------------------------------------------------------------------------------- 57 | % SECTION 2 58 | %---------------------------------------------------------------------------------------- 59 | \section{Outline of the Thesis} 60 | 61 | \cref{ch:introduction} introduces ... 62 | 63 | \cref{ch:literature_review} reviews ... 64 | 65 | 66 | 67 | More chapters .... 68 | 69 | 70 | .... 71 | 72 | -------------------------------------------------------------------------------- /Hardbound-cover.tex: -------------------------------------------------------------------------------- 1 | %MIT License 2 | % 3 | %Copyright (c) 2019 HUANG CHONGTIAN 4 | % 5 | %Permission is hereby granted, free of charge, to any person obtaining a copy 6 | %of this software and associated documentation files (the "Software"), to deal 7 | %in the Software without restriction, including without limitation the rights 8 | %to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | %copies of the Software, and to permit persons to whom the Software is 10 | %furnished to do so, subject to the following conditions: 11 | % 12 | %The above copyright notice and this permission notice shall be included in all 13 | %copies or substantial portions of the Software. 14 | % 15 | %THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | %IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | %FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | %AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | %LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | %OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | %SOFTWARE. 22 | \documentclass{article} 23 | \usepackage{pgfornament} 24 | \pagestyle{empty} 25 | \usepackage{tikz} 26 | \usepackage[calc]{picture} 27 | \usetikzlibrary{decorations.fractals} 28 | 29 | \newcommand*{\university}[1]{\def\univname{#1}} 30 | \newcommand*{\department}[1]{\def\deptname{#1}} 31 | \newcommand*{\thesistitle}[1]{\def\ttitle{#1}} 32 | \newcommand*{\authors}[1]{\def\authornames{#1}} 33 | 34 | % ---- configure layout ---- 35 | \usepackage[papersize={,297mm}, strictheight=false,topmargin=0mm, botmargin, flap=0mm, textwidth=210mm, spine=9mm, cropmarks, cropframe, croptitle=MAE thesis]{zwpagelayout} 36 | % \usepackage{rotating} 37 | \usepackage[counterclockwise]{rotating} 38 | 39 | \linespread{1} 40 | 41 | % ---- configure name ----- 42 | \department{\Large School of Mechanical and Aerospace Engineering} 43 | \thesistitle{\LARGE The Greatest Thesis in the World} 44 | \authors{\Large Author Name} 45 | 46 | \begin{document} 47 | \hbox to \textwidth{% 48 | 49 | \vbox to \textheight{\hsize \UserWidth \vfill \leavevmode}\hss 50 | 51 | %-------------------------- spine ------------------------------ 52 | \vbox to \textheight{\hsize \CropSpine \vfill \centering 53 | \begin{sideways} 54 | \hspace{-0.5cm}\LARGE\ttitle 55 | \hspace{2cm} \authornames{} 56 | \hspace{3cm}{\Large \the\year} 57 | \end{sideways} 58 | \vfill}\hss 59 | 60 | %-------------------------- cover page --------------------------------- 61 | \vbox to \textheight{\hsize \UserWidth \centering \vspace{0cm} 62 | \setlength{\unitlength}{1cm} 63 | \begin{picture}(22,27) 64 | \put(4.5,18){\includegraphics[width=12.8cm]{Styles/ntu_logo.png}} 65 | % \put(8,15) {{\Large Nanyang Technological University}} 66 | \put((21cm-\widthof{\textbf{\Large\ttitle}})/2,14){{\Large\textbf{\ttitle}}} 67 | \put((21cm-\widthof{\textbf{\deptname{}}})/2,4) {\textbf{\deptname{}}} 68 | \put((21cm-\widthof{\textbf{\authornames{}}})/2,5) {\textbf{\authornames{}}} 69 | \put((21cm-\widthof{\textbf{\Large \the\year}})/2,3){\textbf{\Large \the\year}} 70 | \end{picture}}\hss 71 | }% text 72 | 73 | \end{document} 74 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Core latex/pdflatex auxiliary files: 2 | *.aux 3 | *.lof 4 | *.log 5 | *.lot 6 | *.fls 7 | *.out 8 | *.toc 9 | *.fmt 10 | *.fot 11 | *.cb 12 | *.cb2 13 | 14 | ## Intermediate documents: 15 | *.dvi 16 | *-converted-to.* 17 | # these rules might exclude image files for figures etc. 18 | # *.ps 19 | # *.eps 20 | # *.pdf 21 | 22 | ## Generated if empty string is given at "Please type another file name for output:" 23 | .pdf 24 | 25 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 26 | *.bbl 27 | *.bcf 28 | *.blg 29 | *-blx.aux 30 | *-blx.bib 31 | *.run.xml 32 | 33 | ## Build tool auxiliary files: 34 | *.fdb_latexmk 35 | *.synctex 36 | *.synctex(busy) 37 | *.synctex.gz 38 | *.synctex.gz(busy) 39 | *.pdfsync 40 | 41 | ## Auxiliary and intermediate files from other packages: 42 | # algorithms 43 | *.alg 44 | *.loa 45 | 46 | # achemso 47 | acs-*.bib 48 | 49 | # amsthm 50 | *.thm 51 | 52 | # beamer 53 | *.nav 54 | *.pre 55 | *.snm 56 | *.vrb 57 | 58 | # changes 59 | *.soc 60 | 61 | # cprotect 62 | *.cpt 63 | 64 | # elsarticle (documentclass of Elsevier journals) 65 | *.spl 66 | 67 | # endnotes 68 | *.ent 69 | 70 | # fixme 71 | *.lox 72 | 73 | # feynmf/feynmp 74 | *.mf 75 | *.mp 76 | *.t[1-9] 77 | *.t[1-9][0-9] 78 | *.tfm 79 | 80 | #(r)(e)ledmac/(r)(e)ledpar 81 | *.end 82 | *.?end 83 | *.[1-9] 84 | *.[1-9][0-9] 85 | *.[1-9][0-9][0-9] 86 | *.[1-9]R 87 | *.[1-9][0-9]R 88 | *.[1-9][0-9][0-9]R 89 | *.eledsec[1-9] 90 | *.eledsec[1-9]R 91 | *.eledsec[1-9][0-9] 92 | *.eledsec[1-9][0-9]R 93 | *.eledsec[1-9][0-9][0-9] 94 | *.eledsec[1-9][0-9][0-9]R 95 | 96 | # glossaries 97 | *.acn 98 | *.acr 99 | *.glg 100 | *.glo 101 | *.gls 102 | *.glsdefs 103 | 104 | # gnuplottex 105 | *-gnuplottex-* 106 | 107 | # gregoriotex 108 | *.gaux 109 | *.gtex 110 | 111 | # hyperref 112 | *.brf 113 | 114 | # knitr 115 | *-concordance.tex 116 | # TODO Comment the next line if you want to keep your tikz graphics files 117 | *.tikz 118 | *-tikzDictionary 119 | 120 | # listings 121 | *.lol 122 | 123 | # makeidx 124 | *.idx 125 | *.ilg 126 | *.ind 127 | *.ist 128 | 129 | # minitoc 130 | *.maf 131 | *.mlf 132 | *.mlt 133 | *.mtc[0-9]* 134 | *.slf[0-9]* 135 | *.slt[0-9]* 136 | *.stc[0-9]* 137 | 138 | # minted 139 | _minted* 140 | *.pyg 141 | 142 | # morewrites 143 | *.mw 144 | 145 | # nomencl 146 | *.nlo 147 | 148 | # pax 149 | *.pax 150 | 151 | # pdfpcnotes 152 | *.pdfpc 153 | 154 | # sagetex 155 | *.sagetex.sage 156 | *.sagetex.py 157 | *.sagetex.scmd 158 | 159 | # scrwfile 160 | *.wrt 161 | 162 | # sympy 163 | *.sout 164 | *.sympy 165 | sympy-plots-for-*.tex/ 166 | 167 | # pdfcomment 168 | *.upa 169 | *.upb 170 | 171 | # pythontex 172 | *.pytxcode 173 | pythontex-files-*/ 174 | 175 | # thmtools 176 | *.loe 177 | 178 | # TikZ & PGF 179 | *.dpth 180 | *.md5 181 | *.auxlock 182 | 183 | # todonotes 184 | *.tdo 185 | 186 | # easy-todo 187 | *.lod 188 | 189 | # xindy 190 | *.xdy 191 | 192 | # xypic precompiled matrices 193 | *.xyc 194 | 195 | # endfloat 196 | *.ttt 197 | *.fff 198 | 199 | # Latexian 200 | TSWLatexianTemp* 201 | 202 | ## Editors: 203 | # WinEdt 204 | *.bak 205 | *.sav 206 | 207 | # Texpad 208 | .texpadtmp 209 | 210 | # Kile 211 | *.backup 212 | 213 | # KBibTeX 214 | *~[0-9]* 215 | 216 | # auto folder when using emacs and auctex 217 | /auto/* 218 | 219 | # expex forward references with \gathertags 220 | *-tags.tex 221 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ph.D. Thesis Template 2 | ## Nangyang Technological University 3 | 4 | This version has been verified by NTU 5 | 6 | Author: [Chen Wang](https://wang-chen.github.io) 7 | 8 | ## Usage: 9 | 10 | You can see direct example in [Overleaf Project](https://www.overleaf.com/read/zbqyfqxwdmss) (View Only). 11 | 12 | #### Main thesis 13 | Please change your name, title, and school in the file of Thesis.cls 14 | 15 | #### Signature 16 | For digital signature, make your own and put it in the folder "Styles" to replace the original one. 17 | 18 | #### Example: 19 | 20 | You may read my thesis on [Dr-NTU](https://hdl.handle.net/10356/105527) 21 | 22 | #### Hard-cover binding (Not recommend do this by yourself) 23 | 24 | Midify the hardbound-cover.tex 25 | You may not need to do this by yourself if you follow the [Format](https://www.ntu.edu.sg/sasd/oas/ge/Documents/FormatofThesis_Sample_Oct2017.pdf). Just ask the stuff to follow the NTU 'standard'. 26 | if your need hard-binding in 7 days, just send your thesis to [ultrasupplies](https://www.ultrasupplies.com.sg/solutions/book-binding/hard-cover-binding), and confirm with them. 27 | 28 | 29 | ## What's New 30 | 31 | #### Updates (Signature Watermark), Oct. 2021: 32 | 33 | Students and supervisors are advised to sign on the NTU watermark feature. 34 | This template has added the watermark as default. 35 | To use it properly, your signature image has to be the **png format with transparent background**. See [Signature Example](Styles/signature.png). 36 | 37 |

38 | 39 |

40 | 41 | #### Updates (Thesis Parts), Jul. 2021: 42 | 43 | Add examples to split the thesis into several parts. 44 | This should be useful when there are many chapters. 45 | Use it between chapters and see examples in "mythesis.tex". 46 | 47 | \input{./Chapters/Chapter1} 48 | 49 | \part{Part Name: Use it when there are many chapters (Part I)} 50 | \input{./Chapters/Chapter2} 51 | \input{./Chapters/Chapter3} 52 | 53 | \part{Again for Second Part} 54 | \input{./Chapters/Chapter4} 55 | \input{./Chapters/Chapter5} 56 | 57 | #### Updates (declaration statements), Mar. 2019: 58 | 59 | This version has been modified according to the [Format of final thesis](https://www.ntu.edu.sg/research/theses-dissertations), all submissions received on or after 1 Jan 2019 must include the declaration statements. 60 | 61 | i. Title Page 62 | ii. Statement of Originality . } 63 | iii. Supervisor Declaration Statement} Research Integrity - Theses / Dissertations 64 | iv. Authorship Attribution Statement} 65 | v. Acknowledgements 66 | vi. Table of Contents 67 | vii. Summary 68 | 69 | #### Updates (Title Page), Aug. 2018: 70 | 71 | We provide two styles for the title page, use "\maketitleforreview" or "\maketitle", in the file of "mythesis.tex", to choose your prefered one. Normally, the University prefers "\maketitleforreview". 72 | 73 | %\maketitle 74 | \maketitleforreview 75 | 76 | Plain title page | Beautiful title page 77 | :-------------------------:|:-------------------------: 78 | \maketitleforreview | \maketitle 79 | | 80 | 81 | 82 | 83 | ## Other Contributors 84 | 85 | [Jinming Xu](https://jinmingxu.github.io) 86 | 87 | [Chongtian Huang](https://nerdtomars.github.io/) 88 | 89 | ## Citation 90 | 91 | You may cite [my thesis or papers](https://scholar.google.com/citations?user=vZfmKl4AAAAJ), if you find this template is useful. 92 | 93 | ## Sponsor 94 | 95 | Want to support me? You can go to my official [GitHub Sponsor](https://github.com/sponsors/wang-chen) page! 96 | 97 | Alternatively, you can use [PayPal](https://www.paypal.com/paypalme/DrChenWang) for direct one time donation! 98 | 99 | -------------------------------------------------------------------------------- /Styles/lstpatch.sty: -------------------------------------------------------------------------------- 1 | %% 2 | %% This is file `lstpatch.sty', generated manually. 3 | %% 4 | %% (w)(c) 2004 Carsten Heinz 5 | %% 6 | %% This file may be distributed under the terms of the LaTeX Project Public 7 | %% License from CTAN archives in directory macros/latex/base/lppl.txt. 8 | %% Either version 1.0 or, at your option, any later version. 9 | %% 10 | %% Send comments and ideas on the package, error reports and additional 11 | %% programming languages to . 12 | %% 13 | %% This patch file will remove the following bugs from the listings package. 14 | %% Each item contains the bug finder with date of report and first bug fix 15 | %% version, a short description of the problem, and the reason for the bug 16 | %% in parenthesis. 17 | %% 18 | %% 1) Frank Atanassow, 2004/10/07, 1.3b 19 | %% 20 | %% space after mathescape is not preserved 21 | %% (\lst@newlines>0) 22 | %% 23 | %% 2) Benjamin Lings, 2004/10/15, 1.3b (2004/10/17) 24 | %% 25 | %% \usepackage{xy,listings} yields: 26 | %% "Forbidden control sequence found while scanning use of \lst@lExtend" 27 | %% (xy-pic correctly resets catcode of ^^L (to active), which is \outer) 28 | %% 29 | %% 30 | %% The following features are added to the base package. 31 | %% 32 | %% 1.3a (2004/09/07) 33 | %% 34 | %% a) H I G H L Y E X P E R I M E N T A L 35 | %% 36 | %% Use the options 37 | %% rangeprefix= 38 | %% rangesuffix= 39 | %% 40 | %% rangebeginprefix= 41 | %% rangebeginsuffix= 42 | %% 43 | %% rangeendprefix= 44 | %% rangeendsuffix= 45 | %% 46 | %% includerangemarker=true|false 47 | %% together with 48 | %% firstline= 49 | %% lastline= 50 | %% or 51 | %% linerange={-, 52 | %% -, ...} 53 | %% The according markers in the source code are 54 | %% 55 | %% for begin respectively end of range. Moreover, one can use 56 | %% includerangemarker=true|false 57 | %% to show or hide the range markers in the output. 58 | %% 59 | %% 1.3b (2004/10/17) 60 | %% 61 | %% b) multicols= (requires loaded multicol package) 62 | %% 63 | %% 64 | \lst@CheckVersion{1.3} 65 | {\typeout{^^J% 66 | ***^^J% 67 | *** This is a patch for listings 1.3, but you're using^^J% 68 | *** version \lst@version.^^J% 69 | ***^^J 70 | *** Patch file not loaded.^^J% 71 | ***^^J}% 72 | \endinput 73 | } 74 | \def\fileversion{1.3b} 75 | \def\filedate{2004/10/17} 76 | \ProvidesFile{lstpatch.sty}[\filedate\space\fileversion\space (Carsten Heinz)] 77 | % 78 | % 0) Insert % after #1. 79 | \def\@@xbitor #1{\@tempcntb \count#1% 80 | \ifnum \@tempcnta =\z@ 81 | \else 82 | \divide\@tempcntb\@tempcnta 83 | \ifodd\@tempcntb \@testtrue\fi 84 | \fi} 85 | % 86 | % 1) Reset \lst@newlines at end of escape. 87 | \def\lstpatch@escape{% 88 | \gdef\lst@Escape##1##2##3##4{% 89 | \lst@CArgX ##1\relax\lst@CDefX 90 | {}% 91 | {\lst@ifdropinput\else 92 | \lst@TrackNewLines\lst@OutputLostSpace \lst@XPrintToken 93 | \lst@InterruptModes 94 | \lst@EnterMode{\lst@TeXmode}{\lst@modetrue}% 95 | \ifx\^^M##2% 96 | \lst@CArg ##2\relax\lst@ActiveCDefX 97 | {}% 98 | {\lst@escapeend ##4\lst@LeaveAllModes\lst@ReenterModes}% 99 | {\lst@MProcessListing}% 100 | \else 101 | \lst@CArg ##2\relax\lst@ActiveCDefX 102 | {}% 103 | {\lst@escapeend ##4\lst@LeaveAllModes\lst@ReenterModes 104 | \lst@newlines\z@ \lst@whitespacefalse}% 105 | {}% 106 | \fi 107 | ##3\lst@escapebegin 108 | \fi}% 109 | {}}% 110 | } 111 | % 112 | % 2) Deactivate \outer definition of ^^L temporarily (inside and outside 113 | % of \lst@ScanChars) and restore \catcode at end of package. 114 | \begingroup \catcode12=\active\let^^L\@empty 115 | \gdef\lst@ScanChars{% 116 | \let\lsts@ssL^^L% 117 | \def^^L{\par}% 118 | \lst@GetChars\lst@RestoreOrigCatcodes\@ne {128}% 119 | \let^^L\lsts@ssL 120 | \lst@GetChars\lst@RestoreOrigExtendedCatcodes{128}{256}} 121 | \endgroup 122 | \lst@lAddTo\lst@RestoreCatcodes{\catcode12\active} 123 | % 124 | % a) Let's start with the options: 125 | \lst@Key{rangeprefix}\relax{\def\lst@rangebeginprefix{#1}% 126 | \def\lst@rangeendprefix{#1}} 127 | \lst@Key{rangesuffix}\relax{\def\lst@rangebeginsuffix{#1}% 128 | \def\lst@rangeendsuffix{#1}} 129 | \lst@Key{rangebeginprefix}{}{\def\lst@rangebeginprefix{#1}} 130 | \lst@Key{rangebeginsuffix}{}{\def\lst@rangebeginsuffix{#1}} 131 | \lst@Key{rangeendprefix}{}{\def\lst@rangeendprefix{#1}} 132 | \lst@Key{rangeendsuffix}{}{\def\lst@rangeendsuffix{#1}} 133 | \lst@Key{includerangemarker}{true}[t]{\lstKV@SetIf{#1}\lst@ifincluderangemarker} 134 | % 135 | % The key is a redefinition of \lst@GLI@ checking for numbers. 136 | \def\lst@GLI@#1-#2-#3\@nil{% 137 | \lst@IfNumber{#1}% 138 | {\ifx\@empty#1\@empty 139 | \let\lst@firstline\@ne 140 | \else 141 | \def\lst@firstline{#1\relax}% 142 | \fi 143 | \ifx\@empty#3\@empty 144 | \def\lst@lastline{9999999\relax}% 145 | \else 146 | \ifx\@empty#2\@empty 147 | \let\lst@lastline\lst@firstline 148 | \else 149 | \def\lst@lastline{#2\relax}% 150 | \fi 151 | \fi}% 152 | % 153 | % If we've found a general marker, we set firstline and lastline to 9999999. 154 | % This prevents (almost) anything to be printed for now. 155 | {\def\lst@firstline{9999999\relax}% 156 | \let\lst@lastline\lst@firstline 157 | % 158 | % We add the prefixes and suffixes to the markers. 159 | \let\lst@rangebegin\lst@rangebeginprefix 160 | \lst@AddTo\lst@rangebegin{#1}\lst@Extend\lst@rangebegin\lst@rangebeginsuffix 161 | \ifx\@empty#3\@empty 162 | \let\lst@rangeend\lst@rangeendprefix 163 | \lst@AddTo\lst@rangeend{#1}\lst@Extend\lst@rangeend\lst@rangeendsuffix 164 | \else 165 | \ifx\@empty#2\@empty 166 | \let\lst@rangeend\@empty 167 | \else 168 | \let\lst@rangeend\lst@rangeendprefix 169 | \lst@AddTo\lst@rangeend{#2}\lst@Extend\lst@rangeend\lst@rangeendsuffix 170 | \fi 171 | \fi 172 | % The following definition will be executed in the SelectCharTable hook 173 | % and here right now if we are already processing a listing. 174 | \global\def\lst@DefRange{\expandafter\lst@CArgX\lst@rangebegin\relax\lst@DefRangeB}% 175 | \ifnum\lst@mode=\lst@Pmode \expandafter\lst@DefRange \fi}} 176 | % \lst@DefRange is not inserted via a hook anymore. Instead it is now called 177 | % directly from \lst@SelectCharTable. This was necessary to get rid of an 178 | % interference with the escape-to-LaTeX-feature. The bug was reported by 179 | % \lsthelper{Michael~Bachmann}{2004/07/21}{Keine label-Referenzierung 180 | % m\"oglich...}. Another chance is due to the same bug: \lst@DefRange is 181 | % redefined globally when the begin of code is found, see below. The bug was 182 | % reported by \lsthelper{Tobias~Rapp}{2004/04/06}{undetected end of range if 183 | % listing crosses page break} \lsthelper{Markus~Luisser}{2004/08/13}{Bug mit 184 | % 'linerangemarker' in umgebrochenen listings} 185 | %\lst@AddToHook{SelectCharTable}{\lst@DefRange} 186 | \lst@AddToHookExe{DeInit}{\global\let\lst@DefRange\@empty} 187 | % 188 | % Actually defining the marker (via \lst@GLI@, \lst@DefRange, \lst@CArgX as 189 | % seen above) is similar to \lst@DefDelimB---except that we unfold the first 190 | % parameter and use different ,
, and  statements.
191 | \def\lst@DefRangeB#1#2{\lst@DefRangeB@#1#2}
192 | \def\lst@DefRangeB@#1#2#3#4{%
193 |     \lst@CDef{#1{#2}{#3}}#4{}%
194 |     {\lst@ifincluderangemarker
195 |          \lst@LeaveMode
196 |          \let#1#4%
197 |          \lst@DefRangeEnd
198 |          \lst@InitLstNumber
199 |      \else
200 |          \@tempcnta\lst@lineno \advance\@tempcnta\@ne
201 |          \edef\lst@firstline{\the\@tempcnta\relax}%
202 |          \gdef\lst@OnceAtEOL{\let#1#4\lst@DefRangeEnd}%
203 |          \lst@InitLstNumber
204 |      \fi
205 | 	 \global\let\lst@DefRange\lst@DefRangeEnd
206 |      \lst@CArgEmpty}%
207 |     \@empty}
208 | %
209 | % Modify labels and define |\lst@InitLstNumber| used above.
210 | % \lsthelper{Omair-Inam~Abdul-Matin}{2004/05/10}{experimental linerange
211 | % feature does not work with firstnumber}
212 | \def\lstpatch@labels{%
213 | \gdef\lst@SetFirstNumber{%
214 |     \ifx\lst@firstnumber\@undefined
215 |         \@tempcnta 0\csname\@lst no@\lst@intname\endcsname\relax
216 |         \ifnum\@tempcnta=\z@ \else
217 |             \lst@nololtrue
218 |             \advance\@tempcnta\lst@advancenumber
219 |             \edef\lst@firstnumber{\the\@tempcnta\relax}%
220 |         \fi
221 |     \fi}%
222 | }
223 | \lst@AddToAtTop\lsthk@PreInit
224 |     {\ifx\lst@firstnumber\@undefined
225 |          \def\lst@firstnumber{\lst@lineno}%
226 |      \fi}
227 | \def\lst@InitLstNumber{%
228 |      \global\c@lstnumber\lst@firstnumber
229 |      \global\advance\c@lstnumber\lst@advancenumber
230 |      \global\advance\c@lstnumber-\lst@advancelstnum
231 |      \ifx \lst@firstnumber\c@lstnumber
232 |          \global\advance\c@lstnumber-\lst@advancelstnum
233 |      \fi}
234 | %
235 | %    The end-marker is defined if and only if it's not empty. The definition is
236 | %    similar to \lst@DefDelimE---with the above exceptions and except that we
237 | %    define the re-entry point \lst@DefRangeE@@ as it is defined in the new
238 | %    version of \lst@MProcessListing above.
239 | \def\lst@DefRangeEnd{%
240 |     \ifx\lst@rangeend\@empty\else
241 |         \expandafter\lst@CArgX\lst@rangeend\relax\lst@DefRangeE
242 |     \fi}
243 | \def\lst@DefRangeE#1#2{\lst@DefRangeE@#1#2}
244 | \def\lst@DefRangeE@#1#2#3#4{%
245 |     \lst@CDef{#1#2{#3}}#4{}%
246 |     {\let#1#4%
247 |      \edef\lst@lastline{\the\lst@lineno\relax}%
248 |      \lst@DefRangeE@@}%
249 |     \@empty}
250 | \def\lst@DefRangeE@@#1\@empty{%
251 |     \lst@ifincluderangemarker
252 |         #1\lst@XPrintToken
253 |     \fi
254 |     \lst@LeaveModeToPmode
255 |     \lst@BeginDropInput{\lst@Pmode}}
256 | %
257 | \def\lst@LeaveModeToPmode{%
258 |     \ifnum\lst@mode=\lst@Pmode
259 |         \expandafter\lsthk@EndGroup
260 |     \else
261 |         \expandafter\egroup\expandafter\lst@LeaveModeToPmode
262 |     \fi}
263 | %
264 | %    Eventually we shouldn't forget to install \lst@OnceAtEOL, which must
265 | %    also be called in \lst@MSkipToFirst.
266 | \lst@AddToHook{EOL}{\lst@OnceAtEOL\global\let\lst@OnceAtEOL\@empty}
267 | \gdef\lst@OnceAtEOL{}% Init
268 | \def\lst@MSkipToFirst{%
269 |     \global\advance\lst@lineno\@ne
270 |     \ifnum \lst@lineno=\lst@firstline
271 |         \def\lst@next{\lst@LeaveMode \global\lst@newlines\z@
272 |         \lst@OnceAtEOL \global\let\lst@OnceAtEOL\@empty
273 |         \lst@InitLstNumber % Added to work with modified \lsthk@PreInit.
274 |         \lsthk@InitVarsBOL
275 |         \lst@BOLGobble}%
276 |         \expandafter\lst@next
277 |     \fi}
278 | \def\lst@SkipToFirst{%
279 |     \ifnum \lst@lineno<\lst@firstline
280 |         \def\lst@next{\lst@BeginDropInput\lst@Pmode
281 |         \lst@Let{13}\lst@MSkipToFirst
282 |         \lst@Let{10}\lst@MSkipToFirst}%
283 |         \expandafter\lst@next
284 |     \else
285 |         \expandafter\lst@BOLGobble
286 |     \fi}
287 | %
288 | %    Finally the service macro \lst@IfNumber:
289 | \def\lst@IfNumber#1{%
290 |     \ifx\@empty#1\@empty
291 |         \let\lst@next\@firstoftwo
292 |     \else
293 |         \lst@IfNumber@#1\@nil
294 |     \fi
295 |     \lst@next}
296 | \def\lst@IfNumber@#1#2\@nil{%
297 |     \let\lst@next\@secondoftwo
298 |     \ifnum`#1>47\relax \ifnum`#1>57\relax\else
299 |         \let\lst@next\@firstoftwo
300 |     \fi\fi}
301 | %
302 | % b) The following is known to fail with some keys.
303 | \lst@Key{multicols}{}{\@tempcnta=0#1\relax\def\lst@multicols{#1}}
304 | \def\lst@Init#1{%
305 |     \begingroup
306 |     \ifx\lst@float\relax\else
307 |         \edef\@tempa{\noexpand\lst@beginfloat{lstlisting}[\lst@float]}%
308 |         \expandafter\@tempa
309 |     \fi
310 | % chmod begin
311 |     \ifx\lst@multicols\@empty\else
312 |         \edef\lst@next{\noexpand\multicols{\lst@multicols}}
313 |         \expandafter\lst@next
314 |     \fi
315 | % chmod end
316 |     \ifhmode\ifinner \lst@boxtrue \fi\fi
317 |     \lst@ifbox
318 |         \lsthk@BoxUnsafe
319 |         \hbox to\z@\bgroup
320 |              $\if t\lst@boxpos \vtop
321 |         \else \if b\lst@boxpos \vbox
322 |         \else \vcenter \fi\fi
323 |         \bgroup \par\noindent
324 |     \else
325 |         \lst@ifdisplaystyle
326 |             \lst@EveryDisplay
327 |             \par\penalty-50\relax
328 |             \vspace\lst@aboveskip
329 |         \fi
330 |     \fi
331 |     \normalbaselines
332 |     \abovecaptionskip\lst@abovecaption\relax
333 |     \belowcaptionskip\lst@belowcaption\relax
334 |     \lst@MakeCaption t%
335 |     \lsthk@PreInit \lsthk@Init
336 |     \lst@ifdisplaystyle
337 |         \global\let\lst@ltxlabel\@empty
338 |         \if@inlabel
339 |             \lst@ifresetmargins
340 |                 \leavevmode
341 |             \else
342 |                 \xdef\lst@ltxlabel{\the\everypar}%
343 |                 \lst@AddTo\lst@ltxlabel{%
344 |                     \global\let\lst@ltxlabel\@empty
345 |                     \everypar{\lsthk@EveryLine\lsthk@EveryPar}}%
346 |             \fi
347 |         \fi
348 |         \everypar\expandafter{\lst@ltxlabel
349 |                               \lsthk@EveryLine\lsthk@EveryPar}%
350 |     \else
351 |         \everypar{}\let\lst@NewLine\@empty
352 |     \fi
353 |     \lsthk@InitVars \lsthk@InitVarsBOL
354 |     \lst@Let{13}\lst@MProcessListing
355 |     \let\lst@Backslash#1%
356 |     \lst@EnterMode{\lst@Pmode}{\lst@SelectCharTable}%
357 |     \lst@InitFinalize}
358 | \def\lst@DeInit{%
359 |     \lst@XPrintToken \lst@EOLUpdate
360 |     \global\advance\lst@newlines\m@ne
361 |     \lst@ifshowlines
362 |         \lst@DoNewLines
363 |     \else
364 |         \setbox\@tempboxa\vbox{\lst@DoNewLines}%
365 |     \fi
366 |     \lst@ifdisplaystyle \par\removelastskip \fi
367 |     \lsthk@ExitVars\everypar{}\lsthk@DeInit\normalbaselines\normalcolor
368 |     \lst@MakeCaption b%
369 |     \lst@ifbox
370 |         \egroup $\hss \egroup
371 |         \vrule\@width\lst@maxwidth\@height\z@\@depth\z@
372 |     \else
373 |         \lst@ifdisplaystyle
374 |             \par\penalty-50\vspace\lst@belowskip
375 |         \fi
376 |     \fi
377 | % chmod begin
378 |     \ifx\lst@multicols\@empty\else
379 |         \def\lst@next{\global\let\@checkend\@gobble
380 |                       \endmulticols
381 |                       \global\let\@checkend\lst@@checkend}
382 |         \expandafter\lst@next
383 |     \fi
384 | % chmod end
385 |     \ifx\lst@float\relax\else
386 |         \expandafter\lst@endfloat
387 |     \fi
388 |     \endgroup}
389 | \let\lst@@checkend\@checkend
390 | %%
391 | \endinput
392 | %%
393 | %% End of file `lstpatch.sty'.
394 | 


--------------------------------------------------------------------------------
/mythesis.tex:
--------------------------------------------------------------------------------
  1 | %MIT License
  2 | %
  3 | %Copyright (c) 2018 Chen Wang [https://chenwang.site]
  4 | %
  5 | %Permission is hereby granted, free of charge, to any person obtaining a copy
  6 | %of this software and associated documentation files (the "Software"), to deal
  7 | %in the Software without restriction, including without limitation the rights
  8 | %to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9 | %copies of the Software, and to permit persons to whom the Software is
 10 | %furnished to do so, subject to the following conditions:
 11 | %
 12 | %The above copyright notice and this permission notice shall be included in all
 13 | %copies or substantial portions of the Software.
 14 | %
 15 | %THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16 | %IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 17 | %FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 18 | %AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 19 | %LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 20 | %OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 21 | %SOFTWARE.
 22 | \documentclass[12pt,a4paper]{Thesis} % Paper size, default font size and one-sided paper
 23 | 
 24 | \graphicspath{%
 25 | 	{./Pictures/}%
 26 | 	{./Figures/}%
 27 | }
 28 | \DeclareMathOperator{\Tr}{Tr}
 29 | \let\savedegree\degree
 30 | \let\degree\relax
 31 | \let\savedegree\ref
 32 | \let\rem\relax
 33 | \usepackage{adjustbox}
 34 | \usepackage{amsmath}
 35 | \usepackage[amssymb]{SIunits}
 36 | \usepackage{amssymb}
 37 | \usepackage{multirow}
 38 | \usepackage{wrapfig}
 39 | \usepackage{enumitem}
 40 | \usepackage{subcaption}
 41 | \usepackage{mathtools}
 42 | \usepackage{lipsum}
 43 | \usepackage[ruled,vlined,noresetcount]{algorithm2e}
 44 | %\usepackage{algpseudocode}
 45 | \usepackage[square, numbers, comma, sort&compress]{natbib} % Use the natbib reference package - read up on this to edit the reference style; if you want text (e.g. Smith et al., 2012) for the in-text references (instead of numbers), remove 'numbers'
 46 | 
 47 | \title{\ttitle} % Defines the thesis title - don't touch this
 48 | 
 49 | %extra packages
 50 | \usepackage{float}
 51 | \usepackage{color,soul}               % highlighting text
 52 | \usepackage{enumerate}
 53 | \usepackage{Styles/mydefs}
 54 | 
 55 | 
 56 | \begin{document}
 57 | 
 58 | \frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the pre-content pages
 59 | 
 60 | \setstretch{1.3} % Line spacing of 1.3
 61 | % Define the page headers using the Fr package and set up for one-sided printing
 62 | 
 63 | \pagestyle{fancy} % Finally, use the "fancy" page style to implement the FancyHdr headers
 64 | \fancyhead{}   %clear all fields
 65 | \fancyhead[LO]{\sl{\leftmark}}
 66 | \fancyhead[RE]{\sl{\rightmark}}
 67 | \fancyhead[LE,RO]{\thepage}
 68 | 
 69 | 
 70 | %----------------------------------------------------------------------------------------
 71 | %	TITLE PAGE
 72 | %----------------------------------------------------------------------------------------
 73 | 
 74 | %%% Use \maketitleforreview instead of \maketitle, if you want a PLAIN TITLE PAGE
 75 | 
 76 | \maketitle
 77 | % \maketitleforreview
 78 | 
 79 | 
 80 | % ----------------------------------------------------------------------------------------
 81 | % 	DECLARATION PAGE
 82 | % ----------------------------------------------------------------------------------------
 83 | 
 84 | \thesisdeclareOriginality{I hereby certify that the work embodied in this thesis is the result of original research, is free of plagiarised materials, and has not been submitted for a higher degree to any other University or Institution.}{Aug. 2018}{Styles/signature.png}
 85 | 
 86 | \thesisdeclareSupervisor{I have reviewed the content and presentation style of this thesis and declare it is free of plagiarism and of sufficient grammatical clarity to be examined.  To the best of my knowledge, the research and writing are those of the candidate except as acknowledged in the Author Attribution Statement. I confirm that the investigations were conducted in accord with the ethics policies and integrity standards of Nanyang Technological University and that the research data are presented honestly and without prejudice.}{Mar. 2019}{Styles/signature.png}
 87 | 
 88 | \thesisdeclareAuthorship{Please select one of the following; *delete as appropriate:
 89 | \\
 90 | *(A) This thesis does not contain any materials from papers published in peer-reviewed journals or from papers accepted at conferences in which I am listed as an author.
 91 | \\
 92 | *(B) This thesis contains material from [x number] paper(s) published in the following peer-reviewed journal(s) / from papers accepted at conferences in which I am listed as an author.}
 93 | {Please amend the typical statements below to suit your circumstances if (B) is selected.
 94 | 
 95 | 	Chapter 4 is published as {\color{blue}D.T. Murphy, S. Schmid, J.R. Hester, P.E.R. Blanchard, and W. Miiller.  Coordination site disorder in spinel-type LiMnTiO4.  Inorganic Chemistry 54, 4636-4643 (2015). DOI: 10.1021/ic502747p.}
 96 | 
 97 | 	The contributions of the co-authors are as follows:
 98 | 	\begin{itemize}[topsep=1pt,itemsep=1pt,partopsep=1pt, parsep=1pt]
 99 | 		\item A/Prof Schmid provided the initial project direction and edited the manuscript drafts.
100 | 		\item I prepared the manuscript drafts.  The manuscript was revised by Dr Hester and Dr. Blanchard.
101 | 		\item I co-designed the study with A/Prof Siegbert Schmid and performed all the laboratory work at the School of Materials Science and Engineering and the Singapore Synchrotron Light Source.   I also analyzed the data.
102 | 		\item All microscopy, including sample preparation, was conducted by me in the Facility for Analysis, Characterization, Testing and Simulation.
103 | 		\item Dr James Hester assisted in the collection of the neutron powder diffraction data.
104 | 		\item Dr Peter Blanchard assisted in the interpretation of the X-ray absorption spectroscopy data and carried out the spectral interpretation.
105 | 		\item Dr Wojciech Miiller assisted in the collection and provide guidance in the interpretation of the magnetic measurement data.
106 | 	\end{itemize}
107 | 
108 | 	Chapter 5 is published as {\color{blue}H. V Doan, B. Yao, Y. Fang, A. Sartbaeva, U. Hintermair, V. P Ting, Controlled Formation of Hierarchical Metal-Organic Frameworks using CO2 Expanded Solvent Systems. In press, ACS Sustainable Chemistry \& Engineering (2017). DOI: 10.1021/acssuschemeng.7b01429}
109 | 
110 | 	The contributions of the co-authors are as follows:
111 | 	\begin{itemize}[topsep=1pt,itemsep=1pt,partopsep=1pt, parsep=1pt]
112 | 		\item Prof Ting suggested the materials area and edited the manuscript drafts.
113 | 		\item I wrote the drafts of the manuscript.  The manuscript was revised together with Dr. Sartbaeva and Dr. Yao.
114 | 		\item II performed all the materials synthesis, collected X-ray diffraction patterns and visible light spectra, carried transmission electron microscopy, and conducted data evaluation.
115 | 		\item IDr. Y. Fang conducted the Rietveld analysis of the powder X-ray diffraction data and single crystal structure determinations.
116 | 		\item IDr U. Hintermair conducted the molecular dynamics simulations.
117 | 		\item IMs. A. Sartbaeva prepared the samples for electron microscopy.
118 | 	\end{itemize}
119 | }{Mar. 2019}{Styles/signature.png}
120 | 
121 | % ----------------------------------------------------------------------------------------
122 | % 	ACKNOWLEDGEMENTS
123 | % ----------------------------------------------------------------------------------------
124 | 
125 | \setstretch{1.3} % Reset the line-spacing to 1.3 for body text (if it has changed)
126 | 
127 | \acknowledgements{\addtocontents{toc}{\vspace{0.8em}} % Add a gap in the Contents, for aesthetics
128 | 
129 | I wish to express my greatest gratitude to my advisor.
130 | 
131 | % \begin{flushright}
132 | % \emph{Jinming Xu, December 2015}
133 | % \end{flushright}
134 | }
135 | 
136 | %----------------------------------------------------------------------------------------
137 | %	QUOTATION PAGE
138 | %----------------------------------------------------------------------------------------
139 | 
140 | \pagestyle{empty} % No headers or footers for the following pages
141 | \emph{``If I had one hour to save the world, I would spend 55 minutes defining the problem and only five minutes finding the solution."}
142 | 
143 | \begin{flushright}
144 | ---Einstein, Albert
145 | \end{flushright}
146 | \null\vfill % Add some space to move the quote down the page a bit
147 | 
148 | \begin{center}
149 | \large{To my dear family}
150 | \end{center}
151 | \vfill\vfill\null % Add some space at the bottom to position the quote just right
152 | \cleardoublepage % Start a new page and make the next page a right-hand (odd-numbered) page, producing a blank page if necessary
153 | 
154 | \pagestyle{fancy} % Return the page headers back to the "fancy" style
155 | \fancyhead{}   %clear all fields
156 | \fancyhead[LO]{\sl{\leftmark}}
157 | \fancyhead[RE]{\sl{\rightmark}}
158 | \fancyhead[LE,RO]{\thepage}
159 | 
160 | %----------------------------------------------------------------------------------------
161 | %	ABSTRACT PAGE
162 | %----------------------------------------------------------------------------------------
163 | 
164 | \addtotoc{Abstract} % Add the "Abstract" page entry to the Contents
165 | 
166 | \abstract{\addtocontents{toc}{\vspace{0.8em}}}% Add a gap in the Contents, for aesthetics
167 | 
168 | % 1. The Problem 2. The Issues 3. The Approach 4. The Results 5. The Experiments 6. The Applications
169 | 
170 | My abstracts
171 | 
172 | 
173 | 
174 | %----------------------------------------------------------------------------------------
175 | %	LIST OF CONTENTS/FIGURES/TABLES PAGES
176 | %----------------------------------------------------------------------------------------
177 | 
178 | \pagestyle{fancy} % The page style headers have been "empty" all this time, now use the "fancy" headers as defined before to bring them back
179 | 
180 | \tableofcontents % Write out the Table of Contents
181 | 
182 | \listoffigures % Write out the List of Figures
183 | 
184 | \listoftables % Write out the List of Tables
185 | 
186 | 
187 | %----------------------------------------------------------------------------------------
188 | %	ABBREVIATIONS
189 | %----------------------------------------------------------------------------------------
190 | 
191 | %\clearpage % Start a new page
192 | %
193 | %\setstretch{1.5} % Set the line spacing to 1.5, this makes the following tables easier to read
194 | %
195 | %\lhead{\emph{Abbreviations}} % Set the left side page header to "Abbreviations"
196 | %\listofsymbols{ll} % Include a list of Abbreviations (a table of two columns)
197 | %{
198 | %\textbf{LAH} & \textbf{L}ist \textbf{A}bbreviations \textbf{H}ere \\
199 | %%\textbf{Acronym} & \textbf{W}hat (it) \textbf{S}tands \textbf{F}or \\
200 | %}
201 | 
202 | %----------------------------------------------------------------------------------------
203 | %	PHYSICAL CONSTANTS/OTHER DEFINITIONS
204 | %----------------------------------------------------------------------------------------
205 | 
206 | %\clearpage % Start a new page
207 | %
208 | %\lhead{\emph{Physical Constants}} % Set the left side page header to "Physical Constants"
209 | %
210 | %\listofconstants{lrcl} % Include a list of Physical Constants (a four column table)
211 | %{
212 | %Speed of Light & $c$ & $=$ & $2.997\ 924\ 58\times10^{8}\ \mbox{ms}^{-\mbox{s}}$ (exact)\\
213 | %% Constant Name & Symbol & = & Constant Value (with units) \\
214 | %}
215 | 
216 | %----------------------------------------------------------------------------------------
217 | %	SYMBOLS
218 | %----------------------------------------------------------------------------------------
219 | 
220 | \cleardoublepage  % Start a new page (no need if the previous page is list of figures)
221 | 
222 | \listofnomenclature{ll} % Include a list of Symbols (a three column table)
223 | {
224 | \multicolumn{2}{l}{\LARGE{\textbf{Symbols}}}\\[0.618cm]
225 | $\mathcal{R}^n$                    &the $n$-dimensional Euclidean space\\
226 | $\mathcal{H}$                      &the Euclidean  space\\
227 | $\norm{\cdot}$                     &the 2-norm of a vector or matrix in Euclidean space\\
228 | $\norm{\cdot}_G$                   &the induced norm of a vector in G-space\\
229 | $\norm{\cdot}_E$                   &the induced norm of a vector or matrix in probabilistic space\\
230 | 
231 | 
232 | $\odot$                            &the Hadamard (component-wise) product\\
233 | $\otimes$                          &the Kronecker product\\
234 | $\innprod{\cdot}{\cdot}$           &the inner product of two vectors\\
235 | $\circ$                            &the composition of functions\\ [0.618cm]
236 | 
237 | 
238 | $\nabla f$                    &the gradient vector\\
239 | $\mathcal{C}^k$               &the function with continuous partial derivatives up to $k$ orders\\
240 | % $T_x\mathcal{M}$              &the tangent space of the set $\mathcal{M}$\\
241 | % $x_i$                         &the $i$-th component of a vector $x$\\
242 | $x_{i,k}$                     &the $i$-th component of a vector $x$ at time $k$\\
243 | $\bar{x}$                     &the vector with the average of all components of $x$ as each element\\
244 | $\ones$                       &all-ones column vector with proper dimension\\
245 | $\mathcal{C}$                 &the average space, i.e., $span\{{\bf 1}\}$ \\
246 | $\mathcal{C}^\perp$           &the disagreement space, i.e., $span^\perp\{{\bf 1}\}$ \\
247 | % W                             &the weight matrix\\
248 | % L                             &the Laplacian matrix\\
249 | $\Pi_\parallel$               &the projection matrix to the average space $\mathcal{C}$\\
250 | $\Pi_\perp$                   &the projection matrix to the disagreement space $\mathcal{C}^\perp$ \\
251 | $O(\cdot)$                    &order of magnitude or ergodic convergence rate (running average)\\
252 | $o(\cdot)$                    &non-ergodic convergence rate\\
253 | % $O(\cdot)$                    &the ergodic convergence rate stated in terms of the running average\\
254 | % $o(\cdot)$                    &the non-ergodic convergence rate stated in terms of $x_k$\\
255 | 
256 | 
257 | 
258 | $\mathcal{N}_i$               &the index set of the neighbors of agent $i$ \\ [1cm]
259 | 
260 | \multicolumn{2}{l}{\LARGE{\textbf{Acronyms}}}\\[0.618cm]
261 | DOP                      & Distributed Optimization Problem\\
262 | EDOP                     & Equivalent Distributed Optimization Problem\\
263 | SDOP                     & Stochastic Distributed Optimization Problem\\
264 | OEP                      & Optimal Exchange Problem\\
265 | OCP                      & Optimal Consensus Problem\\
266 | DOCP                     & Dynamic Optimal Consensus Problem\\[0.618cm]
267 | AugDGM           & Augmented Distributed Gradient Methods\\
268 | AsynDGM          & Asynchronous Distributed Gradient Methods\\
269 | D-ESC            & Distributed Extremum Seeking Control\\
270 | D-SPA            & Distributed Simultaneous Perturbation Approach\\
271 | % D-PDSPA & Distributed Primal-Dual Simultaneous Perturbation Approach\\
272 | D-FBBS           & Distributed Forward-Backward Bregman Splitting\\
273 | ADMM             & Alternating Direction Method of Multipliers\\
274 | DSM              & Distributed (Sub)gradient Method\\[0.618cm]
275 | 
276 | GAS                      & Globally Asymptotically Stable \\
277 | UGAS                     & Uniformly Globally Asymptotically Stable \\
278 | SPAS                     & Semi-globally Practically Asymptotically Stable\\
279 | USPAS                    & Uniformly Semi-globally Practically Asymptotically Stable\\[0.618cm]
280 | HoS                      & Heterogeneity of Stepsize\\
281 | FPR                      & Fixed Point Residual\\
282 | OBE                      & Objective Error\\[0.618cm]
283 | i.i.d.           & independent and identically distributed\\
284 | $a.s.$           & almost sure convergence of a random sequence\\
285 | }
286 | 
287 | %----------------------------------------------------------------------------------------
288 | %	THESIS CONTENT - CHAPTERS
289 | %----------------------------------------------------------------------------------------
290 | 
291 | \mainmatter       % Begin numeric (1,2,3...) page numbering
292 | \pagenumbering{arabic}
293 | \setstretch{1.3}  % Return the line spacing back to 1.3
294 | 
295 | % define the headings for the body of the thesis
296 | \fancyhead{}   %clear all fields
297 | \fancyhead[LO]{\sl{\leftmark}}
298 | \fancyhead[RE]{\sl{\rightmark}}
299 | \fancyhead[LE,RO]{\thepage}
300 | 
301 | 
302 | % Include the chapters of the thesis as separate files from the Chapters folder
303 | % Uncomment the lines as you write the chapters
304 | 
305 | \input{./Chapters/Chapter1}
306 | \part{Part Name: Use it when there are many chapters}
307 | \input{./Chapters/Chapter2}
308 | \input{./Chapters/Chapter3}
309 | \part{Again for Second Part}
310 | \input{./Chapters/Chapter4}
311 | \input{./Chapters/Chapter5}
312 | 
313 | 
314 | %----------------------------------------------------------------------------------------
315 | %	THESIS CONTENT - APPENDICES
316 | %----------------------------------------------------------------------------------------
317 | 
318 | \addtocontents{toc}{\vspace{0.8em}} % Add a gap in the Contents, for aesthetics
319 | 
320 | \appendix % Cue to tell LaTeX that the following 'chapters' are Appendices
321 | 
322 | % Include the appendices of the thesis as separate files from the Appendices folder
323 | % Uncomment the lines as you write the Appendices
324 | 
325 | \input{./Appendices/AppendixA}
326 | %\input{./Appendices/AppendixB}
327 | 
328 | \cleardoublepage    % start a new page
329 | 
330 | %----------------------------------------------------------------------------------------
331 | %	AUTHOR'S PUBLICATIONS
332 | %----------------------------------------------------------------------------------------
333 | 
334 | \authorpublications{
335 | 
336 | \section*{Awards}
337 | 
338 | \begin{itemize}
339 | 	\item \textbf{Best Paper Awards}, ``A Great System,'' \emph{Nature}.
340 | \end{itemize}
341 | 
342 | \section*{Patents}
343 | \begin{itemize}
344 | 	\item \textbf{A Great System}, ``A Great System,'' \emph{Nature}.
345 | \end{itemize}
346 | 
347 | \section*{Journal Articles}
348 | 
349 | \begin{itemize}
350 |     \item \textbf{My name} and My colleague, ``A Great System,'' \emph{Nature}.
351 | \end{itemize}
352 | 
353 | \section*{Conference Proceedings}
354 | 
355 | \begin{itemize}
356 |   \item \textbf{My name}, My colleague 1, My colleague 3 and My colleague 3, ``Greater System,'' in \emph{Conference of Vision, 2018}.
357 | \end{itemize}
358 | 
359 | }
360 | 
361 | \backmatter
362 | 
363 | %----------------------------------------------------------------------------------------
364 | %	BIBLIOGRAPHY
365 | %----------------------------------------------------------------------------------------
366 | 
367 | \label{Bibliography}
368 | \setstretch{1}
369 | \bibliographystyle{unsrtnat}
370 | \bibliography{References/first_paper,References/second_paper}
371 | 
372 | \end{document}
373 | 


--------------------------------------------------------------------------------
/Thesis.cls:
--------------------------------------------------------------------------------
  1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2 | % Thesis LaTeX Template - THESIS CLASS FILE
  3 | %
  4 | % This template has been downloaded from:
  5 | % http://www.latextemplates.com
  6 | %
  7 | % This class file defines the structure and design of the template.
  8 | %
  9 | % There is one part of this file that needs to be filled out - the variables
 10 | % dictating the document particulars such as the author name, university
 11 | % name, etc. You will find these in the commented "DOCUMENT VARIABLES"
 12 | % section below.
 13 | %
 14 | % The other two easily-editable sections are the margin sizes and abstract.
 15 | % These have both been commented for easy editing. Advanced LaTeX
 16 | % users will have no trouble editing the rest of the document to their liking.
 17 | %
 18 | % Original header:
 19 | %% This is file `Thesis.cls', based on 'ECSthesis.cls', by Steve R. Gunn
 20 | %% generated with the docstrip utility.
 21 | %%
 22 | %% Created by Steve R. Gunn, modified by Sunil Patel: www.sunilpatel.co.uk
 23 | %% Further modified by www.latextemplates.com
 24 | %
 25 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 26 | 
 27 | \NeedsTeXFormat{LaTeX2e}[1996/12/01]
 28 | \ProvidesClass{Thesis}
 29 |               [2007/22/02 v1.0
 30 |    LaTeX document class]
 31 | \def\baseclass{book}
 32 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
 33 | \def\@checkoptions#1#2{
 34 |   \edef\@curroptions{\@ptionlist{\@currname.\@currext}}
 35 |   \@tempswafalse
 36 |   \@tfor\@this:=#2\do{
 37 |     \@expandtwoargs\in@{,\@this,}{,\@curroptions,}
 38 |     \ifin@ \@tempswatrue \@break@tfor \fi}
 39 |   \let\@this\@empty
 40 |   \if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi
 41 | }
 42 | \@checkoptions{11pt}{{10pt}{11pt}{12pt}}
 43 | \PassOptionsToClass{a4paper}{\baseclass}
 44 | \ProcessOptions\relax
 45 | \LoadClass{\baseclass}
 46 | \newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}
 47 | 
 48 | \newcommand\Declaration[1]{
 49 | \btypeout{Declaration of Authorship}
 50 | \addtotoc{Declaration of Authorship}
 51 | \thispagestyle{plain}
 52 | \null\vfil
 53 | %\vskip 60\p@
 54 | \begin{center}{\huge\bf Declaration of Authorship\par}\end{center}
 55 | %\vskip 60\p@
 56 | {\normalsize #1}
 57 | \vfil\vfil\null
 58 | %\cleardoublepage
 59 | }
 60 | 
 61 | \newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}
 62 | \def\today{\ifcase\month\or
 63 |   January\or February\or March\or April\or May\or June\or
 64 |   July\or August\or September\or October\or November\or December\fi
 65 |   \space \number\year}
 66 | \usepackage{setspace}
 67 | \onehalfspacing
 68 | \setlength{\parindent}{0pt}
 69 | \setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}
 70 | \usepackage{vmargin}
 71 | %----------------------------------------------------------------------------------------
 72 | %	MARGINS
 73 | %----------------------------------------------------------------------------------------
 74 | \setmarginsrb  {1.456in}  % left margin (3.7cm NTU)  default: 1.5in
 75 |                         { 0.8in}  % top margin       default: 0.6in
 76 |                         { 1.0in}  % right margin     default: 1.0in
 77 |                         { 0.8in}  % bottom margin    default: 0.8in
 78 |                         {  20pt}  % head height      default: 20pt
 79 |                         {0.25in}  % head sep         default: 0.25in
 80 |                         {   9pt}  % foot height      default: 9pt
 81 |                         { 0.3in}  % foot sep         default: 0.3in
 82 | %----------------------------------------------------------------------------------------
 83 | \raggedbottom
 84 | \setlength{\topskip}{1\topskip \@plus 5\p@}
 85 | \doublehyphendemerits=10000       % No consecutive line hyphens.
 86 | \brokenpenalty=10000              % No broken words across columns/pages.
 87 | \widowpenalty=9999                % Almost no widows at bottom of page.
 88 | \clubpenalty=9999                 % Almost no orphans at top of page.
 89 | \interfootnotelinepenalty=9999    % Almost never break footnotes.
 90 | \usepackage{fancyhdr}
 91 | \lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}
 92 | \rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}
 93 | \chead{}\lfoot{}\rfoot{}\cfoot{}
 94 | \pagestyle{fancy}
 95 | \renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter.\ #1}{\@chapapp\ \thechapter.\ #1}}
 96 | %\renewcommand{\sectionmark}[1]{}
 97 | \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
 98 | \renewcommand{\subsectionmark}[1]{}
 99 | \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
100 | \hbox{}
101 | \thispagestyle{empty}
102 | \newpage
103 | \if@twocolumn\hbox{}\newpage\fi\fi\fi}
104 | \usepackage{amsmath,amsfonts,amscd,amsthm,xspace}
105 | 
106 | \theoremstyle{plain}
107 | 
108 | \newtheorem{theorem}{Theorem}[chapter]
109 | \newtheorem{corollary}[theorem]{Corollary}
110 | \newtheorem{lemma}[theorem]{Lemma}
111 | \newtheorem{proposition}{Proposition}[chapter]
112 | \newtheorem{axiom}[theorem]{Axiom}
113 | 
114 | \theoremstyle{definition}
115 | \newtheorem{definition}{Definition}[chapter]
116 | \newtheorem{assumption}{Assumption}[chapter]
117 | \newtheorem{example}{Example}[chapter]
118 | \newtheorem*{pf}{Proof}
119 | 
120 | \theoremstyle{remark}
121 | \newtheorem{remark}{Remark}[chapter]
122 | 
123 | \usepackage[centerlast,small,sc]{caption}
124 | \captionsetup{justification=justified,singlelinecheck=true}
125 | \setlength{\captionmargin}{20pt}
126 | \newcommand{\pref}[1]{Part~\ref{#1}}
127 | \newcommand{\fref}[1]{Figure~\ref{#1}}
128 | \newcommand{\tref}[1]{Table~\ref{#1}}
129 | \newcommand{\eref}[1]{Equation~(\ref{#1})}
130 | \newcommand{\exref}[1]{Example~\ref{#1}}
131 | \newcommand{\cref}[1]{Chapter~\ref{#1}}
132 | \newcommand{\sref}[1]{Section~\ref{#1}}
133 | \newcommand{\aref}[1]{Appendix~\ref{#1}}
134 | \newcommand{\asref}[1]{Assumption~\ref{#1}}
135 | \newcommand{\psref}[1]{Proposition~\ref{#1}}
136 | \newcommand{\dref}[1]{Definition~\ref{#1}}
137 | \newcommand{\lmref}[1]{Lemma~\ref{#1}}
138 | \newcommand{\thref}[1]{Theorem~\ref{#1}}
139 | \newcommand{\rref}[1]{Remark~\ref{#1}}
140 | %\newcommand{\lcite}[2][]{{#1},~\cite{#2}}
141 | \renewcommand{\topfraction}{0.85}
142 | \renewcommand{\bottomfraction}{.85}
143 | \renewcommand{\textfraction}{0.1}
144 | \renewcommand{\dbltopfraction}{.85}
145 | \renewcommand{\floatpagefraction}{0.75}
146 | \renewcommand{\dblfloatpagefraction}{.75}
147 | \setcounter{topnumber}{9}
148 | \setcounter{bottomnumber}{9}
149 | \setcounter{totalnumber}{20}
150 | \setcounter{dbltopnumber}{9}
151 | \usepackage{graphicx}
152 | \usepackage{epstopdf}
153 | %\usepackage[scriptsize]{subfigure} %depracated, use subfig or subcaption
154 | \usepackage{booktabs}
155 | \usepackage{rotating}
156 | \usepackage{listings}
157 | \usepackage{Styles/lstpatch}
158 | \lstset{captionpos=b,
159 |         frame=tb,
160 |         basicstyle=\scriptsize\ttfamily,
161 |         showstringspaces=false,
162 |         keepspaces=true}
163 | \lstdefinestyle{matlab} {
164 |         language=Matlab,
165 |         keywordstyle=\color{blue},
166 |         commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
167 |         stringstyle=\color[rgb]{0.7,0,0} }
168 | 
169 | % This only changes you PDF information. The thesis title and author name need further changes in \thesistile and \authors
170 | % To remove backref of references (the page number associated with the references where it is cited), please remove "backref=page".
171 | \usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
172 |    bookmarksopenlevel=1,bookmarksnumbered=true,hypertexnames=true,
173 |    colorlinks,linkcolor={blue},citecolor={blue},urlcolor={black},pdfauthor={Chen Wang},pdftitle={Kernel Learning for Visual Perception},
174 |    pdfstartview={FitV},unicode,breaklinks=true,plainpages=false,backref=page]{hyperref}
175 | 
176 | \pdfstringdefDisableCommands{
177 |    \let\\\space
178 | }
179 | \newcommand*{\supervisor}[1]{\def\supname{#1}}
180 | \newcommand*{\thesistitle}[1]{\def\ttitle{#1}}
181 | \newcommand*{\examiner}[1]{\def\examname{#1}}
182 | \newcommand*{\degree}[1]{\def\degreename{#1}}
183 | \newcommand*{\authors}[1]{\def\authornames{#1}}
184 | \newcommand*{\addresses}[1]{\def\addressnames{#1}}
185 | \newcommand*{\university}[1]{\def\univname{#1}}
186 | \newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}
187 | \newcommand*{\department}[1]{\def\deptname{#1}}
188 | \newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}
189 | \newcommand*{\group}[1]{\def\groupname{#1}}
190 | \newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}
191 | \newcommand*{\faculty}[1]{\def\facname{#1}}
192 | \newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}
193 | \newcommand*{\subject}[1]{\def\subjectname{#1}}
194 | \newcommand*{\keywords}[1]{\def\keywordnames{#1}}
195 | 
196 | %----------------------------------------------------------------------------------------
197 | %	DOCUMENT VARIABLES
198 | %	Fill in the lines below to update the thesis template
199 | %	If you wish to cite each of the variables defined below, look at the
200 | %	section above for the citation command e.g. \examiner{} below is
201 | %	defined as \examname above so you cite it as \examname
202 | %----------------------------------------------------------------------------------------
203 | 
204 | %Your thesis title - this is used in the title and abstract
205 | %-------------------------------------------------
206 | \thesistitle{\href{https://github.com/wang-chen/thesis_template_ntu}{The Greatest Thesis in the World}} %
207 | %-------------------------------------------------
208 | \supervisor{Prof. Einstein \textsc{XXX}} % You supervisor's name - this is used in the title page
209 | %-------------------------------------------------
210 | \examiner{} % Your examiner's name - this is not currently used anywhere in the template, cite it with \examname if you want it
211 | %-------------------------------------------------
212 | \degree{Doctor of Philosophy} % Your degree name - this is currently used in the title page and abstract
213 | %-------------------------------------------------
214 | \authors{\href{https://wang-chen.github.io}{Author Name}} % Your name - this is used in the title page and abstract
215 | %-------------------------------------------------
216 | \addresses{} % Your address - this is not currently used anywhere in the template, cite it with \addressnames if you want it
217 | %-------------------------------------------------
218 | \subject{} % Your subject area - this is not currently used anywhere in the template, cite it with \subjectname if you want it
219 | %-------------------------------------------------
220 | \keywords{} % Keywords for your thesis - this is not currently used anywhere in the template, cite it with \keywordnames if you want it
221 | %-------------------------------------------------
222 | \university{\texorpdfstring{\href{http://www.university.com} % Your university's URL
223 |                 {University Name}} % Your university's name - this is currently used in the title page
224 |                 {University Name}}
225 | %-------------------------------------------------
226 | \UNIVERSITY{\texorpdfstring{\href{http://www.ntu.edu.sg/} % Your university's URL
227 |                 {UNIVERSITY NAME (IN BLOCK CAPITALS)}} % Your university's name in capitals - this is currently used in the abstract page
228 |                 {UNIVERSITY NAME (IN BLOCK CAPITALS)}}
229 | %-------------------------------------------------
230 | \department{\texorpdfstring{\href{http://www.eee.ntu.edu.sg} % Your department's URL
231 |                 {School of Electrical \& Electronic Engineering}} % Your department's name - used in the title page and abstract
232 |                 {Department or School Name}}
233 | %-------------------------------------------------
234 | \DEPARTMENT{\texorpdfstring{\href{Department or School Web Site URL Here (include http://)} % Your department's URL
235 |                 {DEPARTMENT OR SCHOOL NAME (IN BLOCK CAPITALS)}} % Your department's name in capitals - this is not currently used anywhere in the template, cite it with \DEPTNAME if you want it
236 |                 {DEPARTMENT OR SCHOOL NAME (IN BLOCK CAPITALS)}}
237 | %-------------------------------------------------
238 | \group{\texorpdfstring{\href{Research Group Web Site URL Here (include http://)} % Your research group's URL
239 |                 {Research Group Name}} % Your research group's name - this is currently used in the title page
240 |                 {Research Group Name}}
241 | %-------------------------------------------------
242 | \GROUP{\texorpdfstring{\href{Research Group Web Site URL Here (include http://)} % Your research group's URL
243 |                 {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}} % Your research group's name in capitals - this is not currently used anywhere in the template, cite it with \GROUPNAME if you want it
244 |                 {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}
245 | %-------------------------------------------------
246 | \faculty{\texorpdfstring{\href{Faculty Web Site URL Here (include http://)} % Your faculty's URL
247 |                 {Faculty Name}} % Your faculty's name - this is currently used in the abstract page
248 |                 {Faculty Name}}
249 | %-------------------------------------------------
250 | \FACULTY{\texorpdfstring{\href{Faculty Web Site URL Here (include http://)} % Your faculty's URL
251 |                 {FACULTY NAME (IN BLOCK CAPITALS)}} % Your faculty's name in capitals - this is not currently used anywhere in the template, cite it with \FACNAME if you want it
252 |                 {FACULTY NAME (IN BLOCK CAPITALS)}}
253 | %----------------------------------------------------------------------------------------
254 | 
255 | %----------------------------------------------------------------------------------------
256 | % TITLE PAGE DESIGN
257 | %----------------------------------------------------------------------------------------
258 | 
259 | %\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % New command to make the lines in the title page
260 | 
261 | 
262 | \renewcommand\maketitle{
263 |   \btypeout{Title Page}
264 |   \hypersetup{pdftitle={\@title}}
265 |   \hypersetup{pdfsubject=\subjectname}
266 |   \hypersetup{pdfauthor=\authornames}
267 |   \hypersetup{pdfkeywords=\keywordnames}
268 |   \thispagestyle{empty}
269 |   \begin{titlepage}
270 |   \begin{center}
271 |   \setstretch{2}
272 |   \vfill
273 |   \textbf{\LARGE \newline \rule{\linewidth}{2pt}\\\vspace{-7pt}\ttitle\\\rule{\linewidth}{2pt}}\\% Thesis title
274 |   % \setstretch{1.5}
275 |   \vfill
276 |   \href{http://www.ntu.edu.sg}{\includegraphics[width=230pt]{Styles/ntu_logo}}\\%[2cm]
277 |   \vfill
278 |   \textbf{\Large \authornames}\\%[1.2cm]
279 |   {\large \deptname}\\%[1.2cm] % University name
280 |   \vfill
281 |   \setstretch{1.2}
282 |   \large A thesis submitted to the Nanyang Technological University \\ in partial fulfillment of the requirements for the degree of\\ \degreename\\[1cm] % University requirement text
283 |   {\large\bf \the\year}\\[2cm] % Date
284 |   \end{center}
285 |   \end{titlepage}
286 |   \cleardoublepage
287 | }
288 | 
289 | \newcommand\maketitleforreview{
290 | 	\btypeout{Title Page}
291 | 	\hypersetup{pdftitle={\@title}}
292 | 	\hypersetup{pdfsubject=\subjectname}
293 | 	\hypersetup{pdfauthor=\authornames}
294 | 	\hypersetup{pdfkeywords=\keywordnames}
295 | 	\thispagestyle{empty}
296 | 	\begin{titlepage}
297 | 		\begin{center}
298 | 			\setstretch{2}
299 | 			\vfill
300 | 			\textbf{\LARGE \newline \ttitle}\\% Thesis title
301 | 			\vfill
302 | 			\textbf{\Large \textbf{\authornames}}\\[1cm]
303 | 			\vfill
304 | 			{\large \textbf{\deptname}}\\%[1.2cm] % University name
305 | 			[1.2cm]
306 | 			\setstretch{1.2}
307 | 			\large A thesis submitted to the Nanyang Technological University \\ in partial fulfillment of the requirements for the degree of\\ \degreename\\[1cm] % University requirement text
308 | 			{\large\bf \the\year}\\[2cm] % Date
309 | 		\end{center}
310 | 	\end{titlepage}
311 | 	\cleardoublepage
312 | }
313 | 
314 | 
315 | %----------------------------------------------------------------------------------------
316 | %	ABSTRACT PAGE DESIGN
317 | %----------------------------------------------------------------------------------------
318 | \newenvironment{abstract}
319 | {
320 |   \btypeout{Abstract Page}
321 |   \thispagestyle{plain}
322 |   \vspace*{1.5cm}
323 |  % \null\vfil
324 |   \begin{center}
325 |     \setlength{\parskip}{0pt}
326 | %    {\normalsize \UNIVNAME \par} % University name in capitals
327 | %    \bigskip
328 |     {\flushleft\Huge{\textbf{Abstract}} \par}
329 | %    {\normalsize \facname \par} % Faculty name
330 | %    {\normalsize \deptname \par} % Department name
331 | %    \bigskip
332 | %    {\normalsize \degreename\par} % Degree name
333 | %    \bigskip
334 | %    {\normalsize\bf \@title \par} % Thesis title
335 | %    \medskip
336 | %    {\normalsize by \authornames \par} % Author name
337 | %    \bigskip
338 |   \end{center}
339 | }
340 | {
341 |   \vfil\vfil\vfil\null
342 |   \cleardoublepage
343 | }
344 | 
345 | %----------------------------------------------------------------------------------------
346 | \addtocounter{secnumdepth}{1}
347 | \setcounter{tocdepth}{6}
348 | \newcounter{dummy}
349 | \newcommand\addtotoc[1]{
350 | \refstepcounter{dummy}
351 | \addcontentsline{toc}{chapter}{#1}}
352 | \renewcommand\tableofcontents{
353 | \btypeout{Table of Contents}
354 | \begin{spacing}{1}{
355 |     \setlength{\parskip}{1pt}
356 |     \if@twocolumn
357 |       \@restonecoltrue\onecolumn
358 |     \else
359 |       \@restonecolfalse
360 |     \fi
361 |     \chapter*{\contentsname
362 |         \@mkboth{
363 |            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
364 |     \@starttoc{toc}
365 |     \if@restonecol\twocolumn\fi
366 |    \cleardoublepage
367 | }\end{spacing}
368 | }
369 | \renewcommand\listoffigures{
370 | \btypeout{List of Figures}
371 | \addtotoc{List of Figures}
372 | \begin{spacing}{1}{
373 |     \setlength{\parskip}{1pt}
374 |     \if@twocolumn
375 |       \@restonecoltrue\onecolumn
376 |     \else
377 |       \@restonecolfalse
378 |     \fi
379 |     \chapter*{\listfigurename
380 |       \@mkboth{\MakeUppercase\listfigurename}
381 |               {\MakeUppercase\listfigurename}}
382 |     \@starttoc{lof}
383 |     \if@restonecol\twocolumn\fi
384 |     \cleardoublepage
385 | }\end{spacing}
386 | }
387 | \renewcommand\listoftables{
388 | \btypeout{List of Tables}
389 | \addtotoc{List of Tables}
390 | \begin{spacing}{1}{
391 |     \setlength{\parskip}{1pt}
392 |     \if@twocolumn
393 |       \@restonecoltrue\onecolumn
394 |     \else
395 |       \@restonecolfalse
396 |     \fi
397 |     \chapter*{\listtablename
398 |       \@mkboth{
399 |           \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
400 |     \@starttoc{lot}
401 |     \if@restonecol\twocolumn\fi
402 |     \cleardoublepage
403 | }\end{spacing}
404 | }
405 | \newcommand\listsymbolname{Abbreviations}
406 | \usepackage{longtable}
407 | \newcommand\listofsymbols[2]{
408 | \btypeout{\listsymbolname}
409 | \addtotoc{\listsymbolname}
410 |     \chapter*{\listsymbolname
411 |       \@mkboth{
412 |           \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}
413 | \begin{longtable}[c]{#1}#2\end{longtable}\par
414 |     \cleardoublepage
415 | }
416 | \newcommand\listconstants{Physical Constants}
417 | \usepackage{longtable}
418 | \newcommand\listofconstants[2]{
419 | \btypeout{\listconstants}
420 | \addtotoc{\listconstants}
421 |     \chapter*{\listconstants
422 |       \@mkboth{
423 |           \MakeUppercase\listconstants}{\MakeUppercase\listconstants}}
424 | \begin{longtable}[c]{#1}#2\end{longtable}\par
425 |     \cleardoublepage
426 | }
427 | \newcommand\listnomenclature{Symbols and Acronyms}
428 | \usepackage{longtable}
429 | \newcommand\listofnomenclature[2]{
430 | \btypeout{\listnomenclature}
431 | \addtotoc{\listnomenclature}
432 |     \chapter*{\listnomenclature
433 |       \@mkboth{
434 |           \MakeUppercase\listnomenclature}{\MakeUppercase\listnomenclature}}
435 | \begin{longtable}[c]{#1}#2\end{longtable}\par
436 |     \cleardoublepage
437 | }
438 | \newcommand\acknowledgements[1]{
439 | \btypeout{Acknowledgements}
440 | \addtotoc{Acknowledgements}
441 | \thispagestyle{plain}
442 | \vspace*{1.5cm}
443 | \begin{center}{\flushleft\Huge{\textbf{Acknowledgements}} \par}\end{center}
444 | {\normalsize #1}
445 | \vfil\vfil\null
446 | \cleardoublepage
447 | }
448 | 
449 | \usepackage{tikz}
450 | \usepackage{eso-pic}
451 | % NTU Style 3 statements
452 | \newcommand\thesisdeclareOriginality[3]{
453 | 	\btypeout{Declaration}
454 | 	\thispagestyle{empty}
455 | 	\begin{spacing}{2}
456 | 		\begin{center}\Large \underline{\bf Statement of Originality}\end{center}
457 | 		{\textnormal{\large #1}}
458 | 		\vspace{2.5cm}
459 | 		\begin{center}
460 | 			\makebox[4cm]{#2}  \hfill
461 |       \tikz[remember picture,overlay] 
462 |       \node[opacity=0.9,inner sep=0pt]at (2.13, 0.5) {\includegraphics[width=4cm,height=1.527cm]{Styles/ntu-watermark.png}};
463 |       \makebox[4cm]{\includegraphics[height=0.9cm]{#3}}\\
464 | 		\end{center}
465 | 		\vspace{-1.8cm}
466 | 		\begin{center}
467 | 			\makebox[4cm]{\dotfill}  \hfill \makebox[4cm]{\dotfill}\\
468 | 			\makebox[4cm]{Date}    \hfill \makebox[4cm]{\authornames}
469 | 		\end{center}
470 | 	\end{spacing}
471 | 	\cleardoublepage
472 | }
473 | 
474 | \newcommand\thesisdeclareSupervisor[3]{
475 | 	\btypeout{Declaration}
476 | 	\thispagestyle{empty}
477 | 	\begin{spacing}{2}
478 | 		\begin{center}\Large \underline{\bf Supervisor Declaration Statement}\end{center}
479 | 		{\textnormal{\large #1}}
480 | 		\vspace{2.5cm}
481 | 		\begin{center}
482 | 			\makebox[4cm]{#2}  \hfill
483 |       \tikz[remember picture,overlay] 
484 |       \node[opacity=0.9,inner sep=0pt]at (2.13, 0.5) {\includegraphics[width=4cm,height=1.527cm]{Styles/ntu-watermark.png}};
485 | 			\makebox[4cm]{\includegraphics[height=0.9cm]{#3}}\\
486 | 		\end{center}
487 | 		\vspace{-1.8cm}
488 | 		\begin{center}
489 | 			\makebox[4cm]{\dotfill}  \hfill \makebox[4cm]{\dotfill}\\
490 | 			\makebox[4cm]{Date}    \hfill \makebox[4cm]{\supname}
491 | 		\end{center}
492 | 	\end{spacing}
493 | 	\cleardoublepage
494 | }
495 | 
496 | \newcommand\thesisdeclareAuthorship[4]{
497 | 	\btypeout{Declaration}
498 | 	\thispagestyle{empty}
499 | 	\begin{spacing}{2}
500 | 		\begin{center}\Large \underline{\bf Authorship Attribution Statement}\end{center}
501 | 		{\textnormal{\large #1}}
502 | 	\end{spacing}
503 | 	\begin{spacing}{2}
504 | 		{\setstretch{1.0}#2}
505 | 		\vspace{2.5cm}
506 | 		\begin{center}
507 | 			\makebox[4cm]{#3}  \hfill
508 |       \tikz[remember picture,overlay] 
509 |       \node[opacity=0.9,inner sep=0pt]at (2.13, 0.5) {\includegraphics[width=4cm,height=1.527cm]{Styles/ntu-watermark.png}};
510 | 			\makebox[4cm]{\includegraphics[height=0.9cm]{#4}}\\
511 | 		\end{center}
512 | 		\vspace{-1.8cm}
513 | 		\begin{center}
514 | 			\makebox[4cm]{\dotfill}  \hfill \makebox[4cm]{\dotfill}\\
515 | 			\makebox[4cm]{Date}    \hfill \makebox[4cm]{\authornames}
516 | 		\end{center}
517 | 	\end{spacing}
518 | 	\cleardoublepage
519 | }
520 | 
521 | 
522 | \newcommand\authorpublications[1]{
523 | 	\newcommand\secname{List of Author's Awards, Patents, and Publications}
524 | %	\addcontentsline{toc}{section}{\secname}
525 | 	\markboth{\secname}{\secname}
526 | 	\btypeout{\secname}
527 | 	\addtotoc{\secname}
528 | 	\thispagestyle{plain}
529 | 	\vspace*{1.5cm}
530 | 	\begin{center}{\flushleft\Huge{\textbf{\secname\footnote[1]{The superscript $^*$ indicates joint first authors}}} \par}\end{center}
531 | 	{\normalsize #1}
532 | 	\vfil\vfil\null
533 | 	\cleardoublepage
534 | }
535 | 
536 | \newcommand\dedicatory[1]{
537 | \btypeout{Dedicatory}
538 | \thispagestyle{plain}
539 | \null\vfil
540 | \vskip 60\p@
541 | \begin{center}{\Large \sl #1}\end{center}
542 | \vfil\null
543 | \cleardoublepage
544 | }
545 | \renewcommand\backmatter{
546 |   \if@openright
547 |     \cleardoublepage
548 |   \else
549 |     \clearpage
550 |   \fi
551 |   \addtotoc{\bibname}
552 |   \btypeout{\bibname}
553 |   \@mainmatterfalse}
554 | \endinput
555 | 
556 | 
557 | 


--------------------------------------------------------------------------------