texlive[75068] Master/texmf-dist: hfutexam (30apr25)

commits+karl at tug.org commits+karl at tug.org
Wed Apr 30 21:32:22 CEST 2025


Revision: 75068
          https://tug.org/svn/texlive?view=revision&revision=75068
Author:   karl
Date:     2025-04-30 21:32:22 +0200 (Wed, 30 Apr 2025)
Log Message:
-----------
hfutexam (30apr25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf
    trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex
    trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex
    trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf
    trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex
    trunk/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls

Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md	2025-04-30 19:32:13 UTC (rev 75067)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md	2025-04-30 19:32:22 UTC (rev 75068)
@@ -1,5 +1,9 @@
 # 更新日志
 
+## [1.10] - 2025/04/30
++ 现在允许使用任意的课程性质和考试形式。
++ 添加选项 `nosign` 使得打分框不显示阅卷人。
+
 ## [1.9] - 2023/11/13
 + 修复了简易模式的标题的超链接位置不正确的问题。
 

Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex	2025-04-30 19:32:13 UTC (rev 75067)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex	2025-04-30 19:32:22 UTC (rev 75068)
@@ -52,10 +52,16 @@
 \XiZhuRenQianMing{}
 
 \indent
-本模板 (2023/11/13 v1.9) 旨在为将合肥工业大学试卷的 word 格式转为\LaTeX{}格式.
-\textbf{\color{red}使用前请注意, 如果你使用的是CTeX套装, 请彻底删除并安装MikTeX发行版, 否则编译会出错.}
+本模板 (2025/04/30 v1.10) 旨在为将合肥工业大学试卷的 word 格式转为\LaTeX{}格式.
+\textbf{\color{red}使用前请注意, 如果你使用的是CTeX(<3.0)套装, 请彻底删除并安装MikTeX或TeX Live发行版, 否则编译会出错.}
 如果需要的话, 你可以单独安装WinEdt编辑器.
 
+\bigskip
+\textbf{如有疑问或建议, 欢迎联系我: {\color{red}\href{mailto:zhangshenxing at hfut.edu.cn}{zhangshenxing at hfut.edu.cn}} 或 {\color{red}{QQ362037052}}.}
+
+\textbf{CTAN: {\color{red}\url{https://www.ctan.org/pkg/hfutexam}}}
+
+\bigskip
 \tigan{一、模板选项}
 
 \indent
@@ -67,39 +73,47 @@
 需要使用~{\color{blue}{\lstinline|UTF-8|}} 编码, 并使用 \lstinline|XeLaTeX| 至少编译两次, 以正确生成页码.
 可使用的选项为: \lstinline|shijuan| (试卷, 为缺省值), \lstinline|datizhi| (答题纸和参考答案) 和 \lstinline|simple| (简易模式).
 \begin{enumerate}
+\item 标题为方正字体, 请在使用前自行搜索并安装字体: {\bfseries\hfutFontTitle 方正小标宋}和{\bfseries\hfutFontHead 方正仿宋}(右键选择为所有用户安装).
+若不愿使用方正字体可使用选项 \lstinline|nofangzheng| 以采用新宋体和仿宋代替.
 \item 试卷、答题纸和参考答案页面为 A3 大小双栏模式, 并自动生成相应的标题和页眉页脚.
 \item 简易模式页面为 A4 大小. 此时需要使用命令 \lstinline|\maketitle| 来生成标题.
-该模式一般用于保存(多张)试卷的内容,且便于打印以分发试卷和参考答案.
-\item 标题为方正字体, 请在使用前自行搜索并安装字体: {\bfseries\hfutFontTitle 方正小标宋}和{\bfseries\hfutFontHead 方正仿宋}(右键选择为所有用户安装).
-若不愿使用方正字体可使用选项 \lstinline|nofangzheng| 以采用新宋体和仿宋代替.
+该模式通常用于保存(多张)试卷的内容,且便于打印以分发试卷和参考答案.
+\item \lstinline|nosign| 选项可以令打分框不显示阅卷人.
 \item 本模板\textbf{不支持使用字体大小选项}, 可在正文中使用诸如 \lstinline|\large| 等命令来调整.
 \end{enumerate}
 
+\newpage
 \tigan{二、试卷信息}
 
 \indent
 下述命令用于设置试卷信息:
 \begin{lstlisting}
-\BiaoTi{合肥工业大学试卷(A)} % 试卷标题, 一般为: 合肥工业大学试卷(A)或(B)
-\XueNian{2021}{2022}                 % 学年起始和结束, 一般为相差 1 的 4 位数字
-\XueQi{二}                           % 学期, 一般为: 一, 二
+\BiaoTi{合肥工业大学试卷(A)} % 试卷标题, 通常为合肥工业大学试卷(A)或(B)
+\XueNian{2021}{2022}                 % 学年起始和结束, 通常为相差 1 的 4 位数字
+\XueQi{二}                           % 学期, 通常为一或二
 \KeChengDaiMa{034Y01}                % 课程代码
 \KeChengMingCheng{数学(下)} % 课程名称
 \XueFen{5}                            % 学分
-\KeChengXingZhi{必修}	             	% 课程性质, 只能为: 必修, 选修, 限修
-\KaoShiXingShi{闭卷}	                 	% 考试形式, 只能为: 开卷, 闭卷
-\ZhuanYeBanJi{少数民族预科班} 		% 专业班级, 一般不需要填写
+\KeChengXingZhi{必修}                 % 课程性质, 通常为: 必修, 选修, 限修.
+\KaoShiXingShi{闭卷}                  % 考试形式, 通常为: 开卷, 闭卷
+\ZhuanYeBanJi{少数民族预科班}          % 专业班级, 通常不需要填写
 \KaoShiRiQi{2022年6月18日8:00-10:00} % 考试日期
-\MingTiJiaoShi{集体}                       % 命题教师
+\MingTiJiaoShi{集体}                   % 命题教师
 \XiZhuRenQianMing[5em]{dengbing.png}  % 系主任签名的对应图片
 \end{lstlisting}
 
+\indent
+课程性质若设置为必修, 选修, 限修之一, 则会将这三个都显示并附加方框, 并将设置的选项方框勾选中.
+若设置为其它内容, 则会直接显示设置的内容, 而不显示必修, 选修, 限修.
+考试形式情况类似.
+
 \indent 若不设置系主任签名或设置为空则不显示, 它的可选参数表示该图片的显示宽度, 默认为 \lstinline|5em|.
 其它选项默认均为空, 可根据需要只填部分内容.
 
+\newpage
 \tigan{三、解答题}
 \begin{enumerate}
-\item \lstinline|\renewcommand{\hfutstretch}{1.5}| 用于重新设置标题中\underline{带下划线文字两侧空格}与\underline{各分项之间空格}的宽度比, 默认为\lstinline|1.5|. \textbf{一般无需修改该值}.
+\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| 用于生成打分框, 请放置在答题纸一行的开头使用.
@@ -106,7 +120,7 @@
 \vspace{-2mm}
 \item \lstinline|\notice| 用于生成答题纸提示信息, 请放置在答题纸的正文开始处.
 \item 答题纸中可能需要设置一定高度的空白, 使用命令 \lstinline|\hspace{5cm}| 之类的命令即可. 也可以使用 \lstinline|\newpage| 换到新的一页(或分栏).
-\item 文档默认无缩进, 可在需要处使用命令 \lstinline|\indent| 生成.
+\item 文档默认无缩进, 可在需要处使用命令 \lstinline|\indent| 得到缩进.
 \end{enumerate}
 
 \tigan{填空题相关}
@@ -129,6 +143,7 @@
 \textbf{3.} \fillblank{$\dfrac\pi2$}.
 \end{tcolorbox}
 
+\newpage
 \tigan{选择题相关}
 \begin{enumerate}[resume]
 \item \lstinline|\xx[可选参数]{选项}{选项}{选项}{选项}| 用于生成选择题的选项, 直接在选择题题干后使用即可. 只支持四个选项, 选项会自动带上 ABCD.
@@ -144,9 +159,9 @@
 		\xx[2]{一山鸟飞绝}{百山鸟飞绝}{千山鸟飞绝}{亿山鸟飞绝}
 	\item 张志和的《渔歌子》是(~~~~).
 		\xx{东塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-		{南塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-		{西塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-		{北塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+		{南塞山前青鹭飞,桃花流水草鱼肥。绿箬笠,紫蓑衣,斜风细雨不须归。}
+		{西塞山前绿鹭飞,桃花流水鲢鱼肥。紫箬笠,白蓑衣,斜风细雨不须归。}
+		{北塞山前紫鹭飞,桃花流水鳙鱼肥。白箬笠,青蓑衣,斜风细雨不须归。}
 \end{enumerate}
 \end{lstlisting}
 
@@ -156,14 +171,14 @@
 		\xx[2]{一山鸟飞绝}{百山鸟飞绝}{千山鸟飞绝}{亿山鸟飞绝}
 	\item 张志和的《渔歌子》是(~~~~).
 		\xx{东塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-		{南塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-		{西塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
-		{北塞山前白鹭飞,桃花流水鳜鱼肥。青箬笠,绿蓑衣,斜风细雨不须归。}
+		{南塞山前青鹭飞,桃花流水草鱼肥。绿箬笠,紫蓑衣,斜风细雨不须归。}
+		{西塞山前绿鹭飞,桃花流水鲢鱼肥。紫箬笠,白蓑衣,斜风细雨不须归。}
+		{北塞山前紫鹭飞,桃花流水鳙鱼肥。白箬笠,青蓑衣,斜风细雨不须归。}
 \end{enumerate}
 \end{tcolorbox}
 
-%\newpage
-% \textit{\color{blue}{选择题示例:}}
+\newpage
+\textit{\color{blue}{选择题示例:}}
 \begin{lstlisting}
 \textbf{请将你所选择的字母 A, B, C, D 之一对应填在下列表格里:}
 
@@ -178,11 +193,13 @@
 \xuanzeti{1}{}\xuanzeti{2}{}\xuanzeti{3}{}\xuanzeti{4}{}
 \end{tcolorbox}
 
+\newpage
 \tigan{得分点相关}
 \begin{enumerate}[resume]
 \item \lstinline|\score{数值}| 用于在参考答案一行结尾处生成得分点的虚线.\score2
 \item \lstinline|\Score{(2分, 缺少常数得1分)}| 用于自定义得分说明.\Score{(2分, 缺少常数得1分)}
 \item 在公式中也可使用, 但是需要编译两次才会正常计算出虚线长度.
+\item 通过重定义这两个命令为空, 可编译得到不含得分点的参考答案.
 \end{enumerate}
 \textit{\color{blue}{得分点示例:}}
 \begin{lstlisting}
@@ -205,10 +222,6 @@
 \end{align*}
 \end{tcolorbox}
 
-\textbf{如有疑问或建议, 欢迎联系我: {\color{red}\href{mailto:zhangshenxing at hfut.edu.cn}{zhangshenxing at hfut.edu.cn}} 或 {\color{red}{QQ362037052}}.}
-
-\textbf{CTAN: {\color{red}\url{https://www.ctan.org/pkg/hfutexam}}}
-
 \newpage
 \tigan{一、填空题(每题3分,共18分)}
 \begin{enumerate}

Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex	2025-04-30 19:32:13 UTC (rev 75067)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex	2025-04-30 19:32:22 UTC (rev 75068)
@@ -1,6 +1,8 @@
 \documentclass[cankaodaan]{hfutexam}
 \RequirePackage{extarrows} % 用于等号上面加文字
 \newcommand{\diff}{\,\mathrm{d}} % 定义微分符号
+% \renewcommand{\score}[1]{}
+% \renewcommand{\Score}[1]{}
 
 \begin{document}
 \BiaoTi{合肥工业大学试卷参考答案(A)}

Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex	2025-04-30 19:32:13 UTC (rev 75067)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex	2025-04-30 19:32:22 UTC (rev 75068)
@@ -1,16 +1,19 @@
-\documentclass[datizhi]{hfutexam}
+\documentclass[nofangzheng,datizhi,nosign]{hfutexam}
+% datizhi 表示该文档为答题纸格式
+% nofangzheng 表示不使用方正字体, 而是用系统常用字体代替
+% nosign 表示打分框不显示阅卷人
 
 \begin{document}
 \BiaoTi{合肥工业大学考试专用答题纸(A)}
-\XueQi{一}
-\XueNian{2022}{2023}
-\KeChengDaiMa{1400261B}
-\KeChengMingCheng{复变函数与积分变换}
-\XueFen{2.5}
+\XueNian{2021}{2022}
+\XueQi{二}
+\KeChengDaiMa{034Y01}
+\KeChengMingCheng{数学(下)}
+\XueFen{5}
 \KeChengXingZhi{必修}
 \KaoShiXingShi{闭卷}
-\ZhuanYeBanJi{}
-\KaoShiRiQi{2022年11月26日19:00-21:00}
+\ZhuanYeBanJi{少数民族预科班}
+\KaoShiRiQi{2022年6月18日8:00-10:00}
 \MingTiJiaoShi{集体}
 
 % 注意事项

Modified: trunk/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls	2025-04-30 19:32:13 UTC (rev 75067)
+++ trunk/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls	2025-04-30 19:32:22 UTC (rev 75068)
@@ -7,16 +7,18 @@
 % 编译模式: XeLaTeX
 % 你可以任意修改或再次分发该文件
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{hfutexam}[2023/11/13 v1.9 HFUTExam document class by Zhang Shenxing]
+\ProvidesClass{hfutexam}[2025/04/30 v1.10 HFUTExam document class by Zhang Shenxing]
 % 文档选项
 \newif\ifhfut at ShiJuan\hfut at ShiJuantrue
 \newif\ifhfut at DaTiZhi\hfut at DaTiZhifalse
 \newif\ifhfut at Simple\hfut at Simplefalse
 \newif\ifhfut at Fandol\hfut at Fandoltrue
+\newif\ifhfut at Nosign\hfut at Nosignfalse
 \DeclareOption{datizhi}{\hfut at ShiJuanfalse\hfut at DaTiZhitrue\hfut at Simplefalse}
 \DeclareOption{cankaodaan}{\hfut at ShiJuanfalse\hfut at DaTiZhitrue\hfut at Simplefalse}
-\DeclareOption{simple}{\hfut at ShiJuanfalse\hfut at DaTiZhifalse\hfut at Simpletrue }
+\DeclareOption{simple}{\hfut at ShiJuanfalse\hfut at DaTiZhifalse\hfut at Simpletrue}
 \DeclareOption{nofangzheng}{\hfut at Fandolfalse} % 默认使用方正字体
+\DeclareOption{nosign}{\hfut at Nosigntrue}
 % 基于 ctexart 文档类
 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexart}}
 \ProcessOptions\relax
@@ -116,12 +118,24 @@
 		\hfill 课程名称\hfutul{\hfut at KeChengMingCheng}
 		\hfill 学分\uline{\hfill\hfut at XueFen\hfill}
 		\hfill 课程性质: %
-			必修\ifdefstring{\hfut at KeChengXingZhi}{必修}{\hfutboxyes}{\hfutboxno}%
-			选修\ifdefstring{\hfut at KeChengXingZhi}{选修}{\hfutboxyes}{\hfutboxno}%
-			限修\ifdefstring{\hfut at KeChengXingZhi}{限修}{\hfutboxyes}{\hfutboxno}
+			\ifdefstring{\hfut at KeChengXingZhi}{必修}{%
+			必修\hfutboxyes{}选修\hfutboxno{}限修\hfutboxno}{%
+				\ifdefstring{\hfut at KeChengXingZhi}{选修}{%
+				必修\hfutboxno{}选修\hfutboxyes{}限修\hfutboxno}{%
+					\ifdefstring{\hfut at KeChengXingZhi}{限修}{%
+					必修\hfutboxno{}选修\hfutboxno{}限修\hfutboxyes}{%
+						\hfutul{\hfut at KeChengXingZhi}
+					}
+				}
+			}
 		\hfill 考试形式: %
-			开卷\ifdefstring{\hfut at KaoShiXingShi}{开卷}{\hfutboxyes}{\hfutboxno}%
-			闭卷\ifdefstring{\hfut at KaoShiXingShi}{闭卷}{\hfutboxyes}{\hfutboxno}
+		\ifdefstring{\hfut at KaoShiXingShi}{开卷}{%
+		开卷\hfutboxyes{}闭卷\hfutboxno}{%
+			\ifdefstring{\hfut at KaoShiXingShi}{闭卷}{%
+			开卷\hfutboxno{}闭卷\hfutboxyes}{%
+					\hfutul{\hfut at KaoShiXingShi}
+				}
+			}
 
 		\vspace{6pt}%
 		专业班级(教学班)\hfutul{\hfut at ZhuanYeBanJi}
@@ -204,6 +218,16 @@
 		\draw (2.7,1.5) node {\textbf{\normalsize 阅卷人}};%
 	\end{tikzpicture}%
 }
+\ifhfut at Nosign
+	\renewcommand\scorebox{%
+		\vspace{0.5\baselineskip}\noindent%
+		\begin{tikzpicture}[overlay,xshift=15.6cm,yshift=-1.6cm]%
+			\draw (0,0) rectangle (1.8,2);%
+			\draw (0,1.4)--(1.8,1.4);%
+			\draw (0.9,1.7) node {\textbf{\normalsize 得分}};%
+		\end{tikzpicture}%
+	}
+\fi
 % 答题纸提示信息
 \newcommand\notice{%
 	\noindent\textbf{\small 考生注意事项:\\%



More information about the tex-live-commits mailing list.