ShanghaiTech University thesis (shtthesis)
Unofficial ShanghaiTech University bachelor, master and doctoral thesis format on ctexbook, with Chinese and English covers, abstracts and GB/T 7714-2015 references through biblatex.
Create an account to use this
- Category
- Thesis
- Document class
shtthesis(shtthesis.cls) — ships with TeX Live- Workflow
- Thesis / dissertation — submissions and revision rounds
- Author
- Rundong Li
- Source
- CTAN
- Licence
- shtthesis.cls: GNU General Public License, version 3. 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
% 上海科技大学学位论文 / ShanghaiTech University thesis on shtthesis.cls. Build with XeLaTeX and biber.
% Degree option: bachelor | master | doctor (exactly one). Further options: anonymous (blind
% review), print (binding margins, black links), comfort (bachelor only).
% fontset=fandol uses the Fandol fonts in TeX Live; use fontset=windows when the Windows fonts
% are available. The class sets the bibliography style itself (GB/T 7714-2015 author-year for
% graduate theses, numeric for bachelor theses) and reads the .bib file named in bib-resource.
\documentclass[master,fontset=fandol]{shtthesis}
\shtsetup{
degree-name = {工学硕士},
degree-name* = {Master~of~Science~in~Engineering},
title = {Your paper},
title* = {Your paper},
keywords = {信息论,熵,学位论文},
keywords* = {information theory, entropy, thesis},
author = {作者姓名},
author* = {Author~Name},
institution = {某某学院},
institution* = {School~of~Name\\ShanghaiTech~University},
supervisor = {导师姓名~教授},
supervisor* = {Professor~Supervisor~Name},
supervisor-institution = {某某学院},
discipline-level-1 = {计算机科学与技术},
discipline-level-1* = {Computer~Science~and~Technology},
date = {2027~年~5~月},
date* = {May,~2027},
bib-resource = {references.bib},
}
\usepackage{tikz}
% The class prints the university emblem on the cover from shanghaitech-emblem.pdf, which is
% not installed with TeX; without the file it prints a request to download it. This sample
% leaves the emblem space empty instead. Delete these lines to use the class's behaviour.
\makeatletter
\renewcommand\sht@schoollogo{}
\renewcommand\sht@head@logo{}
\makeatother
\begin{document}
\maketitle
\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*}
\makeindices
\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{数据}
表~\ref{tab:data} 列出了实验所用的三个数据集。
\begin{table}[htbp]
\centering
\caption{实验数据集 (Data sets)}
\label{tab:data}
\begin{tabular}{lrr}
\hline
数据集 & 样本数 & 符号数 \\
\hline
A & 1200 & 4 \\
B & 3500 & 8 \\
C & 9800 & 16 \\
\hline
\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{二元信源的熵 (Entropy of a binary source)}
\label{fig:entropy}
\end{figure}
\makebiblio
\backmatter
\begin{acknowledgement}
感谢导师的悉心指导,感谢所有给予帮助的老师和同学。
\end{acknowledgement}
\begin{resume}
作者姓名,某某学院硕士研究生。
\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 ↗