summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hfutexam
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-08 03:02:19 +0000
committerNorbert Preining <norbert@preining.info>2022-12-08 03:02:19 +0000
commit3fa962623959b4028935cb5201f44840c27980e8 (patch)
tree75285a7a92d4052ed289728c74ccf622b02530fb /macros/latex/contrib/hfutexam
parent03b9a93a133d854a3f7a8043984aded34728edf6 (diff)
CTAN sync 202212080302
Diffstat (limited to 'macros/latex/contrib/hfutexam')
-rw-r--r--macros/latex/contrib/hfutexam/CHANGELOG.md3
-rw-r--r--macros/latex/contrib/hfutexam/README.md2
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam.cls45
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam.pdfbin200040 -> 205310 bytes
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam.tex21
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam_cankaodaan.pdfbin92519 -> 92517 bytes
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam_cankaodaan.tex2
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam_datizhi.pdfbin70715 -> 70714 bytes
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam_datizhi.tex6
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam_shijuan.pdfbin95057 -> 95064 bytes
-rw-r--r--macros/latex/contrib/hfutexam/hfutexam_simple.pdfbin110461 -> 110469 bytes
11 files changed, 40 insertions, 39 deletions
diff --git a/macros/latex/contrib/hfutexam/CHANGELOG.md b/macros/latex/contrib/hfutexam/CHANGELOG.md
index c0174e3a9e..6a7de473b7 100644
--- a/macros/latex/contrib/hfutexam/CHANGELOG.md
+++ b/macros/latex/contrib/hfutexam/CHANGELOG.md
@@ -1,5 +1,8 @@
# 更新日志
+## [1.6] - 2022/12/07
++ `\fillblank`的默认高度现在均为`0.5cm`.
+
## [1.5] - 2022/12/04
+ 现在`\XiZhuRenQianMing`不设置或设置为空时即可不显示签名.
diff --git a/macros/latex/contrib/hfutexam/README.md b/macros/latex/contrib/hfutexam/README.md
index 6162cde72d..2ed1b04746 100644
--- a/macros/latex/contrib/hfutexam/README.md
+++ b/macros/latex/contrib/hfutexam/README.md
@@ -2,6 +2,6 @@
The package provides an exam class for Hefei University of Technology (China).
-+ Package: An exam class for Jinan University
++ Package: An exam class for Hefei University of Technology
+ Author: Shenxing Zhang <zhangshenxing@hfut.edu.cn>
+ License: The LaTeX Project Public License 1.3c
diff --git a/macros/latex/contrib/hfutexam/hfutexam.cls b/macros/latex/contrib/hfutexam/hfutexam.cls
index 4d560ba7b4..8131526917 100644
--- a/macros/latex/contrib/hfutexam/hfutexam.cls
+++ b/macros/latex/contrib/hfutexam/hfutexam.cls
@@ -7,15 +7,22 @@
% 编译模式: XeLaTeX
% 你可以任意修改或再次分发该文件
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{hfutexam}[2022/12/04 v1.5 HFUTExam document class by Zhang Shenxing]
+\ProvidesClass{hfutexam}[2022/12/07 v1.6 HFUTExam document class by Zhang Shenxing]
% 文档选项 shijuan, datizhi, cankaodaan, simple
-\newif\ifHFUT@ShiJuan\HFUT@ShiJuantrue
-\newif\ifHFUT@DaTiZhi\HFUT@DaTiZhifalse
-\newif\ifHFUT@CanKaoDaAn\HFUT@CanKaoDaAnfalse
-\newif\ifHFUT@Simple\HFUT@Simplefalse
-\DeclareOption{datizhi}{\HFUT@ShiJuanfalse\HFUT@DaTiZhitrue}
-\DeclareOption{cankaodaan}{\HFUT@ShiJuanfalse\HFUT@CanKaoDaAntrue}
-\DeclareOption{simple}{\HFUT@ShiJuanfalse\HFUT@Simpletrue}
+\newif\ifHFUT@ShiJuan
+\newif\ifHFUT@DaTiZhi
+\newif\ifHFUT@CanKaoDaAn
+\newif\ifHFUT@Simple
+\newcommand{\setalltypefalse}{%
+ \HFUT@ShiJuanfalse%
+ \HFUT@DaTiZhifalse%
+ \HFUT@CanKaoDaAnfalse%
+ \HFUT@Simplefalse
+}
+\setalltypefalse\HFUT@ShiJuantrue
+\DeclareOption{datizhi}{\setalltypefalse\HFUT@DaTiZhitrue}
+\DeclareOption{cankaodaan}{\setalltypefalse\HFUT@CanKaoDaAntrue}
+\DeclareOption{simple}{\setalltypefalse\HFUT@Simpletrue}
% 文档选项 nofangzheng
\newif\ifHFUT@Fandol\HFUT@Fandoltrue
\DeclareOption{nofangzheng}{\HFUT@Fandolfalse}
@@ -100,19 +107,6 @@
% 分栏
\setlength\columnsep{0.8cm} % 分栏间距
\columnseprule=0.5pt % 分栏线宽度
-% 填空题
-\newlength{\ltemp}
-\RequirePackage[normalem]{ulem}
-\ifHFUT@ShiJuan%
- \NewDocumentCommand\fillblank{O{3.5cm} O{0.5cm} m}{\uline{\makebox[#1]{\rule{0pt}{#2}#3}}}%
- \else\ifHFUT@DaTiZhi%
- \NewDocumentCommand\fillblank{O{3.5cm} O{1cm} m}{\uline{\makebox[#1]{\rule{0pt}{#2}#3}}}%
- \else%
- \NewDocumentCommand\fillblank{O{3.5cm} O{1cm} m}{%
- \settodepth{\ltemp}{#3}%
- \uline{\makebox[#1]{\rule{0pt}{#2}\raisebox{\ltemp}{#3}}}%
- }%
-\fi\fi
% 页眉页脚
\RequirePackage{fancyhdr}
\RequirePackage{lastpage}
@@ -240,11 +234,18 @@
\indent 4. 考生务必认真填写班级、姓名、学号等信息。}\par%
{\leavevmode\xleaders\hbox{\rule[4pt]{8pt}{0.5pt}\,}\hfill\null}%
}
-% 选择题, 根据选项内容长度自动排版
+% 填空题
+\newlength{\ltemp}
\newlength{\lxxmax}
\newlength{\lquar}
\newlength{\lhalf}
\newlength{\lfull}
+\RequirePackage[normalem]{ulem}
+\NewDocumentCommand\fillblank{O{3.5cm} O{0.5cm} m}{%
+ \settodepth{\ltemp}{#3}%
+ \uline{\makebox[#1]{\rule{0pt}{#2}\raisebox{\ltemp}{#3}}}%
+}
+% 选择题, 根据选项内容长度自动排版
\newcounter{lxxtype}
\NewDocumentCommand\xx{O{0} m m m m}{%
\setlength{\lfull}{\columnwidth}%
diff --git a/macros/latex/contrib/hfutexam/hfutexam.pdf b/macros/latex/contrib/hfutexam/hfutexam.pdf
index 47d4a72aab..a470ca1a02 100644
--- a/macros/latex/contrib/hfutexam/hfutexam.pdf
+++ b/macros/latex/contrib/hfutexam/hfutexam.pdf
Binary files differ
diff --git a/macros/latex/contrib/hfutexam/hfutexam.tex b/macros/latex/contrib/hfutexam/hfutexam.tex
index ffadfa2959..dc0f9769ab 100644
--- a/macros/latex/contrib/hfutexam/hfutexam.tex
+++ b/macros/latex/contrib/hfutexam/hfutexam.tex
@@ -36,6 +36,7 @@
arc=0pt,
}
\makeatother
+\usepackage[hidelinks]{hyperref}
\begin{document}
\BiaoTi{合肥工业大学试卷(A)}
@@ -55,7 +56,7 @@
\tigan{一、模板选项}
\indent
-本模板 (2022/12/04 v1.5) 旨在为将合肥工业大学试卷的 word 格式转为\LaTeX{}格式.
+本模板 (2022/12/07 v1.6) 旨在为将合肥工业大学试卷的 word 格式转为\LaTeX{}格式.
使用时, 只需在文档开头写上
\begin{lstlisting}
\documentclass[shijuan]{hfutexam}
@@ -108,24 +109,22 @@
\tigan{填空题相关}
\begin{enumerate}[resume]
-\item \lstinline|\fillblank[长度][最低高度]{内容}| 用于生成填空题的空白, 内容可以为空. 其中长度默认值是~{\color{blue}{\lstinline|3.5cm|}}, 最低高度默认值是~{\color{blue}{\lstinline|1cm|}} (答题纸和参考答案)或~{\color{blue}{\lstinline|0.5cm|}} (其它).
+\item \lstinline|\fillblank[长度][最低高度]{内容}| 用于生成填空题的空白, 内容可以为空. 其中长度默认值是~{\color{blue}{\lstinline|3.5cm|}}, 最低高度默认值是~{\color{blue}{\lstinline|0.5cm|}}.
\end{enumerate}
\textit{\color{blue}{填空题示例:}}
\begin{lstlisting}
-\textbf{请将你的答案对应填在横线上:}
-
+\textbf{请将你的答案对应填在横线上:}\\[0.5cm]
\textbf{1.} \fillblank{},
\textbf{2.} \fillblank[5cm]{},
\textbf{3.} \fillblank{}.
\end{lstlisting}
\begin{tcolorbox}
-\textbf{请将你的答案对应填在横线上:}
-
-\textbf{1.} \fillblank[3.5cm][1cm]{},
-\textbf{2.} \fillblank[5cm][1cm]{},
-\textbf{3.} \fillblank[3.5cm][1cm]{}.
+\textbf{请将你的答案对应填在横线上:}\\[0.5cm]
+\textbf{1.} \fillblank{},
+\textbf{2.} \fillblank[5cm]{},
+\textbf{3.} \fillblank{}.
\end{tcolorbox}
\tigan{选择题相关}
@@ -200,9 +199,9 @@
\end{align*}
\end{tcolorbox}
-\textbf{如有疑问或建议, 欢迎联系我: {\color{red}{zhangshenxing@hfut.edu.cn}} 或 {\color{blue}{QQ362037052}}.}
+\textbf{如有疑问或建议, 欢迎联系我: {\color{red}\href{mailto:zhangshenxing@hfut.edu.cn}{zhangshenxing@hfut.edu.cn}} 或 {\color{red}{QQ362037052}}.}
-\textbf{CTAN: \color{blue}https://www.ctan.org/pkg/hfutexam}
+\textbf{CTAN: {\color{red}\url{https://www.ctan.org/pkg/hfutexam}}}
\newpage
\tigan{一、填空题(每题3分,共18分)}
diff --git a/macros/latex/contrib/hfutexam/hfutexam_cankaodaan.pdf b/macros/latex/contrib/hfutexam/hfutexam_cankaodaan.pdf
index 3776c11ac8..330e2c8ed7 100644
--- a/macros/latex/contrib/hfutexam/hfutexam_cankaodaan.pdf
+++ b/macros/latex/contrib/hfutexam/hfutexam_cankaodaan.pdf
Binary files differ
diff --git a/macros/latex/contrib/hfutexam/hfutexam_cankaodaan.tex b/macros/latex/contrib/hfutexam/hfutexam_cankaodaan.tex
index f9f20890d5..e9ca966fc3 100644
--- a/macros/latex/contrib/hfutexam/hfutexam_cankaodaan.tex
+++ b/macros/latex/contrib/hfutexam/hfutexam_cankaodaan.tex
@@ -1,4 +1,4 @@
-\documentclass[cankaodaan]{hfutexam}
+\documentclass[cankaodaan,blue]{hfutexam}
\usepackage{extarrows}
\newcommand{\diff}{\,\mathrm{d}}
diff --git a/macros/latex/contrib/hfutexam/hfutexam_datizhi.pdf b/macros/latex/contrib/hfutexam/hfutexam_datizhi.pdf
index ad9dc41ade..c1fdcc715a 100644
--- a/macros/latex/contrib/hfutexam/hfutexam_datizhi.pdf
+++ b/macros/latex/contrib/hfutexam/hfutexam_datizhi.pdf
Binary files differ
diff --git a/macros/latex/contrib/hfutexam/hfutexam_datizhi.tex b/macros/latex/contrib/hfutexam/hfutexam_datizhi.tex
index d5ad8907e4..c0d3d1fa84 100644
--- a/macros/latex/contrib/hfutexam/hfutexam_datizhi.tex
+++ b/macros/latex/contrib/hfutexam/hfutexam_datizhi.tex
@@ -21,12 +21,10 @@
%\scorebox 为打分框, 必须放在行首
\scorebox\tigan{一、填空题(每小题3分,共18分)}
-\textbf{请将你的答案对应填在横线上:}
-
+\textbf{请将你的答案对应填在横线上:}\\[0.5cm]
\textbf{1.} \fillblank{},
\textbf{2.} \fillblank{},
-\textbf{3.} \fillblank{},
-
+\textbf{3.} \fillblank{}, \\[0.5cm]
\textbf{4.} \fillblank{},
\textbf{5.} \fillblank{},
\textbf{6.} \fillblank{}.
diff --git a/macros/latex/contrib/hfutexam/hfutexam_shijuan.pdf b/macros/latex/contrib/hfutexam/hfutexam_shijuan.pdf
index 97f57ce402..b8e5045e71 100644
--- a/macros/latex/contrib/hfutexam/hfutexam_shijuan.pdf
+++ b/macros/latex/contrib/hfutexam/hfutexam_shijuan.pdf
Binary files differ
diff --git a/macros/latex/contrib/hfutexam/hfutexam_simple.pdf b/macros/latex/contrib/hfutexam/hfutexam_simple.pdf
index 18b857b946..b7008d98fe 100644
--- a/macros/latex/contrib/hfutexam/hfutexam_simple.pdf
+++ b/macros/latex/contrib/hfutexam/hfutexam_simple.pdf
Binary files differ