封面、扉页集中定制需求 #62
sikouhjw
announced in
Announcements
Replies: 1 comment 1 reply
-
需求:
\documentclass{gdutthesis}
\gdutsetup{
style/cover = {true},
info = {
supervisor = {AAA(教授)BBB(副教授)},
supervisor-two = {CCC(高级工程师)},
}
}
\ExplSyntaxOn
\makeatletter
\cs_set:Npn \gdutcover {
\setlength{\paperwidth}{420mm}
\setlength{\pdfpagewidth}{420mm}
\setlength{\paperheight}{297mm}
\setlength{\pdfpageheight}{297mm}
\newgeometry{margin=0pt}
\noindent\begin{minipage}[c][29.7cm]{20.78cm}%
\mbox{}%
\end{minipage}%
\parbox[c]{0.44cm}{%
\centering\zihao{5}\linespread{1.0807}\selectfont%
\mbox{}\vfill%
\l__gdut_info_title_tl\par%
\vspace{5cm}%
\l__gdut_info_author_tl\par%
\vspace{5cm}%
\exp_args:No \coverdate{\l__gdut_info_date_tl}\par%
\mbox{}\vfill%
}%
\noindent\begin{minipage}[c][29.7cm]{20.78cm}%
\centering
\vspace*{2cm}
\begingroup \centering\sffamily\zihao{2} \l__gdut_info_title_tl \par \endgroup
\vspace*{3cm}
\begingroup \centering\zihao{4}\bfseries
\begin{tabular}{c>{\centering\arraybackslash}p{14\ccwd}}
\multirow{4}*{
\begin{CJKfilltwosides*}{0pt}
作者姓名:\\
导师姓名:\\
学科(专业)或领域名称:\\
论文答辩年月:
\end{CJKfilltwosides*}
} & \l__gdut_info_author_tl \\
\cline{2-2}
& AAA\quad BBB\\%%%%在这里手写
\cline{2-2}
& \l__gdut_info_major_tl \\
\cline{2-2}
& \exp_args:No \coverdate{\l__gdut_info_date_tl} \\
\cline{2-2}
\end{tabular}
\par \endgroup
\end{minipage}%
\restoregeometry
\setlength{\paperwidth}{210mm}
\setlength{\pdfpagewidth}{210mm}
\setlength{\paperheight}{297mm}
\setlength{\pdfpageheight}{297mm}
\newpage
}
\cs_set:Npn \gdutmaketitle {
\__gdut_background_type:
\frontmatter\pagestyle{empty}\pagenumbering{Alph}
\bool_if:NTF \l__gdut_cover_bool
{
\gdutcover
\linespread{\ZhLS@bodylinespread}\selectfont
}
{ }
\vspace*{0.4\baselineskip-1.5pt}
\begingroup \centering
\begin{tabular}{>{\zihao{4}}r@{\hspace*{8\ccwd}}>{\zihao{4}\raggedright\arraybackslash}p{6\ccwd}@{\hspace*{6\ccwd}}>{\zihao{4}}p{12\ccwd}}
分类号: & & 学校代号:11845 \\[5pt]
UDC: & 密级:\bool_if:NT \l__gdut_secret_bool {\l__gdut_info_secret_level_tl} & 学\hspace*{2\ccwd}号:\l__gdut_info_student_id_tl
\end{tabular}
\par \endgroup
\vspace*{1.5\baselineskip+4pt}
\begingroup \centering\bfseries\zihao{-2} 广东工业大学 \__gdut_thesis_type: 论文\par \endgroup
\begingroup \centering\zihao{4} ( \l__gdut_info_degree_tl ) \par \endgroup
\vspace*{0.8\baselineskip+0.75pt}
\begingroup \centering\sffamily\zihao{2} \l__gdut_info_title_tl\par \endgroup
\vspace*{\baselineskip+5.75pt}
\begingroup \centering\zihao{3} \l__gdut_info_author_tl\par \endgroup
\vspace*{7.5\baselineskip}
\begingroup \centering\zihao{4}
\begin{tabular}{c>{\centering\arraybackslash}p{14\ccwd}}
\multirow{2}*{
\begin{CJKfilltwosides*}{11.3\ccwd}
导师姓名(职称):\\
企业导师姓名(职称):
\end{CJKfilltwosides*}
} & \l__gdut_info_supervisor_tl \\
\cline{2-2}
\str_if_eq:NNTF \l__gdut_info_supervisor_two_tl {none}
{}
{& \l__gdut_info_supervisor_two_tl \\
\cline{2-2}}
\multirow{4}*{
\begin{CJKfilltwosides*}{0pt}
学科(专业)或领域名称:\\
学生所属学院:\\
答辩委员会主席:\\
论文答辩日期:
\end{CJKfilltwosides*}
}
& \l__gdut_info_major_tl \\
\cline{2-2}
& \l__gdut_info_department_tl \\
\cline{2-2}
& \l__gdut_info_chairman_clist \\
\cline{2-2}
& \exp_args:No \zhdate{\l__gdut_info_date_tl} \\
\cline{2-2}
\end{tabular}
\par \endgroup
\newpage
\begingroup \centering\zihao{4}
A~Dissertation~Submitted~to~Guangdong~University~of~Technology\\[-0.15\baselineskip] for~the~Degree~of~\__gdut_thesis_en_type:
\par \endgroup
\begingroup \centering\zihao{-4} (\l__gdut_info_degree_en_tl) \par \endgroup
\vspace*{2\baselineskip}
\begingroup \centering\zihao{-2}\sffamily
\l__gdut_info_title_en_tl
\par \endgroup
\vspace*{5\baselineskip}
\begingroup \centering\zihao{-3}\sffamily
Candidate:~\l__gdut_info_author_en_tl\\
Supervisor:~\l__gdut_info_supervisor_en_tl
\par \endgroup
\vspace*{8\baselineskip}
\begingroup \centering\zihao{-4}\sffamily\linespread{1.15}\selectfont
\exp_args:No \engdate{\l__gdut_info_date_tl}\\
School~of~\l__gdut_info_department_en_tl\\
Guangdong~University~of~Technology\\
Guangzhou,~Guangdong,~P.~R.~China,~510006
\par \endgroup
\if@openright \cleardoublepage \else \clearpage \fi
\pagestyle{fancy}
}
\makeatother
\ExplSyntaxOff
\begin{document}
\end{document} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
有些同学需要定制封面、扉页,这里把需求和解决方案贴上,以供复用。
注意:定制的封面、扉页不一定能过审查,除非导师要求定制,否则后果自负。
Beta Was this translation helpful? Give feedback.
All reactions