Hku Thesis

Unofficial HKU MSc Thesis LateX Template

Category

masters

License

Free to use (MIT)

File

main.tex

main.texRead-only preview
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  HKU MSc Final Report / Dissertation — LaTeX Template
%
%  File structure:
%    main.tex                    ← master file (document body only)
%    Config/config.tex           ← all packages & global settings
%    Preliminary/cover.tex       ← thesis details + cover page  ← EDIT HERE
%    Preliminary/abstract.tex    ← abstract
%    Preliminary/declaration.tex ← declaration of authorship
%    Preliminary/acknowledgment.tex
%    Preliminary/symbols.tex     ← list of symbols
%    Chapters/chapter01–05.tex   ← chapters
%    Figures/                    ← add figures here
%    references.tex              ← bibliography entries
%    appendices.tex              ← appendix chapters
%
%  Compiler: XeLaTeX (required)
%  Compile order (Overleaf/Prism: automatic):
%    xelatex main
%    xelatex main
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[12pt, a4paper, oneside]{report}

%====================================================================
%  LOAD ALL PACKAGES & SETTINGS
%====================================================================
\input{Config/config}

%====================================================================
%  HELPER: unnumbered chapter heading with TOC entry
%====================================================================
\newcommand{\unnumberedchapter}[1]{%
  \chapter*{\MakeUppercase{#1}}%
  \phantomsection% hyperref anchor so the ToC link points here, not to the cover
  \addcontentsline{toc}{chapter}{#1}%
  \markboth{\MakeUppercase{#1}}{}%
}

%====================================================================
\begin{document}
%====================================================================

\pagenumbering{roman}
\setcounter{page}{0}

%====================================================================
%  COVER PAGE  (thesis details are inside Preliminary/cover.tex)
%====================================================================
\input{Preliminary/cover}

%====================================================================
%  FRONT MATTER
%====================================================================
\input{Preliminary/abstract}
\input{Preliminary/declaration}
\input{Preliminary/acknowledgment}

\tableofcontents\clearpage

% List of Tables — only shown if tables exist in the document
\phantomsection% anchor on the first page of the list
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\clearpage

% List of Figures — only shown if figures exist in the document
\phantomsection% anchor on the first page of the list
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\clearpage

% List of Symbols — only shown if symbol exist in the document




%====================================================================
%  MAIN MATTER
%====================================================================
\pagenumbering{arabic}
\setcounter{page}{1}

\input{Chapters/chapter01}
\input{Chapters/chapter02}
\input{Chapters/chapter03}
\input{Chapters/chapter04}
\input{Chapters/chapter05}

%====================================================================
%  REFERENCES
%====================================================================
\clearpage
\chapter*{References}
\phantomsection
\addcontentsline{toc}{chapter}{References}
\renewcommand{\bibname}{References}
\label{chap:references}
{\pagestyle{plain}
\input{references.tex}
\clearpage % ship out the last page while 'plain' is still active
}


%====================================================================
%  APPENDICES
%====================================================================
\appendix
\renewcommand{\cftchappresnum}{}     % remove "Appendix X" prefix in ToC
\renewcommand{\cftchapaftersnum}{}   % remove any separator after it
\renewcommand{\cftchapnumwidth}{0pt} % reclaim the spacing
\input{appendices}

\end{document}
Preview
Hku Thesis preview
Hku Thesis LaTeX Template | Bibby | Bibby AI