Northwest A&F University thesis (nwafuthesis)
Northwest A&F University bachelor, master and doctoral thesis format on ctexbook and LaTeX3, with English and Chinese title pages, declarations and GB/T 7714 references through biblatex.
Create an account to use this
- Category
- Thesis
- Document class
nwafuthesis(nwafuthesis.cls) — ships with TeX Live- Workflow
- Thesis / dissertation — submissions and revision rounds
- Author
- Nan Geng
- Source
- CTAN
- Licence
- nwafuthesis.cls: The LaTeX Project Public License 1.3c. Sample text: Manulyx, CC0 1.0 (free to use, no conditions).
What you get
main.tex— the file that is compiled · 4 KBreferences.bib· 342 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
main.tex — the file that is compiled · 4 KB
% 西北农林科技大学学位论文 / Northwest A&F University thesis on nwafuthesis.cls.
% Build with XeLaTeX (or LuaLaTeX) and biber.
% type = doctor | master | bachelor. style/font = times uses XITS and TeX Gyre fonts and
% style/cjk-font = fandol the Fandol fonts in TeX Live; use style/font = times* and
% style/cjk-font = windows when the Windows fonts are available.
\documentclass[type=master]{nwafuthesis}
\nwafuset{
style = {
font = times,
cjk-font = fandol,
% The class's first cover places the university logo from logo/nwafu-bar.pdf, which is not
% installed with TeX; this sample builds the other cover pages itself (see below).
auto-make-cover = false,
bib-resource = {references.bib},
},
info = {
title = {Your paper},
title* = {Your paper},
author = {作者姓名},
author* = {Author Name},
supervisor = {导师姓名~教授},
supervisor* = {Prof. Supervisor Name},
cosupervisor = {副导师姓名~副教授},
cosupervisor* = {Assoc. Prof. Co-supervisor Name},
department = {某某学院},
department* = {College of Name},
major = {农业工程},
major* = {Agricultural Engineering},
researchfield = {信息论},
researchfield* = {Information Theory},
student-id = {0000000000},
clc = {S2},
udc = {631},
date = {2027年5月},
date* = {May 2027},
defensedate = {2027年5月},
defensecommittees = {
{主席, 姓名~教授, 某某大学},
{委员, 姓名~教授, 某某大学},
},
},
abstract = {
keywords = {信息论, 熵, 学位论文},
keywords* = {information theory, entropy, thesis},
},
}
\usepackage{booktabs}
\usepackage{tikz}
\begin{document}
% English title page, Chinese title page, declarations and authorisation.
\begin{titlepage}
\makecoverii
\newpage
\makecoveriii
\newpage
\makecoverv
\newpage
\makecovervi
\end{titlepage}
\frontmatter
\begin{abstract}
本文研究离散信源的熵。摘要应概括研究的问题、方法、结果和结论。
\end{abstract}
\begin{abstract*}
This thesis studies the entropy of a discrete source. The abstract states the problem, the
method, the main results and the conclusions in one or two paragraphs.
\end{abstract*}
\cleardoublepage
\pagenumbering{Roman}
\tableofcontents
\mainmatter
\chapter{绪论}
\label{chap:introduction}
本章说明论文研究的问题及其意义。信息论的基本概念见文献\cite{shannon1948}。
This chapter states the problem and the plan of the thesis.
\section{研究内容}
列出本文要回答的两到三个问题。
\chapter{方法}
\label{chap:method}
\section{模型}
设离散信源有 $n$ 个符号,其概率为 $p_1, \dots, p_n$,则信源的熵为
\begin{equation}
H = -\sum_{i=1}^{n} p_i \log_2 p_i ,
\label{eq:entropy}
\end{equation}
当各符号等概率时熵最大。
\section{数据}
% The class's \ref prints the prefix itself: 表 1.1, 图 3.1, 式(2.1).
\ref{tab:data} 列出了实验所用的三个数据集。
\begin{table}[htbp]
\centering
\caption{实验数据集}
\label{tab:data}
\begin{tabular}{lrr}
\toprule
数据集 & 样本数 & 符号数 \\
\midrule
A & 1200 & 4 \\
B & 3500 & 8 \\
C & 9800 & 16 \\
\bottomrule
\end{tabular}
\end{table}
\chapter{结果与结论}
\label{chap:results}
\ref{fig:entropy} 给出二元信源的熵随概率 $p$ 的变化,在 $p = 0.5$ 时取最大值 1 比特,与\ref{eq:entropy}一致。
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[x=6cm,y=3cm]
\draw[->] (0,0) -- (1.1,0) node[right] {$p$};
\draw[->] (0,0) -- (0,1.15) node[above] {$H(p)$};
\foreach \t in {0.5,1} \draw (\t,0) -- (\t,-0.03) node[below] {\t};
\draw[thick,domain=0.01:0.99,samples=60] plot (\x, {-\x*log2(\x)-(1-\x)*log2(1-\x)});
\end{tikzpicture}
\caption{二元信源的熵}
\label{fig:entropy}
\end{figure}
\bibmatter
\printbibliography
\backmatter
\begin{acknowledgement}
感谢导师的悉心指导,感谢所有给予帮助的老师和同学。
\end{acknowledgement}
\begin{resume}
\resumitem
作者姓名,某某学院硕士研究生。
\end{resume}
\end{document}
references.bib · 342 B
@article{shannon1948,
author = {Shannon, C. E.},
title = {A Mathematical Theory of Communication},
journal = {Bell System Technical Journal},
volume = {27},
number = {3},
pages = {379--423},
year = {1948},
doi = {10.1002/j.1538-7305.1948.tb01338.x}
}
% Add your own entries here, then cite them with cite{key}.
The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗