Anhui Normal University master's thesis (ahnu-master-thesis, community)
The ahnu-master-thesis class for master's theses at Anhui Normal University, on ctexbook: cover with classification number and university logo, title pages in Chinese and English, defence committee, originality and authorisation statements, Chinese and English abstracts, contents, a sample thesis that doubles as a LaTeX tutorial (figures, subfigures, tables, long tables, equations, algorithms, citations), conclusions, references (GB/T 7714 numerical with natbib and BibTeX, superscript citations), acknowledgements, publications and a spine page. XeLaTeX with FandolSong and TeX Gyre Termes.
- Category
- Thesis
- Document class
ahnu-master-thesis(ahnu-master-thesis.cls) — ships with TeX Live- Workflow
- Thesis / dissertation — submissions and revision rounds
- Author
- Xin He and Cheng Li (ahnu-master-thesis-latex)
- Source
- Xin He and Cheng Li (ahnu-master-thesis-latex)
- Licence
- ahnu-master-thesis.cls: MIT License. The sample text is Xin He and Cheng Li (ahnu-master-thesis-latex)'s, provided for authors preparing a submission.
These are the publisher’s own files. This project starts from Xin He and Cheng Li (ahnu-master-thesis-latex)’s package for this publication — their manuscript, their ahnu-master-thesis.cls, their bibliography style — so what compiles here is what they would have given you.
Xin He and Cheng Li (ahnu-master-thesis-latex) serves this exact file to Anhui Normal University and 2 other titles. Check Xin He and Cheng Li (ahnu-master-thesis-latex)’s author pages for the current instructions.
Where this differs from the publisher’s download.
- Note: A community template by Xin He (School of Computer and Information) and Cheng Li; it is not issued by Anhui Normal University's graduate school. The university logo is a blank image here (ahnu-logo.pdf). Check it against the graduate school's current thesis rules.
What you get
LICENSE· 1 KBahnu-logo.pdf· 431 Bahnu-master-thesis.cls· 15 KBgbt7714-numerical.bst· 58 KBmain.tex— the file that is compiled · 15 KBref.bib· 323 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.
Link to this template. Send it to a student or co-author: it starts a new paper in this template, through sign-up if they need an account.
https://manulyx.com/start/ahnu-master-thesis
Source
LICENSE — binary, 1 KB
ahnu-logo.pdf — binary, 431 B
ahnu-master-thesis.cls · 15 KB
Loading…
gbt7714-numerical.bst · 58 KB
58 KB — too long to show here. It arrives with the project.
main.tex — the file that is compiled · 15 KB
% !TeX program = xelatex
% !TeX encoding = UTF-8
% Copyright (c) 2026 何昕(安徽师范大学计算机与信息学院,[email protected])
% Copyright (c) 2026 李城(电气通信大学,[email protected])
% SPDX-License-Identifier: MIT
% 本文件沿用原始实例的排版命令,以下个人信息和正文仅供教学演示。
\documentclass{ahnu-master-thesis}
% 加一些必要的包
\usepackage{amsmath,amsfonts}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{array}
\usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig}
\usepackage{textcomp}
\usepackage{stfloats}
\usepackage{url}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{cite}
\usepackage{multirow}
\usepackage{soul}
\usepackage{xcolor}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{geometry}
%\usepackage{enumerate}
\setmainfont{TeX Gyre Termes} % gh6: was Times New Roman; 设置英文、数字等字体
\usepackage[super, square, numbers, sort&compress]{natbib}
\setlength{\bibsep}{0pt}
%\usepackage[numbers,sort&compress]{natbib}
\newcommand{\citepnum}[1]{\cite{#1}} % [1] 格式, 例如文献[x]
\newcommand{\citesup}[1]{\textsuperscript{[\citealp{#1}]}} % 上标格式
% 上标引用
%\newcommand{\citesuper}[1]{\textsuperscript{\citealp{#1}}}
% 元信息
\classification{示例分类号}% 按实际情况填写
\cuniversitylogo{ahnu-logo.pdf}
%标题
\ctitle{学位论文排版示例:LaTeX 入门与模板使用}
\etitle{A Typesetting Example and Guide to the LaTeX Thesis Template}
%专业、姓名等信息
\csubject{示例学科代码}
\cmajor{示例专业}
\cresearchfield{示例研究方向}%
\cauthor{示例作者}%
\csupervisor{示例导师 \, 教授}%
\csubmitdate{20XX 年 X 月}%
\cdegreegrantdate{20XX 年 X 月} % 一般由学校填写,可留空
\defensechair{
\\
示例主席 & 示例单位 & 教\quad 授
}
\defensecommittee{
\\
示例委员甲 & 示例单位 & 教\quad 授\\
\\
示例委员乙 & 示例单位 & 教\quad 授 \\
\\
示例委员丙 & 示例单位 & 副教授 \\
\\
示例委员丁 & 示例单位 & 副教授 \\
}
\defensesupervisor{
\\
示例导师 & 示例单位 & 教\quad 授
}
\begin{document}
% 封面
\maketitlepage
% 独创性声明 + 授权书
\makedeclaration
%题页
\maketitleanother
% 答辩签名页
\makesignaturepage
% 中文摘要
\begin{cnabstract}
本文是安徽师范大学硕士学位论文 \LaTeX{} 模板的可编译教学示例。示例沿用原始源文件的封面、声明、目录、符号表、缩略词表和附录排版,正文改为通用的 \LaTeX{} 使用说明。主要内容如下:
\begin{enumerate}
\item 说明如何填写封面元信息、摘要和答辩信息,以及如何使用 XeLaTeX 和 BibTeX 编译。
\item 演示章节、列表、公式、算法、图片、表格、标签与交叉引用的写法。
\item 介绍参考文献、致谢和附录的填写位置,提醒使用者按实际论文内容替换全部示例。
\end{enumerate}
本文件中的姓名、数据和参考条目均为教学占位内容。正式提交前,应核对学校当年的格式要求,并检查编译后的每一页。
\cnkeywords{\LaTeX;学位论文;排版模板;使用教程}
\end{cnabstract}
\begin{enabstract}
This document is a compilable tutorial for the Anhui Normal University master's thesis LaTeX template. It retains the typesetting commands of the original example for the cover, declarations, contents, symbol list, abbreviation list, and appendices, while replacing the research text with general instructions. Its main topics are as follows:
\begin{enumerate}
\item Enter thesis metadata, abstracts, and defense information, then compile with XeLaTeX and BibTeX.
\item Write chapters, formulas, algorithms, figures, tables, and references.
\item Fill in references, acknowledgements, and appendices with the author's own verified material.
\end{enumerate}
All names, values, and bibliography entries in this example are placeholders. Before submission, check the current university requirements and review every page of the compiled document.
\enkeywords{LaTeX; thesis template; typesetting; tutorial}
\end{enabstract}
% 目录
\newpage
\renewcommand{\contentsname}
{\centerline{\songti\bfseries\zihao{-2} 目 \quad 录}}
\tableofcontents
%图清单
\makefigurelist
%表清单
\maketablelist
%符号表
\chapter*{主要符号对照表}
\addcontentsline{toc}{chapter}{主要符号对照表} % 将符号表加入目录
% 设置表格列宽与对齐方式,左侧符号居中,右侧解释左对齐并允许自动换行
\begin{longtable}{>{\centering\arraybackslash}p{3cm} p{10cm}}
\toprule
\textbf{符号} & \textbf{含义} \\
\midrule
\endfirsthead
% 跨页时的表头设置
\multicolumn{2}{c}{{\bfseries 续表:主要符号对照表}} \\
\toprule
\textbf{符号 (Symbol)} & \textbf{含义 (Description)} \\
\midrule
\endhead
\midrule
\multicolumn{2}{r}{{接下页 \dots}} \\
\endfoot
\bottomrule
\endlastfoot
$n$ & 示例中的数值个数 \\
$x_i$ & 第 $i$ 个示例数值 \\
$s_n$ & 前 $n$ 个示例数值的总和 \\
$\bar{x}$ & 示例数值的平均值 \\
$\mathbb{R}$ & 实数集合 \\
$\mathrm{Fig.}$ & 正文中引用图片编号的排版示意 \\
\end{longtable}
%缩略词表
\chapter*{主要缩略词表}
\addcontentsline{toc}{chapter}{缩略词表} % 将缩略词表加入目录
% 设置表格列宽与对齐方式,左侧符号居中,右侧解释左对齐并允许自动换行
\begin{longtable}{>{\centering\arraybackslash}p{3cm} p{10cm}}
\toprule
\textbf{缩略词} & \textbf{全称与中文含义} \\
\midrule
\endfirsthead
% 跨页时的表头设置
\multicolumn{2}{c}{{\bfseries 续表:缩略词表}} \\
\toprule
\textbf{缩略词 (Acronym)} & \textbf{全称与含义 (Description)} \\
\midrule
\endhead
\midrule
\multicolumn{2}{r}{{接下页 \dots}} \\
\endfoot
\bottomrule
\endlastfoot
PDF & Portable Document Format(便携式文档格式) \\
TeX & 排版系统名称 \\
LaTeX & 基于 TeX 的文档准备系统 \\
CJK & Chinese, Japanese and Korean(中日韩文字) \\
DOI & Digital Object Identifier(数字对象标识符) \\
BibTeX & 参考文献数据库处理工具 \\
\end{longtable}
%阿拉伯数字页码
\mainmatter
% 示例正文
\newpage
\chapter{快速开始}
\label{chap:start}
本章介绍项目文件、编译流程和论文元信息。请先用本章完成一次本地编译,再逐项替换占位内容。
\section{认识文件与编译流程}
\texttt{main.tex} 是写作入口,\texttt{ahnu-master-thesis.cls} 定义论文格式,\texttt{ref.bib} 保存参考文献条目,\texttt{gbt7714-numerical.bst} 控制文献表样式。这个示例用 XeLaTeX 处理中文和字体,用 BibTeX 生成参考文献表。请在项目根目录运行:
\begin{verbatim}
latexmk -xelatex -bibtex main.tex
\end{verbatim}
如果不用 \texttt{latexmk},则依次执行 XeLaTeX、BibTeX、XeLaTeX、XeLaTeX。再次编译是为了更新目录、文献编号和交叉引用。编译器应选 \texttt{xelatex};不能用 \texttt{pdflatex} 直接编译这个中文模板。
\section{先改元信息}
源文件开头的 \verb|\ctitle|、\verb|\etitle|、\verb|\cauthor|、\verb|\csupervisor| 等命令控制封面与摘要标题。例如:
\begin{verbatim}
\ctitle{你的中文论文题目}
\etitle{Your English Thesis Title}
\cauthor{你的姓名}
\csupervisor{导师姓名\, 职称}
\end{verbatim}
封面使用原模板校徽,声明页与答辩页也按原实例生成:
\begin{verbatim}
\cuniversitylogo{ahnu-logo.pdf}
\makedeclaration
\makesignaturepage
\end{verbatim}
正式提交前应核对学校最新文案及页面要求。
\section{模板版权与用途}
本模板及教程由以下作者编写:
\begin{itemize}
\item 何昕,安徽师范大学计算机与信息学院,\url{[email protected]}。
\item 李城,电气通信大学,\url{[email protected]}。
\end{itemize}
项目原创源码与说明采用 MIT 许可证。第三方参考材料的归属见项目 \texttt{NOTICE.md}。
\chapter{正文、列表与交叉引用}
\label{chap:structure}
论文正文通过章节层级组织。下列代码展示段落、列表和交叉引用的基本写法。
\section{章节与段落}
用 \verb|\chapter{章标题}|、\verb|\section{节标题}| 和 \verb|\subsection{小节标题}| 建立层级。空一行开启新段落;源文件中的单次换行通常仍属于同一段。需要突出内容时,可使用加粗和强调命令:
\begin{verbatim}
\textbf{重点} \emph{强调}
\end{verbatim}
\subsection{列表}
有序列表适合写步骤:
\begin{enumerate}
\item 修改封面元信息与摘要。
\item 写正文并给图、表、公式加标签。
\item 完成文献条目,再编译检查。
\end{enumerate}
无序列表适合列出并列事项:
\begin{itemize}
\item 正文采用 \texttt{chapter}、\texttt{section} 等结构命令。
\item 交叉引用使用标签,不手填图表编号。
\end{itemize}
\section{标签与引用}
本章用了 \verb|\label{chap:structure}|,因此可以写“第~\ref{chap:structure}~章”。公式~\eqref{eq:mean}、图~\ref{fig:placeholder}、表~\ref{tab:example} 和算法~\ref{alg:mean} 也采用同样方式。标签应紧接章节标题或图表标题之后;如果看到“??”,请检查标签拼写并重新编译。
\chapter{公式与算法}
\label{chap:math}
公式和算法需要与正文说明配合使用。本章使用简单数值示例展示编号与引用方式。
\section{行内公式与独立公式}
行内数学用 \verb|$...$|,例如 $x_i\in\mathbb{R}$。需要编号的公式用 \texttt{equation} 环境:
\begin{equation}
\bar{x}=\frac{1}{n}\sum_{i=1}^{n}x_i.
\label{eq:mean}
\end{equation}
多行对齐公式可用 \texttt{align} 环境:
\begin{align}
s_n &= \sum_{i=1}^{n}x_i, \\
\bar{x} &= \frac{s_n}{n}.
\end{align}
\section{算法伪代码}
下面的算法只演示排版。\texttt{algorithm} 提供浮动体与标题,\texttt{algpseudocode} 提供步骤命令。
\begin{algorithm}[htbp]
\caption{计算示例数值的平均值}
\label{alg:mean}
\begin{algorithmic}[1]
\Require 数值 $x_1,\ldots,x_n$,其中 $n>0$
\State $s\gets 0$
\For{$i\gets 1$ \textbf{to} $n$}
\State $s\gets s+x_i$
\EndFor
\State \Return $s/n$
\end{algorithmic}
\end{algorithm}
\chapter{图片与表格}
\label{chap:figtable}
图片和表格应有清晰的标题与标签。以下图表内容仅用于展示原始实例的浮动体排版。
\section{图片}
图~\ref{fig:placeholder} 使用由 \LaTeX{} 绘制的占位框,因此项目不依赖原论文中的研究图片。替换为真实图片时,将图片放在例如 \texttt{figures/} 目录,然后写:
\begin{verbatim}
\includegraphics[width=0.7\linewidth]{figures/your-figure.pdf}
\end{verbatim}
请使用有权在论文中使用的图片,并在图注中标注来源。
\begin{figure}
\centering
\fbox{\parbox[c][3cm][c]{0.575\linewidth}{\centering 这里放置示例图片}}
\caption{图片排版占位示例}
\label{fig:placeholder}
\end{figure}
\section{三线表}
表~\ref{tab:example} 用 \texttt{booktabs} 的 \verb|\toprule|、\verb|\midrule| 和 \verb|\bottomrule| 生成三线表。表格内容均为虚构数值。
\begin{table}
\caption{表格排版示例}
\label{tab:example}
\centering
\small
\renewcommand{\arraystretch}{1.1} % 延续原实例的表格行距
\setlength{\tabcolsep}{3pt}
{%
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lcc@{}}
\toprule
方法 & 样本数 & 示例得分 \\
\midrule
方法 A & 10 & 0.80 \\
方法 B & 12 & 0.85 \\
\bottomrule
\end{tabular*}%
}
\end{table}
\chapter{参考文献与结束部分}
\label{chap:refs}
参考文献和文末部分应以作者自己的真实材料填写。本章展示文献条目与引用位置。
\section{BibTeX 引用}
在 \texttt{ref.bib} 中给每条文献一个唯一键,在正文用 \verb|\citep{键名}| 引用。这里引用一条明确标为虚构的排版示例文献\citep{typesetting-demo}。正式论文请删除该条,并逐条核对真实文献的作者、题名、年份和出版信息。
\chapter{总结与排版检查}
\label{chap:check}
本章汇总编译与提交前需要复核的事项。示例编译成功只能说明源文件可以生成 PDF,最终版式仍需根据学校当年的要求逐页检查。
\section{提交前检查}
检查封面信息、中英文摘要、目录和图表清单的页码;确认正文中的公式、图表和参考文献都能正确跳转。附录 A 应填写自己的研究成果,附录 B 仅在确有补充材料时保留。
\section{常见问题}
\begin{description}
\item[目录或引用显示“??”] 再编译,并检查 \verb|\label|、\verb|\ref| 与 \verb|\citep| 中的键名。
\item[找不到图片] 检查路径是否相对于 \texttt{main.tex},并确认文件名大小写一致。
\item[缺少字体] 原模板使用 SimSun,示例正文使用 Times New Roman。请检查字体安装与 XeLaTeX 环境。
\item[文献未更新] 确认已经执行 BibTeX,随后再执行两次 XeLaTeX。
\end{description}
\clearpage % 确保从新的一页开始,防止目录页码错误
\phantomsection % 生成一个不可见的锚点,确保 PDF 书签跳转正确
\addcontentsline{toc}{chapter}{参考文献} % 手动将这一页加入目录
\bibliographystyle{gbt7714-numerical}
\bibliography{ref}
% 致谢
\begin{acknowledgements}
这里是致谢文字的排版占位内容。正式论文应由作者本人撰写,感谢实际给予指导和帮助的个人与机构;提交前删除本段示例。
\end{acknowledgements}
% 附录示例
\appendix
\chapter{攻读学位期间参与的科研项目及主要科研成果}
\vspace{1em}
\noindent\textbf{已公开发表的论文}
\begin{enumerate}
\item 在此填写本人已发表的论文,注明完整书目信息、作者顺序和发表状态。
\end{enumerate}
\vspace{1em}
\noindent\textbf{承担课题}
\begin{enumerate}
\item 在此填写本人参与或主持的项目,注明项目名称、编号、角色和时间。
\end{enumerate}
\vspace{1em}
\noindent\textbf{已公开发表的专利}
\begin{enumerate}
\item 在此填写本人已公开的专利,注明专利号、公开日期和发明人顺序。
\end{enumerate}
\vspace{1em}
\noindent\textbf{已公开发表的软著}
\begin{enumerate}
\item 在此填写本人已登记的软件著作权,注明登记号和权利人。
\end{enumerate}
\vspace{1em}
\noindent\textbf{获奖情况}
\begin{enumerate}
\item 在此填写本人实际获得的奖励,注明奖项名称、颁发单位和时间。
\end{enumerate}
\chapter{补充推导与其他材料}
附录 B 是可选的。若有正文中不便展开的补充推导、调查表或补充实验,就保留本章并填入实际内容;若没有补充材料,删除本章即可。
\end{document}
ref.bib · 323 B
Loading…
The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗