From df76cbaa8cd8c2b725a635d469c6ff38f1e50401 Mon Sep 17 00:00:00 2001 From: Feng Kaiyu Date: Tue, 7 Jun 2022 20:07:40 +0800 Subject: [PATCH] fix(PT): cover fix #144 --- templates/paper-translation/main.tex | 6 ++++-- templates/paper-translation/misc/0_cover.tex | 15 ++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/templates/paper-translation/main.tex b/templates/paper-translation/main.tex index 619c3895..9909391c 100644 --- a/templates/paper-translation/main.tex +++ b/templates/paper-translation/main.tex @@ -29,7 +29,7 @@ % 从原有主题继承自定义主题 \fancypagestyle{BIThesisCustom}[BIThesis]{ % 定义页眉、页码 - \fancyhead[C]{\zihao{4}\ziju{0.08}\songti{北京理工大学本科生毕业设计(论文)外文翻译覆盖}} + \fancyhead[C]{\zihao{4}\ziju{0.08}\songti{北京理工大学本科生毕业设计(论文)外文翻译}} } % 设置章节格式 \ctexset{chapter={ @@ -52,8 +52,10 @@ \addbibresource{misc/ref.bib} % 在这里填写你的外文翻译中英文题目 -\newcommand{\paperTransOriginTitle}{\strut{}填写你的外文翻译原英文题目\\文本超过一行请换行} +\newcommand{\paperTransOriginTitle}{填写你的外文翻译原英文题目} +\newcommand{\paperTransOriginTitleExtra}{文本超过一行请换行} \newcommand{\paperTransTitle}{填写你的外文翻译中文题目} +% \newcommand{\paperTransTitleExtra}{文本超过一行请换行} % 在这里填写你的论文中英文题目 \newcommand{\thesisTitle}{北京理工大学本科生毕业设计(论文)题目} diff --git a/templates/paper-translation/misc/0_cover.tex b/templates/paper-translation/misc/0_cover.tex index 360ee9a4..5e06d889 100644 --- a/templates/paper-translation/misc/0_cover.tex +++ b/templates/paper-translation/misc/0_cover.tex @@ -45,21 +45,26 @@ \zihao{2}\textbf{\songti{本科生毕业设计(论文)外文翻译}} - \vspace{7mm} + \vspace{8mm} { \flushleft \begin{spacing}{1.8} - \hspace{7mm}\songti\zihao{-3}\selectfont{{\zihao{4}\textbf{\parbox[b]{5em}{\flushright 外文原文题\\目:\hspace{1em}}}}\dunderline[-10pt]{1pt}{\makebox[118mm][c]{\strut{}\shortstack{\paperTransOriginTitle}}}} - - \hspace{7mm}\songti\zihao{-3}\selectfont{{\zihao{4}\textbf{\parbox[b]{5em}{\flushright 中文翻译题\\目:\hspace{1em}}}}\dunderline[-10pt]{1pt}{\makebox[118mm][c]{\strut{}\shortstack{\paperTransTitle}}}} + \songti\zihao{-3}\selectfont{{\zihao{4}\textbf{\parbox[b]{7em}{\flushright 外文原文题目:\hspace{1em}}}}\dunderline[-10pt]{1pt}{\makebox[118mm][c]{\strut{}\shortstack{\paperTransOriginTitle}}}} + \ifdefined\paperTransOriginTitleExtra + \songti\zihao{-3}\selectfont{{\zihao{4}\textbf{\parbox[b]{7em}{\flushright \hspace{1em}}}}\dunderline[-10pt]{1pt}{\makebox[118mm][c]{\strut{}\shortstack{\paperTransOriginTitleExtra}}}} + \fi + \songti\zihao{-3}\selectfont{{\zihao{4}\textbf{\parbox[b]{7em}{\flushright 中文翻译题目:\hspace{1em}}}}\dunderline[-10pt]{1pt}{\makebox[118mm][c]{\strut{}\shortstack{\paperTransTitle}}}} + \ifdefined\paperTransTitleExtra + \songti\zihao{-3}\selectfont{{\zihao{4}\textbf{\parbox[b]{7em}{\flushright \hspace{1em}}}}\dunderline[-10pt]{1pt}{\makebox[118mm][c]{\strut{}\shortstack{\paperTransTitleExtra}}}} + \fi \end{spacing} } - \vspace{12mm} + \vspace{14mm} \zihao{2}\textbf{\xihei\thesisTitle}