summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/buctthesis/buctcover.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-10-07 20:33:22 +0000
committerKarl Berry <karl@freefriends.org>2021-10-07 20:33:22 +0000
commitc764cdb0602ea9a4e41eea633127779c52b46290 (patch)
tree2c5a82e3f264601a4016cd3de40d883fce45b2f6 /Master/texmf-dist/tex/latex/buctthesis/buctcover.cls
parentbb92e4160e16396a9c75b0ee8a5422f02ce64163 (diff)
buctthesis (7oct21)
git-svn-id: svn://tug.org/texlive/trunk@60708 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/buctthesis/buctcover.cls')
-rw-r--r--Master/texmf-dist/tex/latex/buctthesis/buctcover.cls21
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/buctthesis/buctcover.cls b/Master/texmf-dist/tex/latex/buctthesis/buctcover.cls
index 64a99dac6e0..e373aa444b2 100644
--- a/Master/texmf-dist/tex/latex/buctthesis/buctcover.cls
+++ b/Master/texmf-dist/tex/latex/buctthesis/buctcover.cls
@@ -26,7 +26,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesClass{buctcover}[2020/03/20 Cover Maker for BUCTthesis]
+\ProvidesClass{buctcover}[2021/04/24 Cover Maker for BUCTthesis]
\RequirePackage{ifxetex}
\RequireXeTeX
\RequirePackage{kvoptions}
@@ -67,14 +67,18 @@
top = 2.1cm, bottom = 2.2cm, left = 2cm, right = 2cm,
headheight = 0cm, footskip = 0cm
]{geometry}
-\RequirePackage{array,graphicx,hyperref}
+\RequirePackage{array,graphicx,calc,hyperref}
\pagestyle{empty}
\xeCJKsetup{EmboldenFactor=2.3}
+\setCJKmainfont{SimSun}[AutoFakeBold]
\setCJKsansfont{SimHei}[AutoFakeBold]
\newCJKfontfamily[xingkai]\xingkai{STXingkai}
\newCJKfontfamily[zhkai] \zhkai {KaiTi} [AutoFakeBold]
\newCJKfontfamily[xbsong] \xbsong {FZXiaoBiaoSong-B05S}
\newCJKfontfamily[dbsong] \dbsong {FZDaBiaoSong-B06S}
+\newcommand\buct@title@ul[1]{%
+ \CJKunderline{\makebox[\widthof{\buct@titleA\enspace}][l]{#1}}
+}
\newcommand\buct@format@date[1]{%
\edef\buct@@date{\buct@date}%
\def\buct@@process@date##1-##2-##3\@nil{%
@@ -121,15 +125,14 @@
\begin{tabular}{
>{\begin{CJKfilltwosides}[b]{4\ccwd}\sffamily\bfseries}r%
<{\end{CJKfilltwosides}}%
- @{}l%
- @{}>{\zihao{3}\bfseries}l%
+ @{}>{\enspace\zihao{3}\bfseries}l%
<{\vspace{.2em}}%
}
- 题目 &: & \CJKunderline{\makebox[13em][l]{\buct@titleA}}\\
- &\phantom{:} & \CJKunderline{\makebox[13em][l]{\buct@titleB}}\\
- 专业 &: & \CJKunderline{\makebox[13em][l]{\buct@major}}\\
- 研究生 &: & \CJKunderline{\makebox[13em][l]{\buct@author}}\\
- 指导教师 &: & \CJKunderline{\makebox[13em][l]{\buct@supervisor}}\\
+ 题目 & \buct@title@ul{\buct@titleA}\\
+ &\buct@title@ul{\buct@titleB}\\
+ 专业 & \buct@title@ul{\zihao{4}\buct@major}\\
+ 研究生 & \buct@title@ul{\zihao{4}\buct@author}\\
+ 指导教师 & \buct@title@ul{\zihao{4}\buct@supervisor}\\
\end{tabular}
\end{center}
\vfill{%