NTU CNYSP Research Report Template (CY1400/CY2001/CY2002)
Forfatter
Karn Watcharasupat
Sidst opdateret
5 år siden
Licens
LaTeX Project Public License 1.3c
Resumé
NTU CNYSP Research Report Template (CY1400/CY2001/CY2002)
NTU CNYSP Research Report Template (CY1400/CY2001/CY2002)
%\documentclass{article}
\documentclass[12pt,twoside,openright]{report}
%% Useful packages
\usepackage[a4paper,top=1.46in,bottom=1.4in,left=1.46in,right=1.46in]{geometry}
\usepackage{amsmath, amssymb, bm}
\usepackage{caption}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage[colorlinks=true, allcolors=black]{hyperref}
\usepackage{float}
\usepackage{setspace}
\usepackage{subfigure}
\usepackage{url}
\usepackage{tabularx}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx} %Times Font
\usepackage{titlesec}
\titlespacing{\chapter}{0pt}{0pt}{0pt}
\usepackage{fancyhdr}
\usepackage{etoolbox}
\usepackage{appendix}
\usepackage{siunitx}
\usepackage{nomencl}
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
\makenomenclature
\usepackage{caption}
\usepackage{lipsum}
\usepackage{algpseudocode}
\usepackage{empheq}
\usepackage{mdwlist}
\usepackage{booktabs}
\usepackage{colortbl}
\widowpenalty 10000
\clubpenalty 10000
\usepackage{moresize}
\usepackage[style=ieee]{biblatex}
\addbibresource{References.bib}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=title, match=\regexp{\b([A-Z]{2,})\b}, replace={{}{$1}}]
}
}
}
\DeclareCaptionType{appfigure}[Figure]
\DeclareCaptionType{apptable}[Table]
\renewcommand{\listappfigurename}{List of Appendix Figures}
\renewcommand{\listapptablename}{List of Appendix Tables}
\renewcommand{\thefigure}{\thechapter-\arabic{figure}}
\renewcommand{\thetable}{\thechapter-\arabic{table}}
\renewcommand{\theappfigure}{\thechapter-\arabic{appfigure}}
\renewcommand{\theapptable}{\thechapter-\arabic{apptable}}
\renewcommand{\contentsname}{Table of Contents}
\newcommand{\chapname}{Chapter }
\titleformat{\chapter}[block]
{\bfseries\LARGE\centering}
{\chapname \thechapter}{1em}{}[\rule{\textwidth}{0.3pt}]
\titleformat{\section}
{\bfseries\large}
{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\bfseries}
{\thesubsection}{1em}{}
\titleformat{\subsubsection}
{\normalfont\bfseries}
{\thesubsubsection}{1em}{}
\usepackage{fancyhdr}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{placeins}
\makeatletter
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
\hskip -\arraycolsep
\let\@ifnextchar\new@ifnextchar
\array{#1}}
\makeatother
\usepackage{enumitem}
\usepackage{listings}
\usepackage{color}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.95}
\newcommand{\codesize}{\fontsize{10pt}{11pt}\selectfont}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\codesize,
breakatwhitespace=true,
breaklines=true,
captionpos=b,
keepspaces=false,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
showlines = true,
fontadjust = true,
framexleftmargin = 10 pt,
resetmargins = true,
basewidth = 0.5em
}
\lstset{style=mystyle}
\makeatletter
\setlength{\@fptop}{0pt}
\makeatother
\setlength{\floatsep}{0pt}
\newenvironment{Figure}
{\noindent\minipage{\linewidth}}
{\endminipage}
\setcounter{secnumdepth}{5}
\hyphenpenalty 10000
\usepackage{multicol}
%%%%%%%%% MATHEMATICS SHORTHANDS %%%%%%%%%%%%%%%%%%%%
\newcommand{\C}{\mathbb{C}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\renewcommand{\d}{\mathrm{d}}
\renewcommand{\bf}[1]{\mathbf{#1}}
\newcommand{\argmax}[1]{\underset {#1}{\operatorname{arg\,max}}}
\newcommand{\kurt}{\mathrm{kurt}}
\newcommand{\round}{\operatorname{round}}
\newcommand{\E}{\operatorname{E}}
\newcommand{\cov}{\operatorname{cov}}
\newcommand{\pcov}{\operatorname{pcov}}
\newcommand*{\vertbar}{\rule[-1ex]{0.5pt}{2.5ex}}
\newcommand*{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
\setlength{\nomlabelwidth}{3cm}
\setlength{\nomitemsep}{-0.5\parsep}
\usepackage{makecell}
\usepackage{emptypage}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\usepackage{textcomp}
%
%\usepackage{background}
%\SetBgScale{1}
%\SetBgContents{\parbox{10cm}{%
% \Huge Draft: \today\\[14cm]\rotatebox{180}{\Huge Draft: %\today}}}
%\SetBgColor{gray}
%\SetBgAngle{270}
%\SetBgOpacity{0.1}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\sloppy
%==== FRONT PART====
\include{Title/titlepage}
%\begingroup
%\let\cleardoublepage\clearpage
\pagenumbering{roman}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\thepage}
%\endgroup
\include{Front/Abstract}
\newpage
\include{Front/Acknowledgement}
\newpage
\setcounter{tocdepth}{2}
\tableofcontents
\rhead{Table of Contents}
\newpage
\include{Front/Nomenclature}
\newpage
\renewcommand{\listfigurename}{Lists of Figures and Listings}
\rhead{Lists of Figures and Listings}
\listoffigures
\addcontentsline{toc}{chapter}{Lists of Figures and Listings}
\newpage
\listoftables
\addcontentsline{toc}{chapter}{Lists of Tables}
\rhead{Lists of Tables}
\newpage
\rhead{Chapter \thechapter}
%==== MAIN PART ====
\pagenumbering{arabic}
\lhead{Introduction}
\include{Chapter1/Chapter1}
\lhead{Literature Review}
\include{Chapter2/Chapter2}
\lhead{Application Development}
\include{Chapter3/Chapter3}
\lhead{Performance Evaluation}
\include{Chapter4/Chapter4}
\lhead{Results and Discussion}
\include{Chapter5/Chapter5}
\lhead{Conclusion}
\include{Chapter6/Chapter6}
%==== ENDING PART ===
\clearpage
\pagenumbering{arabic}%
\renewcommand{\thepage}{R-\arabic{page}}
\lhead{}
\rhead{References}
\printbibliography[title={References}]
%=================================
\newpage
\appendix
\renewcommand{\chapname}{Appendix }
\pretocmd{\chapter}{%
\clearpage
\pagenumbering{arabic}%
\renewcommand*{\thepage}{\thechapter-\arabic{page}}%
}{}{}
\rhead{Appendix \thechapter}
\lhead{Source Information}
\include{Appendix/A}
%==== END OF ALL ===
\end{document}