texlive[65220] Master/texmf-dist: hfutexam (7dec22)
commits+karl at tug.org
commits+karl at tug.org
Wed Dec 7 22:11:23 CET 2022
Revision: 65220
http://tug.org/svn/texlive?view=revision&revision=65220
Author: karl
Date: 2022-12-07 22:11:23 +0100 (Wed, 07 Dec 2022)
Log Message:
-----------
hfutexam (7dec22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md
trunk/Master/texmf-dist/doc/latex/hfutexam/README.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.pdf
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/doc/latex/hfutexam/hfutexam_shijuan.pdf
trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf
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 2022-12-07 21:11:10 UTC (rev 65219)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md 2022-12-07 21:11:23 UTC (rev 65220)
@@ -1,5 +1,8 @@
# 更新日志
+## [1.6] - 2022/12/07
++ `\fillblank`的默认高度现在均为`0.5cm`.
+
## [1.5] - 2022/12/04
+ 现在`\XiZhuRenQianMing`不设置或设置为空时即可不显示签名.
Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hfutexam/README.md 2022-12-07 21:11:10 UTC (rev 65219)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/README.md 2022-12-07 21:11:23 UTC (rev 65220)
@@ -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 at hfut.edu.cn>
+ License: The LaTeX Project Public License 1.3c
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 2022-12-07 21:11:10 UTC (rev 65219)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex 2022-12-07 21:11:23 UTC (rev 65220)
@@ -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,13 +109,12 @@
\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{}.
@@ -121,11 +121,10 @@
\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 at hfut.edu.cn}} 或 {\color{blue}{QQ362037052}}.}
+\textbf{如有疑问或建议, 欢迎联系我: {\color{red}\href{mailto:zhangshenxing at hfut.edu.cn}{zhangshenxing at 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分)}
Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex 2022-12-07 21:11:10 UTC (rev 65219)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex 2022-12-07 21:11:23 UTC (rev 65220)
@@ -1,4 +1,4 @@
-\documentclass[cankaodaan]{hfutexam}
+\documentclass[cankaodaan,blue]{hfutexam}
\usepackage{extarrows}
\newcommand{\diff}{\,\mathrm{d}}
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 2022-12-07 21:11:10 UTC (rev 65219)
+++ trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex 2022-12-07 21:11:23 UTC (rev 65220)
@@ -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{}.
Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls 2022-12-07 21:11:10 UTC (rev 65219)
+++ trunk/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls 2022-12-07 21:11:23 UTC (rev 65220)
@@ -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 at ShiJuan\HFUT at ShiJuantrue
-\newif\ifHFUT at DaTiZhi\HFUT at DaTiZhifalse
-\newif\ifHFUT at CanKaoDaAn\HFUT at CanKaoDaAnfalse
-\newif\ifHFUT at Simple\HFUT at Simplefalse
-\DeclareOption{datizhi}{\HFUT at ShiJuanfalse\HFUT at DaTiZhitrue}
-\DeclareOption{cankaodaan}{\HFUT at ShiJuanfalse\HFUT at CanKaoDaAntrue}
-\DeclareOption{simple}{\HFUT at ShiJuanfalse\HFUT at Simpletrue}
+\newif\ifHFUT at ShiJuan
+\newif\ifHFUT at DaTiZhi
+\newif\ifHFUT at CanKaoDaAn
+\newif\ifHFUT at Simple
+\newcommand{\setalltypefalse}{%
+ \HFUT at ShiJuanfalse%
+ \HFUT at DaTiZhifalse%
+ \HFUT at CanKaoDaAnfalse%
+ \HFUT at Simplefalse
+}
+\setalltypefalse\HFUT at ShiJuantrue
+\DeclareOption{datizhi}{\setalltypefalse\HFUT at DaTiZhitrue}
+\DeclareOption{cankaodaan}{\setalltypefalse\HFUT at CanKaoDaAntrue}
+\DeclareOption{simple}{\setalltypefalse\HFUT at Simpletrue}
% 文档选项 nofangzheng
\newif\ifHFUT at Fandol\HFUT at Fandoltrue
\DeclareOption{nofangzheng}{\HFUT at Fandolfalse}
@@ -100,19 +107,6 @@
% 分栏
\setlength\columnsep{0.8cm} % 分栏间距
\columnseprule=0.5pt % 分栏线宽度
-% 填空题
-\newlength{\ltemp}
-\RequirePackage[normalem]{ulem}
-\ifHFUT at ShiJuan%
- \NewDocumentCommand\fillblank{O{3.5cm} O{0.5cm} m}{\uline{\makebox[#1]{\rule{0pt}{#2}#3}}}%
- \else\ifHFUT at 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}%
More information about the tex-live-commits
mailing list.