
HCMUS-report-template
Author
Hoang-Quan Tran
Last Updated
8 days ago
License
Other (as stated in the work)
Abstract
HCMUS unofficial lab / homework report

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{float}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage[colorlinks=true,linkcolor=blue, citecolor=red]{hyperref}
\usepackage{url}
\usepackage[top=.75in, left=.75in, right=.75in, bottom=1in]{geometry}
\usepackage[utf8]{vietnam}
% For algorithm
\usepackage{algorithm}
\usepackage{algpseudocode}
% ============ CODE ============
\usepackage{listings}
\usepackage{xcolor}
\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.92}
% Styling for the code.
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
% Disable indentation on new paragraphs
\setlength{\parindent}{0pt}
% Optional: graphic path
% \graphicspath{PATH_TO_GRAPHIC_FOLDER}
% To use Times font family, uncomment this row
% \usepackage{mathptmx}
% To use roman section / subsection, uncomment these rows
% \renewcommand{\thesection}{\Roman{section}}
% \renewcommand{\thesubsection}{\thesection.\Roman{subsection}}
% Define course name, report name and report title.
\newcommand{\coursename}{Môn Học Gì Đấy}
\newcommand{\reportname}{Tên Báo Cáo Gì Đấy}
\newcommand{\reporttitle}{Báo cáo Bài Tập Gì Đấy}
\newcommand{\studentname}{Quan, Tran Hoang (19120338)\\meadoge(19120000)\\Hwang S. Wan (19120000)}
\newcommand{\teachername}{GS. TS. Nguyễn Văn Hướng Dẫn}
\newcommand{\leftfooter}{\LaTeX\ by \href{https://github.com/trhgquan}{Quan, Tran Hoang}}
% ============ HEADER AND FOOTER ============
% Header length
\setlength{\headheight}{29.43912pt}
% Footer page number would be on the lower-right corner
\pagestyle{fancy}
\fancyfoot{}
\fancyfoot[R]{Trang \thepage}
\lhead{\reporttitle}
\rhead{
Trường Đại học Khoa học Tự nhiên - ĐHQG HCM\\
\coursename
}
\lfoot{\leftfooter}
% ============ DOCUMENT ============
\begin{document}
\input{content/title.tex}
\tableofcontents
\pagebreak
\input{content/section}
\input{content/hinhanh}
\input{content/congthuctoan}
\input{content/thuattoan}
\input{content/code}
\input{content/ngonngu}
\input{content/cite}
% References
\input{ref/ref.tex}
% Appendix
\appendix
% Add \cleardoublepage to move appendices to next page.
\input{appendix/appendix.tex}
\end{document}