%% thesis.tex
%% Distributed with umalayathesis v1.5.3 (7 January 2023)
%% TO USE APA7 REFERENCE STYLE PLEASE SEE https://tex.my/2022/05/28/using-apa7-with-umalayathesis
\documentclass[english,singlespacedlisttitles]{umalayathesis}
%% Document class options
%% -----------------------
%% english (default): English thesis
%%
%% bahasam : Malay thesis
%%
%% apacite (default): Loads the apacite package, which implements the APA6
%% citation and referencing styles strictly.
%%
%% ***TO USE APA7 REFERENCE STYLE PLEASE SEE https://tex.my/2022/05/28/using-apa7-with-umalayathesis***
%%
%% custombib: Does not pre-load any bibliography style; you will need to
%% specify \bibliographystyle, \bibliographystyleown etc yourself.
%%
%% appendixhead: Add "APPENDICES" before the Appendix A title
%%
%% altcaption: Caption in smaller fonts; only Figure X, Table Y bold.
%%
%% singlespacedlisttitles: Long titles in the ToC, LoT, LoF, LoA are single-spaced.
%%
%% listpageheader: If your faculty requires a "header row" at the top of
%% the List of Figures/Tables. You can re-define \lofpageheader and
%% \lotpageheader if necessary, e.g.
%% \renewcommand{\lofpageheader}{\hfill Page}
%%
%% boldfrontmattertoc: If your faculty wants front matter "chapters" to be
%% bold in the ToC
%%
%% boldbackmattertoc: If the backmatter "chapters" are to be bolded as well
%%
%% uppercasetoc: If all "chapter" level headings must be upper-cased in the ToC
%% noindenttocchap: If long chapter titles must be un-indented in the ToC
\usepackage{lipsum}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage{graphicx}
\usepackage[dvipsnames,x11names,rgb]{xcolor}
% Useful for including code listings
\usepackage{listings}
\lstset{language=[LaTeX]TeX,columns=fullflexible,
basicstyle=\ttfamily\SingleSpacing,
texcsstyle=*\bfseries\color{NavyBlue},
commentstyle=\itshape\color{PaleVioletRed4},
frame=single,framesep=6pt,
framexleftmargin=6pt,framexrightmargin=6pt,
xleftmargin=12pt,xrightmargin=12pt,
breaklines=true,breakatwhitespace=true,
% aboveskip=-1.5\onelineskip
}
% Useful for multi-page pages. Either longtable or supertabular is fine; choose any one that you're comfortable with
\usepackage{longtable}
\usepackage{supertabular}
\author{Lim Lian Tze}
\title{The umalayathesis \LaTeX{} Document Class}
%% If \othertitle is given, then the second abstract will display it
%% (i.e. if your thesis is "english" then this is printed on top of the Malay abstract
%% and if your thesis is "bahasam" then this is printed on top of the English abstract)
%% If no \othertitle is given then the second abstract will not have any translated thesis title
\othertitle{Tajuk dalam Bahasa Lain untuk Abstrak Kedua}
\university{Universiti Malaya}
\faculty{Institute of Postgraduate Studies}
\submissionyear{2018}
\degree{Doctor of Philosophy}
% load acronym definitions from separate file
\loadglsentries{myacronyms}
\begin{document}
\frontmatter
%% Choose only ONE from the following to get the
%% correct statement on the title page
% \makecoverandtitlepage{\mastercoursework}
% \makecoverandtitlepage{\mastermixedmode}
% \makecoverandtitlepage{\masterresearch}
% \makecoverandtitlepage{\doctoralcoursework}
\makecoverandtitlepage{\doctoralresearch}
% \makecoverandtitlepage{\doctoralmixedmode}
\declarationpage
\abstractfromfile{sample-abstract}
\msabstractfromfile{sample-msabstract}
\acknowledgements{Thanks guys. I owe you many.}
{\clearpage
\tableofcontents\clearpage
\listoffigures\clearpage
\listoftables\clearpage
%% Uncomment the following and modify the width for the description,
%% if necessary.
%\setlength{\glsdescwidth}{.7\textwidth}
%% Uncomment the following and modify separation between glossary entries,
%% if necessary.
% \renewcommand{\glsskip}{1.1}
\listofacronyms\clearpage
\listofappendices\clearpage}
\mainmatter
\input{umalayathesis-howtouse}
\input{sample-chap-intro}
\input{sample-chap-dummy}
\bibliography{myrefs}
%% Use these lines, if you need a single list of own publications
% Make sure you have defined your own papers in the .bib file!
% \nociteown{Lim:2009,Bond:etal:WordNetBahasa:2014}
% \bibliographyown{myrefs}
%% Use these lines, if your list of own publications needs to be split
%% into "Journal articles" and "Conference proceedings"
% Make sure you have defined your own papers in the .bib file!
\begin{splitpubs}
\newcounter{bibitem}
\setlength{\bibhang}{1.5em}
\AtBeginEnvironment{thebibliography}{%
\setcounter{bibitem}{0}
}
\makeatletter
\renewcommand{\@biblabel}[1]{%
\stepcounter{bibitem}%
\hspace*{\dimexpr2\bibhang-\labelsep}%
\makebox[\bibhang][l]{\thebibitem.}%
\hspace*{-\labelsep}%
}
\makeatother
\nociteownjour{Bond:etal:WordNetBahasa:2014,banerjee:pedersen:2003}
\nociteownconf{Lim:2009}
\bibliographyownjour{myrefs}
\bibliographyownconf{myrefs}
\end{splitpubs}
\begin{appendices}
\input{sample-appen-manual}
\input{sample-appen-try}
\end{appendices}
%% Comment out this line if you do not have a separate glossary.
% \printglossary
\end{document}