summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-03-22 20:26:29 +0000
committerKarl Berry <karl@freefriends.org>2023-03-22 20:26:29 +0000
commit889a1d7ee1eeae9971147714b2f02aecd7c73c76 (patch)
tree2c28fd2503fc0f46777870d064323888ebad86aa
parent52ea853d9f8dd4d242e6a8f1c3a694811b614491 (diff)
hfutexam (22mar23)
git-svn-id: svn://tug.org/texlive/trunk@66646 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md5
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdfbin205967 -> 217180 bytes
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex82
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdfbin94308 -> 94295 bytes
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex4
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdfbin71061 -> 72652 bytes
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex7
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdfbin95264 -> 95069 bytes
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.tex18
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdfbin112375 -> 112298 bytes
-rw-r--r--Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.tex9
-rw-r--r--Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls32
12 files changed, 84 insertions, 73 deletions
diff --git a/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md b/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md
index 1e2dd6ee648..08fa6e7dafe 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md
@@ -1,5 +1,10 @@
# 更新日志
+## [1.8] - 2023/03/22
++ 修复了正文设置字体大小会导致中英文字体大小不一致的问题。
++ 将简易模式的各个部分标题添加至目录中。
++ 调整了 `\fillblank` 命令在不同模式下的默认高度.
+
## [1.7] - 2023/03/10
+ 精简了文档类的代码。
+ 将伪粗体权重统一设置为3以更接近Word的加粗效果。
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf
index 69731d6fbce..4424f31160a 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex b/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex
index 0579704f5a9..a65dc0a794e 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex
@@ -15,7 +15,6 @@
basicstyle=\couriernew\color{blue},
rulecolor=\color{black},
texcsstyle=*\color{red},
- mathescape,
breaklines=true,
commentstyle=\color{green!70!black},
stringstyle=\color{green!50!blue},
@@ -52,33 +51,34 @@
\MingTiJiaoShi{集体}
\XiZhuRenQianMing{}
+\indent
+本模板 (2023/03/22 v1.8) 旨在为将合肥工业大学试卷的 word 格式转为\LaTeX{}格式.
+\textbf{\color{red}使用前请注意, 如果你使用的是CTeX套装, 请彻底删除并安装MikTeX发行版, 否则编译会出错.}
+如果需要的话, 你可以单独安装WinEdt编辑器.
\tigan{一、模板选项}
\indent
-本模板 (2023/03/10 v1.7) 旨在为将合肥工业大学试卷的 word 格式转为\LaTeX{}格式.
-使用时, 只需在文档开头写上
+只需在文档开头写上
\begin{lstlisting}
\documentclass[shijuan]{hfutexam}
\end{lstlisting}
即可使用.
需要使用~{\color{blue}{\lstinline|UTF-8|}} 编码, 并使用 \lstinline|XeLaTeX| 至少编译两次, 以正确生成页码.
-
-\indent
-可使用的选项为: \lstinline|shijuan| (试卷), \lstinline|datizhi| (答题纸), \lstinline|cankaodaan| (参考答案) 和 \lstinline|simple| (简易模式). 如果留空则为默认值 \lstinline|shijuan| (试卷).
+可使用的选项为: \lstinline|shijuan| (试卷, 为缺省值), \lstinline|datizhi| (答题纸和参考答案) 和 \lstinline|simple| (简易模式).
\begin{enumerate}
-\item 试卷/答题纸/参考答案三个选项下页面会设置为 A3 大小的双栏模式, 相应的标题、页眉和页脚内容有所不同.
-\item 简易模式选项下页面会设置为 A4 大小, 页眉页脚也较为简单. 此时需要使用命令 \lstinline|\maketitle| 来生成标题.
-一般用于保存(多张)试卷的内容,或者便于打印使用.
-\item 标题默认使用方正字体, 因此请在使用前先安装字体: {\bfseries\hfutFontTitle 方正小标宋}和{\bfseries\hfutFontHead 方正仿宋}(右键选择为所有用户安装), 否则请使用选项 \lstinline|nofangzheng| (采用新宋体和仿宋代替).
+\item 试卷、答题纸和参考答案页面为 A3 大小双栏模式, 并自动生成相应的标题和页眉页脚.
+\item 简易模式页面为 A4 大小. 此时需要使用命令 \lstinline|\maketitle| 来生成标题.
+该模式一般用于保存(多张)试卷的内容,且便于打印以分发试卷和参考答案.
+\item 标题为方正字体, 请在使用前自行搜索并安装字体: {\bfseries\hfutFontTitle 方正小标宋}和{\bfseries\hfutFontHead 方正仿宋}(右键选择为所有用户安装).
+若不愿使用方正字体可使用选项 \lstinline|nofangzheng| 以采用新宋体和仿宋代替.
+\item 本模板\textbf{不支持使用字体大小选项}, 可在正文中使用诸如 \lstinline|\large| 等命令来调整.
\end{enumerate}
\tigan{二、试卷信息}
\indent
-通过下述命令来设置试卷信息.
-
-\textit{\color{blue}{试卷信息示例:}}
+下述命令用于设置试卷信息:
\begin{lstlisting}
\BiaoTi{合肥工业大学试卷(A)} % 试卷标题, 一般为: 合肥工业大学试卷(A)或(B)
\XueNian{2021}{2022} % 学年起始和结束, 一般为相差 1 的 4 位数字
@@ -99,8 +99,9 @@
\tigan{三、解答题}
\begin{enumerate}
-\item \lstinline|\hfutstretch{1.5}| 用于设置标题中\uline{带下划线文字两侧空格}与\uline{各分项之间空格}的宽度比, 默认为\lstinline|1.5|.
-\item \lstinline|\tigan{三、解答题}| 用于生成题干, 为14pt黑体. 小题用~{\color{blue}\lstinline|enumerate|} 环境来生成.
+\item \lstinline|\renewcommand{\hfutstretch}{1.5}| 用于重新设置标题中\underline{带下划线文字两侧空格}与\underline{各分项之间空格}的宽度比, 默认为\lstinline|1.5|. \textbf{一般无需修改该值}.
+\item \lstinline|\tigan{三、解答题}| 用于生成题干, 为14pt黑体. 小题可用~{\color{blue}\lstinline|enumerate|} 环境来生成.
+如觉格式不妥也可不用该命令而使用\lstinline|\textbf{}|, 或任意自行设置.
\item \hspace{-8mm}\scorebox\hspace{8mm}\lstinline|\scorebox| 用于生成打分框, 请放置在答题纸一行的开头使用.
\vspace{-2mm}
\item \lstinline|\notice| 用于生成答题纸提示信息, 请放置在答题纸的正文开始处.
@@ -110,58 +111,59 @@
\tigan{填空题相关}
\begin{enumerate}[resume]
-\item \lstinline|\fillblank[长度][最低高度]{内容}| 用于生成填空题的空白, 内容可以为空. 其中长度默认值是~{\color{blue}{\lstinline|35mm|}}, 最低高度默认值是~{\color{blue}{\lstinline|5mm|}}.
+\item \lstinline|\fillblank[长度][最低高度]{内容}| 用于生成填空题的空白, 内容可以为空. 其中长度默认值是~{\color{blue}{\lstinline|35mm|}}, 最低高度默认值是~{\color{blue}{\lstinline|5mm|}} (答题纸和参考答案则为~{\color{blue}{\lstinline|9mm|}}).
\end{enumerate}
\textit{\color{blue}{填空题示例:}}
\begin{lstlisting}
-\textbf{请将你的答案对应填在横线上:}\\[5mm]
+\textbf{请将你的答案对应填在横线上:}\\
\textbf{1.} \fillblank{},
\textbf{2.} \fillblank[5cm]{},
-\textbf{3.} \fillblank{}.
+\textbf{3.} \fillblank{$\dfrac\pi2$}.
\end{lstlisting}
\begin{tcolorbox}
-\textbf{请将你的答案对应填在横线上:}\\[5mm]
+\textbf{请将你的答案对应填在横线上:}\\
\textbf{1.} \fillblank{},
-\textbf{2.} \fillblank[5cm]{},
-\textbf{3.} \fillblank{}.
+\textbf{2.} \fillblank[5cm][9mm]{},
+\textbf{3.} \fillblank{$\dfrac\pi2$}.
\end{tcolorbox}
\tigan{选择题相关}
\begin{enumerate}[resume]
-\item \lstinline|\xx{选项}{选项}{选项}{选项}| 用于生成选择题的选项, 直接在选择题题干后使用即可. 该命令会自动根据选项长度设置行数. 只支持四个选项, 选项会自动带上 ABCD.
-\item 该命令具有可选参数: \lstinline|\xx[每行显示的选项数]{选项}{选项}{选项}{选项}|, 每行只能显示 1, 2 或 4 个选项.
+\item \lstinline|\xx[可选参数]{选项}{选项}{选项}{选项}| 用于生成选择题的选项, 直接在选择题题干后使用即可. 只支持四个选项, 选项会自动带上 ABCD.
+该命令会自动根据选项长度设置行数.
+可选参数用于手动设置每行显示的选项个数, 只能是 1, 2 或 4.
\item \lstinline|\xuanzeti{题号}{答案}| 用于生成答题纸或参考答案中选择题的答题区域.
\end{enumerate}
\textit{\color{blue}{选择题示例:}}
\begin{lstlisting}
\begin{enumerate}
-\item 柳宗元的《江雪》包含下面哪一句? (~~~~)
-\xx[2]{一山鸟飞绝}{百山鸟飞绝}{千山鸟飞绝}{亿山鸟飞绝}
-\item 张志和的《渔歌子》是(~~~~).
-\xx{东塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-{南塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-{西塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-{北塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+ \item 柳宗元的《江雪》包含下面哪一句? (~~~~)
+ \xx[2]{一山鸟飞绝}{百山鸟飞绝}{千山鸟飞绝}{亿山鸟飞绝}
+ \item 张志和的《渔歌子》是(~~~~).
+ \xx{东塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+ {南塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+ {西塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+ {北塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
\end{enumerate}
\end{lstlisting}
\begin{tcolorbox}
\begin{enumerate}
-\item 柳宗元的《江雪》包含下面哪一句? (~~~~).
-\xx[2]{一山鸟飞绝}{百山鸟飞绝}{千山鸟飞绝}{亿山鸟飞绝}
-\item 张志和的《渔歌子》是(~~~~).
-\xx{东塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-{南塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-{西塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-{北塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+ \item 柳宗元的《江雪》包含下面哪一句? (~~~~)
+ \xx[2]{一山鸟飞绝}{百山鸟飞绝}{千山鸟飞绝}{亿山鸟飞绝}
+ \item 张志和的《渔歌子》是(~~~~).
+ \xx{东塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+ {南塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+ {西塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+ {北塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
\end{enumerate}
\end{tcolorbox}
%\newpage
-\textit{\color{blue}{选择题示例:}}
+% \textit{\color{blue}{选择题示例:}}
\begin{lstlisting}
\textbf{请将你所选择的字母 A, B, C, D 之一对应填在下列表格里:}
@@ -184,6 +186,8 @@
\end{enumerate}
\textit{\color{blue}{得分点示例:}}
\begin{lstlisting}
+所以有 $f(a)=f(b)$.\score2\\
+根据罗尔定理, 命题得证.\score1
\[\int e^x\diff x=e^x+C. \Score{(4分, 缺少常数得2分)}\]
\begin{align*}
\int\sin x\diff x&=-\cos x+C, \Score{(4分, 缺少常数得2分)}\\
@@ -192,6 +196,8 @@
\end{lstlisting}
\begin{tcolorbox}
+所以有 $f(a)=f(b)$.\score2\\
+根据罗尔定理, 命题得证.\score1
\[\int e^x\diff x=e^x+C. \Score{(4分, 缺少常数得2分)}\]
\begin{align*}
\int\sin x\diff x&=-\cos x+C, \Score{(4分, 缺少常数得2分)}\\
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf
index 5be4a7f7c1d..e4810e0a034 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex
index c4e8f069b9d..269a4d437a1 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex
@@ -1,6 +1,6 @@
\documentclass[cankaodaan]{hfutexam}
-\usepackage{extarrows}
-\newcommand{\diff}{\,\mathrm{d}}
+\RequirePackage{extarrows} % 用于等号上面加文字
+\newcommand{\diff}{\,\mathrm{d}} % 定义微分符号
\begin{document}
\BiaoTi{合肥工业大学试卷参考答案(A)}
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf
index 28f58baf36c..80ebc5a105b 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex
index 31e1b3576fb..838dc4dad8e 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex
@@ -1,5 +1,4 @@
\documentclass[datizhi]{hfutexam}
-\newcommand{\diff}{\,\mathrm{d}}
\begin{document}
\BiaoTi{合肥工业大学考试专用答题纸(A)}
@@ -21,10 +20,10 @@
\scorebox
\tigan{一、填空题(每小题3分,共18分)}
-\textbf{请将你的答案对应填在横线上:}\\[0.5cm]
+\textbf{请将你的答案对应填在横线上:}\\
\textbf{1.} \fillblank{},
\textbf{2.} \fillblank{},
-\textbf{3.} \fillblank{}, \\[0.5cm]
+\textbf{3.} \fillblank{}, \\
\textbf{4.} \fillblank{},
\textbf{5.} \fillblank{},
\textbf{6.} \fillblank{}.
@@ -53,6 +52,8 @@
\textbf{2. (8分)【解】}
\newpage
+% 换栏后需要空白时, 需要先输入一个空格再加\vspace
+\ \vspace{3cm}
\scorebox
\textbf{3. (8分)【解】}
\vspace{7cm}
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf
index 35222d2cab5..0eb92c7718b 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.tex b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.tex
index 9be69f2a92a..b362404fd34 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.tex
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.tex
@@ -1,6 +1,5 @@
\documentclass{hfutexam}
-\newcommand{\diff}{\,\mathrm{d}}
-\usetikzlibrary{arrows.meta}
+\newcommand{\diff}{\,\mathrm{d}} % 定义微分符号
\begin{document}
\BiaoTi{合肥工业大学试卷(A)}
@@ -26,7 +25,7 @@
\item 如果函数 $f(x)$ 的定义域是 $(0,+\infty)$, 且 $x=0$ 是曲线 $y=f(x)$ 的垂直渐近线, 那么 $\displaystyle\lim_{x\to0^+}\frac1{f(x)}=$\fillblank{}.
\end{enumerate}
-\tigan{二、选择题(每题3分,共18分)}
+\tigan{\normalsize 二、选择题(每题3分,共18分)}
\begin{enumerate}
\item 当 $x\to+\infty$ 时, $\dfrac1x$ 和(~~~~)是等价无穷小.
% 自动根据选项长度设置行数
@@ -35,18 +34,7 @@
\xx{$0$}{$1$}{$2$}{$3$}
\item 设 $f(x)=\arctan\dfrac1{x(x-1)^2}$, 则 $x=0$ 是 $f(x)$ 的(~~~~).
\xx{可去间断点}{跳跃间断点}{第二类间断点}{连续点}
-\item
-\begin{tikzpicture}[overlay,xshift=130mm,yshift=-35mm]
- \draw[-Stealth,thick](-3,0)--(3,0);
- \draw[-Stealth,thick](0,-1)--(0,3);
- \draw[very thick,smooth,domain=-55:55] plot ({\x/50-1.3}, {tan(\x)*tan(\x)});
- \draw[very thick,smooth,domain=0.15:2] plot ({\x}, {-ln(\x)});
- \draw
- (-0.3,-0.3) node {$O$}
- (2.8,-0.3) node {$x$}
- (-0.3,2.8) node {$y$};
-\end{tikzpicture}
-设 $f(x)$ 是定义在 $(-\infty,+\infty)$ 上的连续函数, 且 $f'(x)$ 的图像如下图所示, 则 $f(x)$ 有(~~~~).
+\item 设 $f(x)$ 是定义在 $(-\infty,+\infty)$ 上的连续函数, 且 $f'(x)$ 的图像如下图所示, 则 $f(x)$ 有(~~~~).
% 手动设置为每行1个
\xx[1]{一个极大值点,没有极小值点}{没有极大值点,一个极小值点}{一个极大值点和一个极小值点}{一个极大值点和两个极小值点}
\newpage
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf
index 157e0a4c4ff..cf84fa6515f 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.tex b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.tex
index 54175ece65f..2dc597ffe6f 100644
--- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.tex
+++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.tex
@@ -1,9 +1,11 @@
\documentclass[simple]{hfutexam}
-\newcommand{\diff}{\,\mathrm{d}}
-\usetikzlibrary{arrows.meta, overlay-beamer-styles}
-\RequirePackage{extarrows}
+\usetikzlibrary{arrows.meta}
+\RequirePackage{extarrows} % 用于等号上面加文字
+\newcommand{\diff}{\,\mathrm{d}} % 定义微分符号
\begin{document}
+
+% \tableofcontents
\BiaoTi{合肥工业大学期中试卷}
\XueNian{2021}{2022}
\XueQi{二}
@@ -17,6 +19,7 @@
\MingTiJiaoShi{集体}
\maketitle
+
\begin{enumerate}
\item \textbf{(10分)} 求函数 $\displaystyle f(x)=\ln\frac1{\sqrt{x^2-1}}+\arctan\frac1x$ 的定义域.
\item \textbf{(5分)} 求函数 $\displaystyle y=\begin{cases}
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}{%