2022-04-16A
LaTeX Template for Xiamen University Thesis
Project repository: https://github.com/F5Soft/xmu-template,
which also includes a template for graduation defense
slides.
This template is adapted from the master’s and
doctoral thesis template provided in the LaTeX workshop
at iAcademy, Xiamen University Library. It encapsulates
numerous formatting settings in accordance with the
Specifications for Undergraduate Graduation Theses
(Projects) of Xiamen University. Users do not need
to handle various formatting commands; they only need to
fill in author information, abstracts, keywords, chapter
titles, chapter content, appendices, references,
acknowledgments, etc. Click
here to preview the template output.
In addition to the standard undergraduate thesis, the
template also supports minor versions and graduation
project versions. Detailed usage examples can be found
in the example.tex file.






Thesis Template
Features
- Automatically generates cover page, academic
integrity pledge, and Chinese/English table of
contents
- Supports changing the cover title to “Undergraduate
Graduation Project”
- Supports adding “(Minor)” on the cover page
- Supports Chinese and English abstracts and tables of
contents
- Automatic chapter numbering
- Automatic numbering of figures, tables, equations,
and algorithms by chapter
- Automatic setting of odd and even page headers and
footers
- Supports importing references from
.bib
files, with citation format automatically set to GB/T
7714-2005 - Supports appendices and supplementary tables, as
well as adding appendix chapters
- Supports both electronic and print versions; the
print version inserts blank pages on some even pages so
that new sections start on odd pages
- Acknowledgments can be customized to appear either
before the abstract or at the end of the thesis
- Includes built-in font files, compatible with Linux
and macOS systems lacking Windows SimSun and SimHei
fonts
- Fonts, line spacing, etc., strictly follow the
Specifications for Undergraduate Graduation Theses
(Projects) of Xiamen University
Defense Slide
Template Features
- Automatically generates title slide and table of
contents
- Automatically generates chapter transition
slides
- Navigation bar at the bottom for slide control
- Supports multiple aspect ratios: 4:3, 16:9,
16:10
- Supports custom colors
- Includes university logo elements
- Chinese text in bold typeface; English text in
Arial
Examples
The minimal example example-minimal.tex
requires the xmu.cls file to be in the same
directory during compilation:
If compilation fails (especially on macOS), please
compile with xelatex. If using the
Latex Workshop extension in VSCode, select the recipe:
latexmk (xelatex).
%!TEX program = xelatex
\documentclass{xmu}
\begin{document}
% Basic information
% \print % Electronic version / Print version (print version inserts blank even pages)
% \design % Graduation project / Graduation thesis (uncomment for project)
% \minor % Major / Minor (uncomment for minor)
\title{Chinese Title}{English Title}
\author{Your Name}
\idn{Your Student ID}
\college{Your College}
\subject{Your Major}
\grade{Your Grade}
\teacher{Supervisor\; Title}
\otherteacher{External Supervisor\; Title} % Comment to hide external supervisor
\pubdate{Completion Date}
\keywords{Chinese keywords}{English keywords}
% Cover and integrity pledge
\maketitle
% To place acknowledgments first, move the acknowledgment section here
% Chinese abstract
\begin{abstract}
Abstract content.
\end{abstract}
% English abstract
\begin{enabstract}
Abstract contents.
\end{enabstract}
% Table of contents
\tableofcontents
% Main body
\xmuchapter{Level-1 Heading (Chapter)}{Chapter}
\xmusection{Level-2 Heading (Section)}{Section}
\xmusubsection{Level-3 Heading (Subsection)}{Subsection}
\subsubsection{Level-4 Heading} % Not displayed in TOC, no English required
Main body content, footnote\footnote{Footnote content}, citation\cite{cite1}.
% References
\begin{reference}
% Uncomment below to import references from .bib file
% \bibliography{references.bib}
% GB/T 7714-2005 format is automatically applied
% Manual references
\begin{thebibliography}{1} % Number = total reference items
\bibitem[1]{cite1} Reference 1
\end{thebibliography}
\end{reference}
% Appendix
\begin{appendix}
Appendix content.
\end{appendix}
% Acknowledgments (default at end)
\begin{acknowledgement}
Acknowledgment content.
\end{acknowledgement}
\end{document}
For the full example, see example.tex.
The compiled output is available in example.pdf.
You may directly modify this example.
When compiling, ensure example.tex and
xmu.cls are in the same directory and
compile with xelatex. Compilation may fail
with pdflatex.
If compilation fails (especially on macOS), please
compile with xelatex. If using the
Latex Workshop extension in VSCode, select the recipe:
latexmk (xelatex).
A detailed example for the defense slide template is
available in example-slide.tex. The
compiled slides can be previewed here.
Customization
The file xmu.cls is the template class
file and can be modified directly. Extensive comments
are provided in the template to assist
customization.
If you are satisfied with your modifications, you may
submit a Pull Request to contribute code. You may also
open an Issue to request new features.