diff options
author | Karl Berry <karl@freefriends.org> | 2022-12-07 21:11:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-12-07 21:11:23 +0000 |
commit | 4125e823450c585ed5ad9b2c3a69b34f125e56d3 (patch) | |
tree | c58be0ba78321ffd606d88c63096fe611ee0b755 | |
parent | 6395694a7d4a188bbc2c7edbd29a74ff42020f49 (diff) |
hfutexam (7dec22)
git-svn-id: svn://tug.org/texlive/trunk@65220 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md | 3 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf | bin | 200040 -> 205310 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex | 21 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf | bin | 92519 -> 92517 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf | bin | 70715 -> 70714 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex | 6 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf | bin | 95057 -> 95064 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf | bin | 110461 -> 110469 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls | 45 |
11 files changed, 40 insertions, 39 deletions
diff --git a/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md b/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md index c0174e3a9e4..6a7de473b76 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/hfutexam/CHANGELOG.md @@ -1,5 +1,8 @@ # 更新日志 +## [1.6] - 2022/12/07 ++ `\fillblank`的默认高度现在均为`0.5cm`. + ## [1.5] - 2022/12/04 + 现在`\XiZhuRenQianMing`不设置或设置为空时即可不显示签名. diff --git a/Master/texmf-dist/doc/latex/hfutexam/README.md b/Master/texmf-dist/doc/latex/hfutexam/README.md index 6162cde72d4..2ed1b04746d 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/README.md +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf Binary files differindex 47d4a72aaba..a470ca1a02e 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf +++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam.pdf diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex b/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex index ffadfa29594..dc0f9769ab5 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam.tex +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf Binary files differindex 3776c11ac84..330e2c8ed72 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf +++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.pdf diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex index f9f20890d59..e9ca966fc35 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex +++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_cankaodaan.tex @@ -1,4 +1,4 @@ -\documentclass[cankaodaan]{hfutexam} +\documentclass[cankaodaan,blue]{hfutexam} \usepackage{extarrows} \newcommand{\diff}{\,\mathrm{d}} diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf Binary files differindex ad9dc41adef..c1fdcc715a3 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf +++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.pdf diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex index d5ad8907e45..c0d3d1fa84a 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_datizhi.tex +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf Binary files differindex 97f57ce4027..b8e5045e710 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf +++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_shijuan.pdf diff --git a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf Binary files differindex 18b857b946c..b7008d98fe4 100644 --- a/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf +++ b/Master/texmf-dist/doc/latex/hfutexam/hfutexam_simple.pdf diff --git a/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls b/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls index 4d560ba7b4b..81315269173 100644 --- a/Master/texmf-dist/tex/latex/hfutexam/hfutexam.cls +++ b/Master/texmf-dist/tex/latex/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}% |