Code Monkey home page Code Monkey logo

uestc-thesis-latex-template's Introduction

UESTC-Thesis-Latex-Template

20220224 format standard special edition

特别适配了2022年新标准

新增了答辩slides的beamer模板(用法等参见下文)

答辩委员会主席!!!

chairman pos 由于学校20220224格式规范中明确显示该内容左对齐,本模板进行了同步,若为了美学设计,请在cls文件中搜索\arraybackslash\fontsize{14pt}{14pt}\bfseries\selectfont} p{4.35in} ,并全局替换为\centering\arraybackslash\fontsize{14pt}{14pt}\bfseries\selectfont} p{4.35in}完成对该内容的居中显示。

使用说明

参考main.tex中关于本模板使用的各项说明,正文写法可参考一份其实很短的 LaTeX 入门文档

设置论文相关信息

以下所有内容均需设置在正文开始(\begin{document})之前

学位信息设置(选择对应模板)

main.tex第一行进行设置,应用thesis-uestc模板,设置学位信息:

  • bachelor:本科
  • master:学硕
  • promaster:专硕
  • doctor:博士
  • engdoctor:工程博士

操作方式如下所示:

\documentclass[master]{thesis-uestc}

作者、导师、题目等基本信息

\title{中文题目}{English Title} % 论文题目
\author{姓名}{English Name} % 作者姓名
\setdate[submit]{2022年3月17日} % 论文提交日期,可留空
\setdate[oral]{2022年4月15日}  % 答辩日期,可留空
\setdate[confer]{2022年6月8日} % 学位授予日期,可留空
\advisor{导师姓名\chinesespace 导师职称}{English name English title}
\coAdvisor{合作导师姓名\chinesespace 导师职称}{Co advisor English name English title} % 仅专业硕士/博士使用,在扉页/英文首页添加合作导师
\school{计算机科学与工程学院(网络空间安全学院)}{School of Computer Science and Engineering(School of Cyberspace Security)} % 学院信息
\major{计算机科学与技术}{Computer Science and Technology} % 专业信息
\studentnumber{xxxxx} % 学号
\Chairman{xxxxx} % 答辩委员会主席

设置专业学位领域(专业硕士/博士专用)

\ProfessionalDegreeArea{随便学学} % 专业硕士/博士专用:专业学位领域

设置合作导师

专业学位硕士/博士(请按照以下步骤操作)
  1. 在main.tex中,对以下内容取消注释并设置:
\coAdvisor{合作导师姓名\chinesespace 导师职称}{Co advisor English name English title} % 仅专业硕士/博士使用,在扉页/英文首页添加合作导师
  1. 在thesis-uestc.cls中修改以下内容(修改后如下所示):
  • 1126-1127取消注释;1129行修改为12bp
    1126    合作导师 & {\bfseries\zh@thecoadvisor} \\
    1127    \cline{2-2}
    1128    & \fontsize{12pt}{12pt}\selectfont(姓名、职称、单位名称)
    1129    \end{tabular}  \\ [12bp]
  • 1215-1216行取消注释;
    1215    Co-Supervisor: & \en@thecoadvisor \\
    1216    \cline{2-2}
学术学位硕士/博士(请按照以下步骤操作)
  1. 在main.tex中,对以下内容取消注释并设置:
\coAdvisor{合作导师姓名\chinesespace 导师职称}{Co advisor English name English title} % 仅专业硕士/博士使用,在扉页/英文首页添加合作导师
  1. 在thesis-uestc.cls中修改以下内容(修改后如下所示):
  • 1008-1009取消注释;1011行修改为24bp
    1008    合作导师 & {\bfseries\zh@thecoadvisor} \\
    1009    \cline{2-2}
    1010    & \fontsize{12pt}{12pt}\selectfont(姓名、职称、单位名称)
    1011    \end{tabular}  \\ [24bp]
  • 1091-1092行取消注释;
    1091    Co-Supervisor: & \en@thecoadvisor \\
    1092    \cline{2-2}

分类号、密级、UDC号

\ClassificationNumber{TP309.2} % 分类号
\ClassifiedClass{公开} % 密级
\UDCNumber{004.78} % UDC号

图、表目录设置

\thesisfigurelist % 图目录
\thesistablelist % 表目录

缩略词/符号表目录设置

由于两者均使用了glossary宏包实现,目前无法进行区分. 因此,请单独使用其中之一,同时使用时会导致所有条目均重复在符号表和缩略词表中显示.

在使用缩略词/符号表时,请在导言区填写缩略语条目并使能glossary宏包(如下所示,详细使用方法见main.tex):

\makeglossaries % 产生缩略词表/符号表专用,不使用时请注释
\newacronym[description=逻辑卷管理器]{lvm}{LVM}{Logical Volume Manager} % 定义缩略词/符号:以本项为例,逻辑卷管理器为中文名称;lvm用于文内引用;LVM为显示的应为缩略语或符号;Logical Volume Manager为显示的英文全称/描述

若要添加缩略词/符号表目录,请在需要的位置进行以下设置:

% \glsaddall % 默认仅显示被正文引用的项,取消注释以显示所有已定义的缩略词/符号
\thesisglossarylist % 缩略词目录
\thesissymbollist % 符号表

使用代码模板

如下所示,使用代码环境。其中style用于指定语言进行代码高亮;caption用于设置代码段标题;label用于生成代码段标签,以便在正文中引用。这里三项参数均为非必填项(但不填style会导致没有任何格式和高亮)。 现支持的代码语言高亮包括:c++,shell,python,json,solidity

\begin{lstlisting}[style=shell, caption={xxxx},label{xxxx}]
sudo apt install xxx
\end{lstlisting}

专硕设置专业学位领域

\ProfessionalDegreeArea{随便学学}

不显示作者姓名

由于目前将author设置为空会导致error,可采用以下方法进行设置(即设置为空格)

\author{$\quad$}{$\quad$}

参考文献数量超过100时的悬挂缩进问题

引入参考文献时设置间距为large(如下所示):

\thesisbibliography[large]{reference}

禁止英语单词截断换行

在main.tex中取消注释以下内容,用于禁止文中换行处的英语单词自动截断换行。

% \tolerance=1
% \emergencystretch=\maxdimen
% \hyphenpenalty=10000
% \hbadness=10000

Beamer Slides Template

  • Slides模板位于./slides目录下,使用时直接参照slides中内容进行修改即可,编译链为xelate->bibtex->xelatex*2
  • 改模板源自overleaf,可直接在overleaf中使用

overleaf备注

可能存在中文摘要无页码的问题,解决方案如下: 在cls文件的439和440行之间增加\setcounter{page}{1}\setcounter{pseudopage}{1}

更新日志

  • 2022.3.17:新版cls模板提供了分类号、密级、UDC号的设置功能,使用方法如下所示(在main.tex中\begin{document}之前加入,与作者等信息等同): UDC
  • 2022.3.17:修正英文封面中学号和姓名顺序错误的问题(对调)
  • 2022.3.17:修正“答辩委员会主席”后下划线长度不足的问题
  • 2022.3.18:增加专业硕士专用封面:
    • 新增\ProfessionalDegreeArea{}用于设置“专业学位领域”,如下所示: UDC
  • 2022.3.18:修正页眉下划线宽度为0.75磅,修正专硕英文封面学号和姓名顺序
  • 2022.3.27: 章节编号加粗(目录不加粗),目前版本完整适配20220224新标准
  • 2022.4.16: 增加主要符号表,修订缩略词表各栏宽度
  • 2022.5.30: 增加合作导师设置,修正“指导老师”为“指导教师”;默认展示PDF修订为专硕版本

uestc-thesis-latex-template's People

Contributors

tinoryj avatar zhangkexuan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.