封面标题过长 #103
geekveteran
started this conversation in
General
封面标题过长
#103
Replies: 1 comment
-
在导言区加上以下代码(调 \ExplSyntaxOn
\cs_set:Npn \gdutcover
{
\setlength{\paperwidth}{420mm}
\setlength{\pdfpagewidth}{420mm}
\setlength{\paperheight}{297mm}
\setlength{\pdfpageheight}{297mm}
\newgeometry{margin=0pt}
\begingroup
\centering\begin{minipage}[c][29.7cm]{20.78cm+0.15cm}%
\mbox{}%
\end{minipage}%
\rotatebox[origin = c]{-90}{%
\parbox[c][0.44cm-0.15cm]{29.7cm}{%
\addCJKfontfeatures*{RawFeature={vertical}}\CJKmove%
\centering\zihao{5}%
\hspace*{2cm}%
\l__gdut_info_title_tl%
\hspace{\fill}%
\l__gdut_info_author_tl%
\hspace{\fill}%
\exp_args:No \coverdate{\l__gdut_info_date_tl}%
\hspace*{2cm}%
}%
}%
\begin{minipage}[c][29.7cm]{20.78cm}%
\centering
\vspace*{2cm}
\begingroup \centering\sffamily\zihao{2}
\parbox{16\ccwd}
{
\centering
\l__gdut_info_title_tl
}
\par \endgroup
\vspace*{3cm}
\begingroup \centering\zihao{4}\bfseries
\begin{tabular}{c>{\centering\arraybackslash}p{16\ccwd}}
\multirow{4}*{
\begin{CJKfilltwosides*}{0pt}
作者姓名:\\
导师姓名:\\
学科(专业)或领域名称:\\
论文答辩年月:
\end{CJKfilltwosides*}
} & \l__gdut_info_author_tl \\
\cline{2-2}
& \l__gdut_info_supervisor_name_tl
\str_if_eq:NNTF \l__gdut_info_supervisor_three_tl {none}
{ \\ }
{
\quad \l__gdut_info_supervisor_two_name_tl \\
}
\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}%
\endgroup
\restoregeometry
\setlength{\paperwidth}{210mm}
\setlength{\pdfpagewidth}{210mm}
\setlength{\paperheight}{297mm}
\setlength{\pdfpageheight}{297mm}
\newpage
}
\ExplSyntaxOff |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
导致标题离页面边缘过近,没有间距
Beta Was this translation helpful? Give feedback.
All reactions