Skip to content

Commit

Permalink
Update GZUthesis.cls
Browse files Browse the repository at this point in the history
自动添加承诺书
  • Loading branch information
francisol authored May 29, 2022
1 parent 9e1f3f3 commit 79e72c0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion GZUthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
\edef\@defensedate{\today}
\edef\@date{\today}
\def\@defenseaddress{中国}
\def\@security{}
\def\@classifyno{}
\def\@degree{硕}
%% 定义控制变量
\def\@multititlewidth{14cm} %题目宽度
Expand Down Expand Up @@ -74,6 +76,9 @@
\newcommand{\secretary}[1]{\def\@secretary{#1}}
\newcommand{\defensedate}[1]{\def\@defensedate{#1}}
\newcommand{\defenseaddress}[1]{\def\@defenseaddress{#1}}
\newcommand{\security}[1]{\def\@security{#1}}
\newcommand{\classifyno}[1]{\def\@classifyno{#1}}

% 答辩专家
\newcommand{\expert}[1]{\listadd{\@expertlist}{#1}}
\newcommand{\chairman}[1]{\def\@chairman{#1}}
Expand Down Expand Up @@ -166,6 +171,7 @@
\newgeometry{top=2.9cm,bottom=2.4cm,left=2.5cm,right=2.5cm}
\GZUthesis@maketitle
\restoregeometry
\GZUthesis@AtEndTitle
}
% 封面制作 参数为下划线长度
\newcommand{\makecover}[1][6cm]{
Expand All @@ -175,7 +181,7 @@
~\\[0.1pt]
%
\setstretch{0.85}
\noindent \faceinfofont\ \ \ \ 号:\dlmu[2cm]{} \hfill 密级:\dlmu[2cm]{} \newline
\noindent \faceinfofont\ \ \ \ 号:\dlmu[2cm]{\@classifyno} \hfill 密级:\dlmu[2cm]{\@security} \newline
\noindent\faceinfofont 论文编号:\dlmu[2cm]{\@stuid} \newline

}
Expand Down Expand Up @@ -453,6 +459,9 @@
\renewenvironment{appendices}{
\appendix\addappheadtotoc
}{}
\newcommand{\GZUthesis@AtEndDocument}{\promise}
\newcommand{\GZUthesis@AtEndTitle}{}
\AtEndDocument{\GZUthesis@AtEndDocument}
\hypersetup{
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
Expand All @@ -477,6 +486,8 @@
\renewcommand\GZUthesis@maketitle{\GZUthesis@bachelortitle}
\renewcommand{\promise}{\GZUthesis@bachelorpromise}
\renewcommand\GZUthesis@mainmatter{\fancypagestyle{plain}{\pagestyle{bachelorFancy}}}
\renewcommand{\GZUthesis@AtEndTitle}{\promise}
\renewcommand{\GZUthesis@AtEndDocument}{}
\fi
}{%
\ClassError{GZUthesis}{type error: #1;select in doctor,master,bachelor }
Expand Down

0 comments on commit 79e72c0

Please sign in to comment.