texlive[64098] Master/texmf-dist: exam-zh (11aug22)
commits+karl at tug.org
commits+karl at tug.org
Thu Aug 11 22:45:58 CEST 2022
Revision: 64098
http://tug.org/svn/texlive?view=revision&revision=64098
Author: karl
Date: 2022-08-11 22:45:58 +0200 (Thu, 11 Aug 2022)
Log Message:
-----------
exam-zh (11aug22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/xelatex/exam-zh/CHANGELOG.md
trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/body/usage.tex
trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex
trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc.pdf
trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-chinese-english.sty
trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-choices.sty
trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-font.sty
trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-symbols.sty
trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh.cls
Modified: trunk/Master/texmf-dist/doc/xelatex/exam-zh/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/exam-zh/CHANGELOG.md 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/doc/xelatex/exam-zh/CHANGELOG.md 2022-08-11 20:45:58 UTC (rev 64098)
@@ -5,6 +5,13 @@
格式参照 [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
并且此项目遵守 [Semantic Versioning](https://semver.org/spec/v2.0.0.html)。
+## [0.1.16] - 2022-08-11
+
+### Fixed
+
+- 修复双栏下使用 `\fillin` 造成的 `linegoal` 干扰问题
+
+
## [0.1.15] - 2022-08-09
### Fixed
Modified: trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/body/usage.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/body/usage.tex 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/body/usage.tex 2022-08-11 20:45:58 UTC (rev 64098)
@@ -1967,6 +1967,7 @@
width-type = (*<(fill)|normal>*)
\end{ccnusyntax}
\kvopt{show-answer}{false} 且 \kvopt{no-answer-type}{none} 时 \opt{fillin/width} 设置时若 \meta{width} 的长度超过了当前行的剩余长度,则多余部分在下一行的表现。\opt{fill} 表示多余部分只要不超过 \tn{linewidth} 就自动 fill 为 \tn{linewidth} 的长度(此时建议 \opt{width} 的值不是 \tn{linewidth} 的整数倍,而是(以最终一共两行为例)比如 |1.5\linewidth|);\opt{normal} 表示多余部分严格按照 \meta{width} 的值排版。由于使用了 \pkg{linegoal},需要编译至少两次才能获得正确的效果。
+ % \emph{注意:由于 \kvopt{no-answer-type}{none} 下的算法是基于 \pkg{linegoal} 获取当前行的剩余距离,如果此时同一行出现了两个 \tn{fillin} 就会互相干扰,导致编译异常。所以 \kvopt{no-answer-type}{none} 下尽可能避免同一行出现两个 \tn{fillin} 命令}
\end{function}
\begin{latexexample}{\opt{width-type} 示例}
Modified: trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex 2022-08-11 20:45:58 UTC (rev 64098)
@@ -31,7 +31,7 @@
\title{\textcolor{MaterialIndigo800}{%
\textbf{exam-zh: 高考试卷 \LaTeX \xpinyin[font=\sffamily,format=\color{MaterialIndigo800}]{模}{mu2}板}}}
\author{李泽平,夏康玮,郭李军}
-\date{2022/08/02\quad v0.1.15%
+\date{2022/08/11\quad v0.1.16%
\thanks{%
\url{https://gitee.com/zepinglee/exam-zh}
}
Modified: trunk/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-chinese-english.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-chinese-english.sty 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-chinese-english.sty 2022-08-11 20:45:58 UTC (rev 64098)
@@ -8,7 +8,7 @@
\RequirePackage{expl3}
-\ProvidesExplPackage {exam-zh-chinese-english} {2022-08-09} {v0.1.15}
+\ProvidesExplPackage {exam-zh-chinese-english} {2022-08-11} {v0.1.16}
{exam-zh chinese and english module}
\PassOptionsToPackage { tcolorbox } { most }
Modified: trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-choices.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-choices.sty 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-choices.sty 2022-08-11 20:45:58 UTC (rev 64098)
@@ -9,7 +9,7 @@
\RequirePackage{expl3}
\RequirePackage{xparse}
-\ProvidesExplPackage {exam-zh-choices} {2022-08-09} {v0.1.15}
+\ProvidesExplPackage {exam-zh-choices} {2022-08-11} {v0.1.16}
{exam-zh choices module}
\dim_new:N \l__examzh_choices_column_sep_dim
Modified: trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-font.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-font.sty 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-font.sty 2022-08-11 20:45:58 UTC (rev 64098)
@@ -9,7 +9,7 @@
\RequirePackage{expl3}
\RequirePackage{xparse}
-\ProvidesExplPackage {exam-zh-font} {2022-08-09} {v0.1.15}
+\ProvidesExplPackage {exam-zh-font} {2022-08-11} {v0.1.16}
{exam-zh font module}
\RequirePackage { unicode-math }
Modified: trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty 2022-08-11 20:45:58 UTC (rev 64098)
@@ -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 }
Modified: trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-symbols.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-symbols.sty 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh-symbols.sty 2022-08-11 20:45:58 UTC (rev 64098)
@@ -8,7 +8,7 @@
\RequirePackage{expl3}
-\ProvidesExplPackage {exam-zh-symbols} {2022-08-09} {v0.1.15}
+\ProvidesExplPackage {exam-zh-symbols} {2022-08-11} {v0.1.16}
{exam-zh symbols module}
\RequirePackage { tikz }
Modified: trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh.cls 2022-08-11 20:45:40 UTC (rev 64097)
+++ trunk/Master/texmf-dist/tex/latex/exam-zh/exam-zh.cls 2022-08-11 20:45:58 UTC (rev 64098)
@@ -6,7 +6,7 @@
\NeedsTeXFormat{LaTeX2e}[2017/04/15]
\RequirePackage{expl3}
-\ProvidesExplClass {exam-zh} {2022-08-09} {v0.1.15} {LaTeX template for Chinese exam}
+\ProvidesExplClass {exam-zh} {2022-08-11} {v0.1.16} {LaTeX template for Chinese exam}
% 检查 LaTeX2e kernel 版本
\msg_new:nnn { exam-zh } { latex-too-old }
More information about the tex-live-commits
mailing list.