加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
zjuthesis.cls 2.80 KB
一键复制 编辑 原始数据 按行查看 历史
netadmin 提交于 2023-04-23 15:22 . Hide list of algorithms by default
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{zjuthesis}
[Zhejiang University Thesis and Design Template, Zixuan Wang zxwang42@gmail.com]
\input{config/version}
\wlog{zjuthesis version: \zjuthesisversion}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=zjuthesis,
prefix=
}
\DeclareStringOption{StudentName}
\DeclareStringOption{StudentID}
\DeclareStringOption{AdvisorName}
\DeclareStringOption{Grade}
\DeclareStringOption{Major}
\DeclareStringOption{Department}
\DeclareStringOption{Topic}
\DeclareStringOption{Title}
\DeclareStringOption{TitleEng}
\DeclareStringOption{SubmitDate}
\DeclareStringOption[undergraduate]{Degree}
\DeclareStringOption[general]{MajorFormat}
\DeclareStringOption[thesis]{Type}
\DeclareStringOption[proposal]{Period}
\DeclareStringOption[chinese]{Language}
\DeclareStringOption[doctor]{GradLevel}
\DeclareStringOption{ColaboratorName}
\DeclareStringOption[false]{BlindReview}
\DeclareStringOption[false]{PrintFilePath}
\DeclareStringOption[true]{TwoSide}
\DeclareBoolOption[true]{ListOfContents}
\DeclareBoolOption[true]{ListOfFigures}
\DeclareBoolOption[true]{ListOfTables}
\DeclareBoolOption[false]{ListOfAlgorithms}
\ProcessKeyvalOptions*
\wlog{Degree: {\Degree}}
\wlog{MajorFormat: {\MajorFormat}}
\wlog{Type: {\Type}}
\wlog{Period: {\Period}}
\wlog{BlindReview: {\BlindReview}}
\wlog{Language: {\Language}}
\wlog{GradLevel: {\GradLevel}}
\wlog{PrintFilePath: {\PrintFilePath}}
\PassOptionsToPackage{no-math}{fontspec}
\PassOptionsToPackage{AutoFakeBold}{xeCJK}
\usepackage{xifthen}
\ifthenelse{\equal{\TwoSide}{true}}
{
\PassOptionsToClass{
twoside,
openright
}{ctexrep}
}
{}
\LoadClass[
zihao=-4,
UTF8
]{ctexrep}
\input{config/packages}
\ifthenelse{\equal{\Degree}{undergraduate}}
{
% undergraduate
\ifthenelse{\equal{\Type}{thesis}}
{
\newcommand{\TitleTypeName}{浙江大学本科生毕业论文}
}
{
\newcommand{\TitleTypeName}{浙江大学本科生毕业设计}
}
}
{
% graduate
\ifthenelse{\equal{\GradLevel}{doctor}}
{
% doctor
\ifthenelse{\equal{\Type}{thesis} \OR \equal{\Type}{design}}
{
% thesis or design
\newcommand{\TitleTypeName}{浙江大学博士学位论文}
\newcommand{\TitleTypeNameCover}{博士学位论文}
}
{}
}
{
% master
\ifthenelse{\equal{\Type}{thesis}}
{
% thesis
\newcommand{\TitleTypeName}{浙江大学硕士学位论文}
\newcommand{\TitleTypeNameCover}{硕士学位论文}
}
{
% design
\newcommand{\TitleTypeName}{浙江大学硕士专业学位论文}
\newcommand{\TitleTypeNameCover}{硕士专业学位论文}
}
}
}
\input{config/path}
\input{config/commands}
\input{config/format/format}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化