diff options
author | Karl Berry <karl@freefriends.org> | 2023-03-22 20:26:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-03-22 20:26:29 +0000 |
commit | 889a1d7ee1eeae9971147714b2f02aecd7c73c76 (patch) | |
tree | 2c28fd2503fc0f46777870d064323888ebad86aa /Master/texmf-dist/tex | |
parent | 52ea853d9f8dd4d242e6a8f1c3a694811b614491 (diff) |
hfutexam (22mar23)
git-svn-id: svn://tug.org/texlive/trunk@66646 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls b/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls index a8eb76dae03..1d47cffcb7c 100644 --- a/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls +++ b/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls @@ -7,7 +7,7 @@ % 编译模式: XeLaTeX % 你可以任意修改或再次分发该文件 \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{hfutexam}[2023/03/10 v1.7 HFUTExam document class by Zhang Shenxing] +\ProvidesClass{hfutexam}[2023/03/22 v1.8 HFUTExam document class by Zhang Shenxing] % 文档选项 \newif\ifhfut@ShiJuan\hfut@ShiJuantrue \newif\ifhfut@DaTiZhi\hfut@DaTiZhifalse @@ -46,8 +46,8 @@ \newcommand{\hfutstretch}{1.5} % 下划线内两侧空格长度除以条目之间空格长度 \newcommand{\hfutul}[1]{\uline{\hspace{\stretch{\hfutstretch}}#1\hspace{\stretch{\hfutstretch}}}} \newcommand{\hfutrule}[1]{\rule{#1}{0mm}} -\newcommand{\hfutboxyes}{{\raisebox{-0.5mm}{\LARGE$\checkmark\hspace{-18pt}\square$}}} -\newcommand{\hfutboxno}{{\raisebox{-0.5mm}{\LARGE$\square$}}} +\newcommand{\hfutboxyes}{{\raisebox{-2pt}{\LARGE$\checkmark\hspace{-18pt}\square$}}} +\newcommand{\hfutboxno}{{\raisebox{-2pt}{\LARGE$\square$}}} \newcommand{\XueNian}[2]{\gdef\hfut@XueNian{{\hfutFontTimes #1}~{\hfutFontTimes #2}}} \newcommand{\BiaoTi}[1]{\gdef\hfut@BiaoTi{#1}} \newcommand{\XueQi}[1]{\gdef\hfut@XueQi{#1}} @@ -90,12 +90,13 @@ \newcommand{\hfutFontTitle}{\CJKfamily{hfutFontTitle}\hfutFontTitleEn} \newcommand{\hfutFontHead}{\hfutFontHeadEn\CJKfamily{hfutFontHead}} % 重新设定字体大小 -\renewcommand{\LARGE}{\fontsize{21pt}{25.2pt}} -\renewcommand{\large}{\fontsize{14pt}{21pt}} -\renewcommand{\small}{\fontsize{10.5pt}{12.6pt}} +\renewcommand{\LARGE}{\fontsize{21pt}{25.2pt}\selectfont} +\renewcommand{\large}{\fontsize{14pt}{21pt}\selectfont} +\renewcommand{\small}{\fontsize{10.5pt}{12.6pt}\selectfont} % 缩进 \setlength{\parindent}{0em} \renewcommand{\indent}{\hspace*{2em}} +\newlength{\ltemp} % 页眉页脚 \pagestyle{fancy} \fancyhf{} @@ -132,6 +133,10 @@ 1. 主考教师必须于考试一周前将“试卷A”、“试卷B”经教研室主任审批签字后送教务科印刷。\hspace{1em}% 2. 请命题教师用黑色水笔工整地书写题目或用A4纸横式打印贴在试卷版芯中。 } + \NewDocumentCommand\fillblank{O{35mm} O{5mm} m}{% + \settodepth{\ltemp}{#3}% + \uline{\makebox[#1]{\rule{0pt}{#2}\raisebox{\ltemp}{#3}}}% + } \fi \ifhfut@DaTiZhi % 答题纸页眉页脚 \renewcommand\headrulewidth{0.5pt} @@ -154,13 +159,17 @@ \hfill 成绩\hfutul{\hfutrule{6em}}% } \fancyfoot[C]{\small\vspace{0.5\baselineskip}第~\hfutpage~页~~共~\hfutlastpage~页} + \NewDocumentCommand\fillblank{O{35mm} O{9mm} m}{% + \settodepth{\ltemp}{#3}% + \uline{\makebox[#1]{\rule{0pt}{#2}\raisebox{\ltemp}{#3}}}% + } \fi \ifhfut@Simple % 简单模式页眉页脚 \RequirePackage{hyperref} \renewcommand\headrulewidth{0pt} \renewcommand\footrulewidth{0pt} \renewcommand{\maketitle}{% - \pdfbookmark{\hfut@BiaoTi}{hfutBiaoTi\thepage} + \addcontentsline{toc}{section}{\hfut@BiaoTi} \begin{center}\bfseries \makebox[\linewidth][s]{\LARGE\hfutFontTitle~\hfut@BiaoTi~} @@ -173,6 +182,10 @@ \end{center} } \fancyfoot[C]{\small{}第~\hfutpage~页~~共~\hfutlastpage~页} + \NewDocumentCommand\fillblank{O{35mm} O{5mm} m}{% + \settodepth{\ltemp}{#3}% + \uline{\makebox[#1]{\rule{0pt}{#2}\raisebox{\ltemp}{#3}}}% + } \fi % 题号加粗 \renewcommand{\labelenumi}{{\bfseries \theenumi.}} @@ -199,15 +212,10 @@ {\leavevmode\xleaders\hbox{\rule[4pt]{8pt}{0.5pt}\,}\hfill\null}% } % 填空题 -\newlength{\ltemp} \newlength{\lxxmax} \newlength{\lquar} \newlength{\lhalf} \newlength{\lfull} -\NewDocumentCommand\fillblank{O{35mm} O{5mm} m}{% - \settodepth{\ltemp}{#3}% - \uline{\makebox[#1]{\rule{0pt}{#2}\raisebox{\ltemp}{#3}}}% -} % 选择题, 根据选项内容长度自动排版 \newcounter{lxxtype} \NewDocumentCommand\xx{O{0} m m m m}{% |