summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-08-11 20:45:58 +0000
committerKarl Berry <karl@freefriends.org>2022-08-11 20:45:58 +0000
commitc109dff9e28ca1d53092373150be9a653ff4870a (patch)
tree6f13ffb3c1d7121d533aadec728c65cf2e1b832a /Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
parent55623bdb3d6ba6af457b741ab9765a844b259fc9 (diff)
exam-zh (11aug22)
git-svn-id: svn://tug.org/texlive/trunk@64098 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty')
-rw-r--r--Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty b/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
index 6651de73834..6e612c19aaa 100644
--- a/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
+++ b/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
@@ -9,7 +9,7 @@
\RequirePackage{expl3}
\RequirePackage{xparse}
-\ProvidesExplPackage {exam-zh-question} {2022-08-09} {v0.1.15}
+\ProvidesExplPackage {exam-zh-question} {2022-08-11} {v0.1.16}
{exam-zh question module}
@@ -1155,11 +1155,13 @@
% #1: CJKunderline / use:n
% #2: \allowbreak
{
+ \dim_set_eq:NN \l_tmpb_dim \linegoal
% 比较 \l__examzh_fillin_F_width_dim 和 linegoal
\dim_compare:nNnTF { \l__examzh_fillin_F_width_dim } > { \linegoal }
{
% 超过 linegoal 就排一段 linegoal,然后 \l__examzh_fillin_F_width_dim 减去 linegoal 长度
- \dim_set:NV \l_tmpa_dim \linegoal
+ % \dim_set:NV \l_tmpa_dim \linegoal
+ \dim_set:NV \l_tmpa_dim \l_tmpb_dim
% 是否处于 list 环境中
\bool_if:NTF \l__if_list_bool
{
@@ -1172,7 +1174,7 @@
}
{
% 正文中
- #1 { \hspace { \linegoal } }
+ #1 { \hspace { \l_tmpb_dim } }
}
\dim_sub:NV \l__examzh_fillin_F_width_dim \l_tmpa_dim
\dim_while_do:nNnn { \l__examzh_fillin_F_width_dim } > { \linewidth }