← All templates

University of Information Technology, VNU-HCM graduation thesis (hcmuitthesis, community)

A community template for graduation theses (khoa luan tot nghiep) at the University of Information Technology, Vietnam National University Ho Chi Minh City, in Vietnamese: the hcmuitthesis class with the two cover pages, committee decision, acknowledgements, lists, glossary and four sample chapters.

Create an account to use this
Category
Thesis
Document class
hcmuitthesis (hcmuitthesis.cls) — ships with TeX Live
Workflow
Thesis / dissertation — submissions and revision rounds
Author
Son Nguyen-Hong (HCMUIT thesis template)
Source
Son Nguyen-Hong (HCMUIT thesis template)
Licence
No licence is stated in the files. Son Nguyen-Hong (HCMUIT thesis template) distributes them for authors preparing a submission.

These are the publisher’s own files. This project starts from Son Nguyen-Hong (HCMUIT thesis template)’s package for this publication — their manuscript, their hcmuitthesis.cls, their bibliography style — so what compiles here is what they would have given you.

Son Nguyen-Hong (HCMUIT thesis template) serves this exact file to University of Information Technology, Vietnam National University Ho Chi Minh City. Check Son Nguyen-Hong (HCMUIT thesis template)’s author pages for the current instructions.

Where this differs from the publisher’s download.

  • Note: Not issued by the university; written by an alumnus to follow UIT's formatting rules. Check the faculty's current requirements.

What you get

  • LICENSE.txt · 1 KB
  • chapters/back/apendixA.tex · 55 B
  • chapters/front/decision.tex · 652 B
  • chapters/front/glossaries.tex · 176 B
  • chapters/front/thanks.tex · 2 KB
  • chapters/front/translate.tex · 444 B
  • chapters/main/chapter1.tex · 4 KB
  • chapters/main/chapter2.tex · 6 KB
  • chapters/main/chapter3.tex · 6 KB
  • chapters/main/chapter4.tex · 943 B
  • chapters/main/summary.tex · 2 KB
  • graphics/chapter1/chap1-information-variable.png · 78 KB
  • graphics/chapter1/chap1-project-directory.png · 32 KB
  • graphics/chapter2/chap2-rotate-figure-example.png · 286 KB
  • graphics/chapter2/chap2-subfigure-example.png · 23 KB
  • hcmuitthesis.cls · 8 KB
  • imgs/UIT-logo.png · 128 KB
  • imgs/demo/OverLeaf-Demo.gif · 2119 KB
  • main.tex — the file that is compiled · 2 KB
  • references/chapter2.bib · 561 B

These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.

Source

LICENSE.txt · 1 KB
MIT License

Copyright (c) 2023 Son Nguyen-Hong

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
chapters/back/apendixA.tex · 55 B
\chapter{Hướng dẫn soạn phụ lục}

\lipsum[4]
chapters/front/decision.tex · 652 B
\chapter*{\centering\Large{Thông tin hội đồng chấm khóa luận tốt nghiệp}}
\addcontentsline{toc}{chapter}{Thông tin hội đồng chấm khóa luận tốt nghiệp}
Hội đồng chấm khóa luận tốt nghiệp, thành lập theo Quyết định số 476/QĐĐHCNTT ngày 30 tháng 02 năm 2024 của Hiệu trưởng Trường Đại học Công nghệ
Thông tin.
\begin{center}
    \begin{tabular}{ p{.5\textwidth} p{.3\textwidth}} 
        1. PGS. TS. Nguyễn Văn Hồ Đặng  & Chủ tịch \\
        2. TS. Văn Như Võ   & Ủy viên \\ 
        3. ThS. Nhậm Ngã Hành & Thư ký \\ 
    \end{tabular} 
\end{center}


chapters/front/glossaries.tex · 176 B
\newglossaryentry{ssl}{
    name={SSL},
    description={Secure Sockets Layer}
}

\newglossaryentry{api}{
    name={API},
    description={Application Programming Interface}
}
chapters/front/thanks.tex · 2 KB
\chapter*{\centering\Large{Lời cảm ơn}}
\addcontentsline{toc}{chapter}{Lời cảm ơn}

Không ai đạt được điều gì đó to lớn mà không nhờ sự giúp đỡ của những
người xung quanh, cho dù là trực tiếp hay gián tiếp đi nữa. Để hoàn thành được khóa luận này, tác giả may mắn nhận được nhiều sự giúp đỡ và hỗ trợ từ quý thầy, cô, anh chị, bạn bè và người thân. Tác giả xin dành những trang đầu tiên này để bày tỏ lòng tri ân của mình tới tất cả mọi người, những người đã đồng hành cùng nhóm trong khoảng thời gian vừa qua. \\
\indent Đầu tiên,  tác giả xin gửi lời cảm ơn sâu sắc đến toàn thể các thầy cô của Trường Đại học Công nghệ Thông tin nói chung và các thầy cô khoa Mạng máy tính và Truyền thông nói riêng. Nhờ những kiến thức quý giá mà thầy cô đã truyền đạt, cũng như việc hỗ trợ tận tình trong suốt khoảng thời gian thực hiện, nhóm đã hoàn thành khóa luận và đạt được các kết quả đáng ghi nhận. \\

\indent Tác giả xin đặc biệt cảm ơn TS. Google là người đã truyền cảm hứng, tận tình hướng dẫn và hỗ trợ tận tình về kiến thức, tạo môi trường thuận lợi để nhóm có thể học hỏi, trao đổi với các bạn, các em trong nhóm nghiên cứu. Đây là những kiến thức, kinh nghiệm quý giá, không chỉ có tác dụng trong khóa luận tốt nghiệp này mà còn trong khoảng thời gian làm việc trong chặng đường tiếp theo. \\

\indent Cuối cùng, tôi xin bày tỏ lòng tri ân đến gia đình và người thân, những người đã luôn là những hậu phương vững chắc và luôn ủng hộ từng quyết định mà nhóm đưa ra. \\
\indent Mặc dù đã nỗ lực rất nhiều để luận văn được hoàn thiện nhất, song khó có thể tránh khỏi thiếu sót và hạn chế. Kính mong nhận được sự thông cảm và ý kiến đóng góp từ quý thầy cô và các bạn.\\

\begin{flushright}
\textit {TP. Hồ Chí Minh, \lowercase{\today}} \\
\textit {Nguyễn Hồng Sơn}
\end{flushright}

chapters/front/translate.tex · 444 B
\chapter*{\centering\Large{Danh mục từ tạm dịch}}
\addcontentsline{toc}{chapter}{Danh mục từ tạm dịch}
\begin{tabular}{| p{.4\textwidth} |p{.4\textwidth} |}
\hline
        Machine Learning &  Học máy\\
        \hline
        Deep Learning & Học sâu \\
        \hline
        Reinforcement learning & Học tăng cường \\
        \hline
        Federated Learning & Học liên kết\\
        \hline
\end{tabular} \\


chapters/main/chapter1.tex · 4 KB
\chapter{Giới thiệu}
\label{chap:chap1-introduce}

Tại chương này, tác giả giới thiệu cấu trúc thư mục của dự án, giải thích các cài đặt, một số lưu ý trong quá trình sử dụng. Chương này cũng như báo cáo này không giới thiệu các cú pháp cơ bản như gõ phương trình, tạo bảng đơn giản, chèn hình ảnh.

\section{Cấu trúc thư mục}

\indent Hình \ref{fig:chap1-project-directory} mô tả cấu trúc thư mục của dự án. Thư mục \textbf{chapters} lưu các thành phần văn bản chính của dự án. Trong thư mục này chia làm ba thư mục, \textbf{\textit{back}} tương ứng với các phụ lục phía sau báo cáo.

\begin{figure}
    \centering
    \includegraphics[scale=0.5]{chapter1/chap1-project-directory.png}
    \caption{Cấu trúc thư mục của dự án}
    \label{fig:chap1-project-directory}
\end{figure}

Thư mục \textbf{\textit{front}} tương ứng với các trang thông tin hội đồng chấm tốt nghiệp, lời cảm ơn, danh mục từ viết tắt... Thư mục \textbf{\textit{main}} chứa các chương của báo cáo. Báo cáo đánh số thứ tự riêng cho phần \textit{\textbf{front}}, trong khi phần các chương chính và phần phụ lục được đánh số giống nhau. Báo cáo đánh số trang bắt đầu từ trang tóm tắt, chữ số Ả-rập, bắt đầu bằng 1.

Thư mục \textbf{\textit{graphics}} chứa hình ảnh được chèn vào báo cáo. Tương ứng với mỗi chương sẽ có 1 thư mục hình ảnh của chương đó.

Thư mục \textbf{\textit{imgs}} là thư mục chứa hình ảnh của dự án, nó bao gồm các logo, watermark hoặc hình ảnh phục vụ cho document trên github. Hình chèn vào báo cáo không được lưu trong thư mục này.

Thư mục \textbf{\textit{references}} chứa các file chỉ mục tài liệu tham khảo. Tương tự như mỗi chapter một file .tex, nó cũng có riêng một file .bib để chỉ rõ các tài liệu tham khảo nào được sử dụng trong chuong nào.

File \textbf{\textit{thesis.cls}} là file quy định các câu lệnh, mức chỉ mục đánh số hình ảnh, bảng biểu, phần, chương. Quy định header và footer, trang  bìa.... Chi tiết xem trong file. Hãy chắc chắn rằng bạn hiểu rõ tất cả nếu muốn thay đổi gì trong file này.

File \textbf{\textit{thesis.tex}} là file quy định cấu trúc báo cáo, chương nào trước, chương nào sau, quy định thư mục hình ảnh chèn trong báo cáo. Nó quy định thông tin người báo cáo thông qua các câu lệnh được quy định trong file .cls. 

\section{Thay đổi các biến khi sử dụng}

Hai bìa của luận văn được tự động tạo bởi latex. Vì vậy, có các biến được quy định để đảm nhiệm nó. Các biến cần thay đổi được đặt tại thư mục gốc, tập tin \textit{thesis.tex}, được thể hiện trong hình \ref{fig:chap1-information-variable}.

\begin{figure}
    \centering
    \includegraphics[scale=0.7]{chapter1/chap1-information-variable.png}
    \caption{Phần thay đổi thông tin trang bìa}
    \label{fig:chap1-information-variable}
\end{figure}

Các phần tiếp theo, quy định các nội dung được thêm vào báo cáo chính. Nếu một tập tin xuất hiện trong thư mục chapters nhưng không được khai báo bằng lệnh \textit{include} thì cũng không xuất hiện trong báo cáo. Vậy nên các chương mới bắt buộc phải được khai báo trong \textit{thesis.tex}. Các phần tài liêu tham khảo cũng được hiểu tương tự.

chapters/main/chapter2.tex · 6 KB
\chapter{Phương pháp chèn hình ảnh}
\label{chap:chap2-figures}
Trong một luận văn hay báo cáo, các hình ảnh được sử dụng rất nhiều. Việc chèn hình ảnh tuy đơn giản nhưng cần sử dụng nhiều kỹ thuật. Chương này trình bày các cách chèn hình ảnh từ đơn giản tới phức tạp.

\section{Chèn hình ảnh đơn điệu}

Chèn hình ảnh đơn điệu nghĩa là chỉ chèn một hình ảnh cơ bản, có cú pháp latex như sau:

\begin{lstlisting}[language={[LaTeX]TeX}, caption={Chèn một hình ảnh vào báo cáo}, label={lst:figure}]
\begin{figure}
    \centering
    \includegraphics[scale=0.7]{chapter1/figure-url.png}
    \caption{Caption of figure}
    \label{fig:figure-label}
\end{figure}
\end{lstlisting}

Hình ảnh từ đường dẫn \textit{chapter1/figure-url.png} sẽ được chèn vào báo cáo với kích thuớc bằng \textit{scale=0.7}. Hình ảnh sẽ có chú tích là \textit{Caption of figure}, nhãn \textit{fig:figure-label} sẽ được sử dụng để chỉ mục tới hình ảnh.

\section{Chèn nhiều hình ảnh trong một hình ảnh}

Trong tình huống cần chèn nhiều hình ảnh nhưng bản thân những hình ảnh này có tương quan đến nhau. Ví dụ tại hình \ref{fig:chap2-subfigure-example}, hai hình ảnh thể hiện trạng thái của đối tượng trong các ngữ cảnh khác nhau. Đây là lúc chúng ta cần sử dụng hình ảnh con.

Một hinh ảnh với nhiều hình ảnh con được chèn vào báo cáo như sau \cite{ShantoLatex}:

\begin{lstlisting}[language={[LaTeX]TeX}, caption={Chèn nhiều hình ảnh con trong một hình ảnh}, label={lst:example-subfigure}]
\begin{figure}
    \begin{subfigure}{0.5\textwidth}
        \centering
        \includegraphics[scale=0.3]{chapter1/subfigure-example.png}
        \caption{Caption of figure 1}
        \label{fig:sub-figure-url-1}
    \end{subfigure}
    \begin{subfigure}{0.5\textwidth}
        \centering
        \includegraphics[scale=0.3]{chapter1/subfigure-example.png}
        \caption{Caption of figure 2}
        \label{fig:sub-figure-url-2}
    \end{subfigure}
    \caption{Caption of figure}
    \label{fig:example-subfigure}
\end{figure}
      
\end{lstlisting}

Một lưu ý khi sử dụng hình ảnh con thì các hình ảnh nên có kích thước giống nhau để đạt độ hiệu quả cao nhất.

\begin{figure}
    \begin{subfigure}{0.5\textwidth}
        \centering
        \includegraphics[scale=0.3]{chapter2/chap2-subfigure-example.png}
        \caption{Caption of figure 1}
        \label{fig:chap2-subfigure-example-1}
    \end{subfigure}%
    \begin{subfigure}{0.5\textwidth}
        \centering
        \includegraphics[scale=0.3]{chapter2/chap2-subfigure-example.png}
        \caption{Caption of figure 2}
        \label{fig:chap2-subfigure-example-2}
    \end{subfigure}
    \caption{Mô tả chèn hình ảnh con trong một hình ảnh lớn}
    \label{fig:chap2-subfigure-example}
\end{figure}

\section{Chèn hình ảnh với ghi chú ở bên cạnh}

Chèn hình ảnh toàn trang thì tương đối dễ, ta chỉ việc chèn hình đó với độ thu phóng phù hợp. Phần này trình bày việc chèn các hình ảnh toàn trang và có ghi chú nằm ở vị trí khác so với bình thường.

Hình \ref{fig:img-caption-rotate} minh họa hình ảnh và ghi chú của nó được xoay một góc $90^{\circ}$. Đoạn mã \ref{lst:figure-with-caption-rotate} giúp ta làm được điều này.

\begin{figure}
    \begin{minipage}[c]{0.8\textwidth}
      \centering
      \includegraphics[width=\textwidth]{chapter2/chap2-rotate-figure-example.png} 
    \end{minipage}
    \begin{minipage}[c]{0.1\textwidth}
      \begin{adjustbox}{angle=90,center}
        \begin{minipage}[c]{\textheight}
          \caption{Minh họa chèn hình ảnh với caption xoay $90^{\circ}$}
          \label{fig:img-caption-rotate}
        \end{minipage}
      \end{adjustbox}
    \end{minipage}
\end{figure}

\begin{lstlisting}[language={[LaTeX]TeX}, caption={Chèn hình ảnh với caption xoay $90^{\circ}$}, label={lst:figure-with-caption-rotate}]
\begin{figure}
    \begin{minipage}[c]{0.8\textwidth}
        \centering
        \includegraphics[width=\textwidth]{chapter2/chap2-rotate-figure-example.png} 
    \end{minipage}
    \begin{minipage}[c]{0.1\textwidth}
        \begin{adjustbox}{angle=90,center}
        \begin{minipage}[c]{\textheight}
            \caption{Figure caption}
            \label{fig:img-caption-rotate}
        \end{minipage}
        \end{adjustbox}
    \end{minipage}
\end{figure}
\end{lstlisting}

Trong một số trường hợp, ta chỉ cần caption ở một bên hình ảnh chứ không xoay như hình \ref{fig:img-just-caption-side}, ta chỉ cần thực hiện như đoạn mã \ref{lst:figure-just-caption-side}.

\begin{figure}
    \begin{minipage}[c]{0.7\textwidth}
      \includegraphics[width=\textwidth]{chapter2/chap2-rotate-figure-example.png}
    \end{minipage}\hfill
    \begin{minipage}[c]{0.2\textwidth}
      \caption{
        Figure caption
      } \label{fig:img-just-caption-side}
    \end{minipage}
\end{figure}

\begin{lstlisting}[language={[LaTeX]TeX}, caption={Chèn hình ảnh với caption ở bên phải $90^{\circ}$}, label={lst:figure-just-caption-side}]
\begin{figure}
    \begin{minipage}[c]{0.7\textwidth}
        \includegraphics[width=\textwidth]{chapter2/chap2-rotate-figure-example.png}
    \end{minipage}\hfill
    \begin{minipage}[c]{0.2\textwidth}
        \caption{
            Figure caption
        } \label{fig:img-just-caption-side}
    \end{minipage}
\end{figure}
\end{lstlisting}
chapters/main/chapter3.tex · 6 KB
\chapter{Phương pháp chèn bảng}
\label{chap:chap3-table}

Chương này trình bày một số kỹ thuật chèn bảng với các cột, dòng merge nhiều ô. Các cách format bảng cơ bản không trình bày. Trong quá trình sử dụng, có thể cập nhật các chỉ dẫn rõ ràng cho từng câu lệnh nghĩa là gì trong một bảng.

\section{Chèn bảng có nhiều hàng, cột}

Bảng \ref{tab:student_statistics} mô tả một bảng mẫu bao gồm đầy đủ các yếu tố như cột nhiều hàng, hàng nhiều cột. Các kỹ thuật sử dụng trong bảng này cơ bản đã bao gồm hết các thao tác thông thường của việc tạo bảng.

This is an example document to demonstrate the use of glossaries. 
We mention \gls{ssl} and \gls{api} here.

\begin{table}[ht]
  \centering
  \caption{Comparison of statistics among students in different faculties}
  \label{tab:student_statistics}
  \begin{tabular}{|C{.2\textwidth} | C{.2\textwidth} | C{.6\textwidth}|}
    \hline
    \multicolumn{2}{|c|}{\textbf{Faculty}} & \multirow{2}{*}{\textbf{Attributes}} \\
    \cline{1-2}
    \textbf{Faculty A} & \textbf{Faculty B} & \\
    \hline
    \multirow{3}{*}{Physics} & Average Score & Students in Faculty A have an average score of 85, while those in Faculty B have an average score of 78. \\
    \cline{2-3}
    & Physical Education & Faculty A emphasizes physical education with mandatory sports classes, resulting in higher fitness levels compared to Faculty B. \\
    \cline{2-3}
    & Book Reading & Students in Faculty A are encouraged to read books related to physics, which has positively impacted their understanding of the subject. \\
    \hline
    \multirow{3}{*}{\shortstack[C]{Computer \\ Science}} & Average Score & Faculty A's students have an average score of 90, whereas Faculty B's students have an average score of 82. \\
    \cline{2-3}
    & Culture Activity & Faculty A organizes regular cultural activities, enhancing students' cultural awareness and social skills. \\
    \cline{2-3}
    & Internship Opportunities & Faculty A provides more internship opportunities, leading to better practical knowledge among students. \\
    \hline
  \end{tabular}
\end{table}

\section{Chèn bảng có nhiều trang}

Trong một số trường hợp cần chèn bảng với quá nhiều dòng, số liệu của chúng sang trang khác. Ví dụ như trường hợp ta cần mô tả bảng số liệu của quá trình training qua từng vòng, thì sử dụng \textit{longtable} là sự lựa chọn thông minh. Bảng \ref{tab:chap3-longtable-example} mô tả một bảng như vậy.

\begin{longtable}[htbp]{|c|| c|| c|| c|| c|| c|| c|} 
  \caption{Mô tả bảng dài với nhiều số liệu}
  \label{tab:chap3-longtable-example} \\
  \hline
  \hline
  {Data} & {$\beta_{UP}$} & {$ \beta_{LOW}$} & {$ \beta_{TEL}$} & {$R_{UP}$} & {$R_{LOW}$}  & {$R_{TEL}$} \\
  \hline
  \endfirsthead
  \hline
  {Data} & {$\beta_{UP}$} & {$ \beta_{LOW}$} & {$ \beta_{TEL}$} & {$R_{UP}$} & {$R_{LOW}$}  & {$R_{TEL}$} \\
  \hline
  \endhead
  \hline \multicolumn{7}{|r|}{{Continued on next page}} \\ \hline
  \endfoot
  \hline
  \multicolumn{7}{|c|}{{End of Table}} \\ \hline
  \endlastfoot

  200604 & 0.0437 & 0.0087 & -0.0963 & 0.17 & 0.05 & -0.46 \\
  200605 & 0.0317 & 0.0478 & -0.1136 & 0.20 & 0.40 & -0.61 \\
  200606 & -0.0699 & -0.0418 & -0.0420 & -0.21 & -0.16 & -0.005 \\
  200607 & -0.0783 & -0.0483 & -0.0868 & -0.24 & -0.19 & -0.25 \\
  200608 & -0.0551 & -0.0734 & -0.1932 & -0.27 & -0.41 & -0.63 \\
  201410 & -0.0609 & -0.0849 & -0.3131 & -0.06 & -0.06 & -0.38 \\
  201411 & -0.0279 & -0.0849 & -0.2353 & -0.03 & -0.09 & -0.29 \\
  201412 & 0.0884 & -0.0252 & -0.1411 & 0.08 & -0.02 & -0.12 \\ 
  200604 & 0.0437 & 0.0087 & -0.0963 & 0.17 & 0.05 & -0.46 \\
  200605 & 0.0317 & 0.0478 & -0.1136 & 0.20 & 0.40 & -0.61 \\
  200606 & -0.0699 & -0.0418 & -0.0420 & -0.21 & -0.16 & -0.005 \\
  200607 & -0.0783 & -0.0483 & -0.0868 & -0.24 & -0.19 & -0.25 \\
  200608 & -0.0551 & -0.0734 & -0.1932 & -0.27 & -0.41 & -0.63 \\
  201410 & -0.0609 & -0.0849 & -0.3131 & -0.06 & -0.06 & -0.38 \\
  201411 & -0.0279 & -0.0849 & -0.2353 & -0.03 & -0.09 & -0.29 \\
  201412 & 0.0884 & -0.0252 & -0.1411 & 0.08 & -0.02 & -0.12 \\ 
  200604 & 0.0437 & 0.0087 & -0.0963 & 0.17 & 0.05 & -0.46 \\
  200605 & 0.0317 & 0.0478 & -0.1136 & 0.20 & 0.40 & -0.61 \\
  200606 & -0.0699 & -0.0418 & -0.0420 & -0.21 & -0.16 & -0.005 \\
  200607 & -0.0783 & -0.0483 & -0.0868 & -0.24 & -0.19 & -0.25 \\
  200608 & -0.0551 & -0.0734 & -0.1932 & -0.27 & -0.41 & -0.63 \\
  201410 & -0.0609 & -0.0849 & -0.3131 & -0.06 & -0.06 & -0.38 \\
  201411 & -0.0279 & -0.0849 & -0.2353 & -0.03 & -0.09 & -0.29 \\
  201412 & 0.0884 & -0.0252 & -0.1411 & 0.08 & -0.02 & -0.12 \\ 
  200604 & 0.0437 & 0.0087 & -0.0963 & 0.17 & 0.05 & -0.46 \\
  200605 & 0.0317 & 0.0478 & -0.1136 & 0.20 & 0.40 & -0.61 \\
  200606 & -0.0699 & -0.0418 & -0.0420 & -0.21 & -0.16 & -0.005 \\
  200607 & -0.0783 & -0.0483 & -0.0868 & -0.24 & -0.19 & -0.25 \\
  200608 & -0.0551 & -0.0734 & -0.1932 & -0.27 & -0.41 & -0.63 \\
  201410 & -0.0609 & -0.0849 & -0.3131 & -0.06 & -0.06 & -0.38 \\
  201411 & -0.0279 & -0.0849 & -0.2353 & -0.03 & -0.09 & -0.29 \\
  201412 & 0.0884 & -0.0252 & -0.1411 & 0.08 & -0.02 & -0.12 \\ 
  200604 & 0.0437 & 0.0087 & -0.0963 & 0.17 & 0.05 & -0.46 \\
  200605 & 0.0317 & 0.0478 & -0.1136 & 0.20 & 0.40 & -0.61 \\
  200606 & -0.0699 & -0.0418 & -0.0420 & -0.21 & -0.16 & -0.005 \\
\end{longtable}

Ngoài ra, trong một vài trường hợp có thể sử dụng bảng ngang. Nhưng xét thấy ít khi sử dụng vậy nên tác giả không thêm vào.

% \begin{sidewaystable}
%   \centering
%   \caption{Comparison}
%   \begin{tabular}{l*{6}{c}r}
%   \hline
%   Names  & A & B & C & D \\
%   \hline
%   \hline
%   Jobs   & A & B & C & D \\
%   \hline
%   Types   & A & B & C & D \\
%   \hline
%   \end{tabular}    
  
%   \end{sidewaystable}
chapters/main/chapter4.tex · 943 B
\chapter{Các vấn đề còn lại}
\label{chap:chap4-summary}

Trong chương này, tôi sẽ liên tục bổ sung thêm các kỹ thuật khác. Những câu hỏi ở repo cũng sẽ được giải đáp dần qua chương này. Tuy vậy, không phải tất cả các kỹ thuật khi được hỏi đều sẽ được giải đáp, các kỹ thuật cơ bản trong danh sách dưới đây sẽ không thuộc phạm vi hướng dẫn.

\begin{itemize}
    \item Kỹ thuật chèn tài liệu tham khảo
\end{itemize}

\section{Các câu hỏi về build project}

Project được xây dựng trên nền tảng các gói cơ bản của Latex, người dùng có thể sử dụng miễn phí mà không cần mua bản quyền. Các hướng dẫn build project này được hướng dẫn tại README.

This is an example document to demonstrate the use of glossaries. 
We mention \gls{ssl} and \gls{api} here.

\lipsum[1]
chapters/main/summary.tex · 2 KB
\chapter*{\centering{Tóm tắt khóa luận}}
\addcontentsline{toc}{chapter}{Tóm tắt khóa luận}

Vào năm 2021, dù cảm thấy không có đủ năng lực để theo tiếp đồ án chuyên ngành, mình thực hiện khóa luận do chương trình đào tạo cũ bắt buộc làm luận văn. Nhóm mình hai người, thực hiện tìm hiểu và viết luận văn trong khoảng thời gian dịch bệnh đầy khó khăn.

Làm xong rồi, nhưng việc báo cáo nó cũng không phải dễ. Mỗi người một nơi, cùng làm việc trên Word khó khăn do định dạng không đồng bộ, chèn hình và bảng làm xáo trộn các trang, đánh số bảng biểu, hình ảnh, tiêu đề dễ bị sai sót. Khó khăn nhất là việc viết và đánh số tài liệu tham khảo.

Sau này, khi học thạc sĩ và làm việc trên linux, một mặt cần tính chuyên nghiệp cao trong viết báo cáo, mặt khác sử dụng Word online trên linux rất bất tiện, mình đã làm quen và dần dần chuyển hẳn việc viết báo cáo trên latex, kể cả các báo cáo ở công ty.

Nhằm lưu lại các cú pháp mình sử dụng, đồng thời giúp các bạn sinh viên viết khóa luận dễ dàng hơn, mình đã thiết kế và viết báo cáo này. Các bạn sinh viên UIT nói riêng và người dùng khác nói chung có thể tùy ý sử dụng, thay đổi dự án này tùy theo nhu cầu.

Phần còn lại của luận văn có cấu trúc như sau
\begin{itemize}
    \item Chương \ref{chap:chap1-introduce} giới thiệu khái quát chung về cấu trúc thư mục trong dự án, các cài đặt, cấu hình cần thay đổi khi sử dụng.
    \item Chương \ref{chap:chap2-figures} trình bày các kỹ thuật chèn hình ảnh.
    \item Chương \ref{chap:chap3-table} trình bày các kỹ thuật chèn bảng.
    \item Chương \ref{chap:chap4-summary} lưu ý một số các kỹ thuật còn lại.
\end{itemize}

graphics/chapter1/chap1-information-variable.png — binary, 78 KB

graphics/chapter1/chap1-project-directory.png — binary, 32 KB

graphics/chapter2/chap2-rotate-figure-example.png — binary, 286 KB

graphics/chapter2/chap2-subfigure-example.png — binary, 23 KB

hcmuitthesis.cls · 8 KB
% ========= Config paper and font =============
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{hcmuitthesis}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
\ProcessOptions\relax
\LoadClass[14pt,a4paper]{memoir}
% ========== Require package to setup paper, link, language
\RequirePackage{anyfontsize,mathptmx}
\RequirePackage[T5]{fontenc}
\RequirePackage{geometry,graphicx,indentfirst,setspace}
\RequirePackage{tikz}
\RequirePackage[center]{caption}
\RequirePackage{fancyhdr,hyperref}
\RequirePackage[vietnamese,english]{babel}
\RequirePackage[utf8]{vietnam}
\RequirePackage{listings}
\RequirePackage{graphicx}
\RequirePackage{glossaries}
\RequirePackage[fontsize=13pt]{scrextend}
\RequirePackage{placeins}
\RequirePackage{amsfonts}
\RequirePackage{textcomp}
\RequirePackage{dblfloatfix}
\RequirePackage{lineno}
\RequirePackage{amssymb}
\RequirePackage{tabularx,booktabs}
\RequirePackage{longtable}
\RequirePackage{amsmath}
\RequirePackage{mathtools}
\RequirePackage{graphicx}
\RequirePackage{lscape}
\RequirePackage{caption}
\RequirePackage{hyperref}
\RequirePackage[sorting=nyt]{biblatex}
\RequirePackage{mathtools}
\RequirePackage{lipsum,blindtext}
\RequirePackage{fancyhdr}
\RequirePackage{titlesec}
\RequirePackage{makecell}
\RequirePackage{listings}
\RequirePackage{subcaption}
\RequirePackage{adjustbox}
\RequirePackage{multirow}
\RequirePackage{longtable}
\RequirePackage{rotating}
\RequirePackage[utf8]{inputenc}
\usetikzlibrary{calc}

% Define color and column type
\hypersetup{urlcolor=blue,linkcolor=black,citecolor=black,colorlinks=true} 
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
% Config figure path
\graphicspath{ {./graphics} }

% Define the desired distance from the top of the page
\newlength{\chaptertopmargin}
\setlength{\chaptertopmargin}{2cm} % Adjust the value as needed
\titlespacing*{\chapter}{0pt}{\chaptertopmargin}{20pt} % Adjust the second value for space before chapter titles


% Config for math in quantum computin
\DeclarePairedDelimiter\bra{\langle}{\rvert}
\DeclarePairedDelimiter\ket{\lvert}{\rangle}
\DeclarePairedDelimiterX\braket[2]{\langle}{\rangle}{#1 \delimsize\vert#2}

% Config listings 
\lstset{
  frame=tb,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=fullflexible,
  basicstyle={\small\ttfamily},
  numbers=left,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
  tabsize=4
}

% ===========Set command to provide param ===========
\newcommand{\@upperuniname}{}
\newcommand{\upperuniname}[1]{\renewcommand{\@upperuniname}{#1}}
\newcommand{\@uniname}{}
\newcommand{\uniname}[1]{\renewcommand{\@uniname}{#1}}
\newcommand{\@deptname}{}
\newcommand{\deptname}[1]{\renewcommand{\@deptname}{#1}}
\newcommand{\@reporttype}{}
\newcommand{\reporttype}[1]{\renewcommand{\@reporttype}{#1}}
\newcommand{\@stumajor}{}
\newcommand{\stumajor}[1]{\renewcommand{\@stumajor}{#1}}
\newcommand{\@titleen}{}
\newcommand{\titleen}[1]{\renewcommand{\@titleen}{#1}}
\newcommand{\@defcouncil}{Council}
\newcommand{\defcouncil}[1]{\renewcommand{\@defcouncil}{#1}}
\newcommand{\@supervisor}{}
\newcommand{\supervisor}[1]{\renewcommand{\@supervisor}{#1}}
\newcommand{\@supervisorname}{}
\newcommand{\supervisorname}[1]{\renewcommand{\@supervisorname}{#1}}
\newcommand{\@secretary}{Secretary}
\newcommand{\secretary}[1]{\renewcommand{\@secretary}{#1}}
\newcommand{\@instruction}{}
\newcommand{\instruction}[1]{\renewcommand{\@instruction}{#1}}
\newcommand{\@stuname}{}
\newcommand{\stuname}[1]{\renewcommand{\@stuname}{#1}}
\newcommand{\@stunamewithid}{}
\newcommand{\stunamewithid}[1]{\renewcommand{\@stunamewithid}{#1}}
\newcommand{\@reportplace}{}
\newcommand{\reportplace}[1]{\renewcommand{\@reportplace}{#1}}


% =========== Overwrite exist command to custom project ============
\renewcommand{\@title}{}
\renewcommand{\headrulewidth}{0.3pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\large}{\fontsize{15}{15}\selectfont}
\renewcommand{\Large}{\fontsize{20}{20}\selectfont}
\renewcommand{\arraystretch}{1.2}
\renewcommand*{\lstlistingname}{Đoạn mã}
\renewcommand\lstlistlistingname{Danh sách đoạn mã}

\renewcommand*{\glossarysection}[2][]{%
  \chapter*{Danh sách các từ viết tắt}
  \addcontentsline{toc}{chapter}{Danh sách các từ viết tắt}
}


% ==========Setup paper margin and footer==========
\geometry{
  paper=a4paper,
  left=3cm,
  right=2cm,
  vmargin=2cm,
  includeheadfoot=true,
  headheight=30pt
}
\OnehalfSpacing
\raggedbottom

% Set depth of numbering for sections and table of contents
\setsecnumdepth{subsection}
\settocdepth{subsection}

% Set numwidths
\setlength{\cfttablenumwidth}{3em}
\setlength{\cftfigurenumwidth}{3em}
\AtBeginDocument{\renewcommand*\bibname{References}}

% ==========Setup corlor for link and url==========
\hypersetup{
  colorlinks=true,
  linkcolor=black,
  citecolor=blue,
  urlcolor=blue
}

% ========== Start create cover page, fancy is package to draw line, paper..==========
\pagestyle{fancy}
\fancyhf{}

% first cover page
\def\coverpage{
  \pagestyle{empty}
  \large\bfseries
  \begin{tikzpicture}[remember picture,overlay]
    \draw[line width=3pt](
    $(current page.north west) + (3.0cm,-2.0cm)$
    ) rectangle (
    $(current page.south east) + (-2.0cm,2.0cm)$
    );
    \draw[line width=1pt](
    $(current page.north west) + (2.9cm,-1.9cm)$
    ) rectangle (
    $(current page.south east) + (-1.9cm,1.9cm)$
    );
  \end{tikzpicture}
  \vspace*{-3\baselineskip}
  \begin{center}
    \uppercase{\@upperuniname} \\
    \uppercase{\@uniname} \\
    \uppercase{\@deptname} \\
    \vfill
    \uppercase{\@stuname}
    \vfill
    \uppercase{\@reporttype}
    \vfill
    {\Large{\parbox[c]{0.8\linewidth}{\centering\@title}}} \\
    \vfill
    {\Large{\parbox[c]{0.8\linewidth}{\centering\@titleen}}}
    \vfill
    \uppercase {\@stumajor}
  \end{center}
  \vfill
  \vfill
  \mdseries
  \begin{center}
    \uppercase{\@reportplace \the\year{}}
  \end{center}
  \normalsize
  \cleardoublepage
  \pagestyle{fancy}
}

%Second Cover page
\def\secondcoverpage{
  \pagestyle{empty}
  \large\bfseries
  \begin{tikzpicture}[remember picture,overlay]
    \draw[line width=3pt](
    $(current page.north west) + (3.0cm,-2.0cm)$
    ) rectangle (
    $(current page.south east) + (-2.0cm,2.0cm)$
    );
    \draw[line width=1pt](
    $(current page.north west) + (2.9cm,-1.9cm)$
    ) rectangle (
    $(current page.south east) + (-1.9cm,1.9cm)$
    );
  \end{tikzpicture}
  \vspace*{-3\baselineskip}
  \begin{center}
    \uppercase{\@upperuniname} \\
    \uppercase{\@uniname} \\
    \uppercase{\@deptname} \\
    \vfill
    \uppercase{\@stunamewithid}
    \vfill
    \uppercase{\@reporttype}
    \vfill
    {\Large{\parbox[c]{0.8\linewidth}{\centering\@title}}} \\
    \vfill
    {\Large{\parbox[c]{0.8\linewidth}{\centering\@titleen}}}
    \vfill
    \uppercase {\@stumajor}
    \vfill
    \uppercase{\@supervisor} \\
    \uppercase{\@supervisorname}
  \end{center}
  \vfill
  \vfill
  \mdseries
  \begin{center}
    \uppercase{\@reportplace \the\year{}}
  \end{center}
  \normalsize
  \cleardoublepage
  \pagestyle{fancy}
}

\def\mainthesis {
  \counterwithin{equation}{chapter}
  \counterwithin{table}{chapter}
  \counterwithin{figure}{chapter}
  \setcounter{secnumdepth}{3}
  \mainmatter
  % Config page header
  \fancyhf{}
  \fancyfoot[C]{\thepage}
  \include{chapters/main/summary.tex}
  \if @twoside
    \fancyhead[EL,OR]{\bfseries\nouppercase\rightmark}
  \else
    \fancyhead[R]{\bfseries\nouppercase\rightmark}
  \fi
}

imgs/UIT-logo.png — binary, 128 KB

imgs/demo/OverLeaf-Demo.gif — binary, 2119 KB

main.tex — the file that is compiled · 2 KB
\documentclass[final]{hcmuitthesis}
% Config reference source file
\addbibresource{references/chapter2.bib}


% Define metadata
% =========== Thay đổi thông tin tại phần này ===========
\upperuniname{ĐẠI HỌC QUỐC GIA THÀNH PHỐ HỒ CHÍ MINH}
\uniname{TRƯỜNG ĐẠI HỌC CÔNG NGHỆ THÔNG TIN}
\deptname{KHOA MẠNG MÁY TÍNH VÀ TRUYỀN THÔNG}
\stumajor{KỸ SƯ NGÀNH AN TOÀN THÔNG TIN}
\title{Your paper}
\titleen{USING LATEX IN WRITING GRADUATION THESIS}
\supervisor{GIẢNG VIÊN HƯỚNG DẪN}
\supervisorname{PGS. TS. GOOGLE \\ ThS. CHATGPT}
\stuname{NGUYỄN HỒNG SƠN }
\stunamewithid{NGUYỄN HỒNG SƠN - 17520988}
\reporttype{KHÓA LUẬN TỐT NGHIỆP}
\instruction{GIẢNG VIÊN HƯỚNG DẪN}
\reportplace{TP. HỒ CHÍ MINH, NĂM }

% =========== Hết phần thay đổi thông tin ===========

\input{chapters/front/glossaries.tex}
\makeglossaries
% Begin thesis
\begin{document}

\coverpage%
\secondcoverpage%

% Begin above main thesis
\frontmatter
\include{chapters/front/decision.tex}
\include{chapters/front/thanks.tex}
\tableofcontents
\clearpage
\listoffigures
\clearpage
\listoftables
\clearpage
\lstlistoflistings
\clearpage
\printglossaries

% \include{chapters/front/translate.tex}
\clearpage
\mainthesis

% Main chapter in thesis
\include{chapters/main/chapter1.tex}
\include{chapters/main/chapter2.tex}
\include{chapters/main/chapter3.tex}
\include{chapters/main/chapter4.tex}

% Appendix chapter in thesis
\appendix
\include{chapters/back/apendixA.tex}

% Print references
\printbibliography[heading=bibintoc, title = {Tài liệu tham khảo}]
\end{document}
references/chapter2.bib · 561 B
@online{ShantoLatex,
    title        = {How to add subfigure in Latex: Step-by-Step Tutorial with Examples},
    author       = {Shanto Roy},
    year         = {2018},
    url          = {https://shantoroy.com/latex/how-to-add-subfig-in-latex/},
    urldate      = {2024-04-08}
}

@online{MartinRotate,
    title        = {Rotate picture with caption},
    author       = {Martin Scharrer},
    year         = {2012},
    url          = {https://tex.stackexchange.com/questions/44427/rotate-picture-with-caption/57531#57531},
    urldate      = {2024-04-08}
}

The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗