代码拉取完成,页面将自动刷新
\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}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。