diff options
Diffstat (limited to 'macros/xetex/latex/exam-zh/tex/exam-zh.cls')
-rw-r--r-- | macros/xetex/latex/exam-zh/tex/exam-zh.cls | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/macros/xetex/latex/exam-zh/tex/exam-zh.cls b/macros/xetex/latex/exam-zh/tex/exam-zh.cls index 12e450141d..2959abe67f 100644 --- a/macros/xetex/latex/exam-zh/tex/exam-zh.cls +++ b/macros/xetex/latex/exam-zh/tex/exam-zh.cls @@ -6,7 +6,7 @@ \NeedsTeXFormat{LaTeX2e}[2017/04/15] \RequirePackage{expl3} -\ProvidesExplClass {exam-zh} {2022-9-18} {v0.1.20} {LaTeX template for Chinese exam} +\ProvidesExplClass {exam-zh} {2023-06-01} {v0.1.25} {LaTeX template for Chinese exam} % 检查 LaTeX2e kernel 版本 \msg_new:nnn { exam-zh } { latex-too-old } @@ -531,10 +531,15 @@ { list .meta:nn = { exam-zh / list } {#1} } \setlist{nosep} +\setlist + { + labelsep = 4pt, + } \setlist[enumerate, 1] { labelindent = \parindent, + labelsep = 4pt, leftmargin = *, label = { \arabic * .} } @@ -550,7 +555,6 @@ listparindent = \parindent, label = {( \arabic * )}, } - % 多种方法: method环境 \newlist{method}{enumerate}{1} \setlist[method, 1] @@ -1597,7 +1601,7 @@ \tl_new:N \l__examzh_foot_content_before_page_tl \tl_new:N \l__examzh_foot_content_after_page_tl \tl_new:N \l__examzh_foot_content_after_lastpage_tl -\cs_generate_variant:Nn \regex_count:nnN { nxN } +\cs_generate_variant:Nn \regex_count:nnN { nxN, noN } \cs_new:Npn \__examzh_foot_content_only_page_input:ww #1 ; #2 \q_stop { @@ -1662,9 +1666,19 @@ \l__examzh_foot_content_after_lastpage_tl } \cs_new_nopar:Npn \__examzh_relax: { \relax } +% \cs_new:Npn \__examzh_foot_lastpage_tmp_set: +% { +% \cs_if_eq:NNTF \lastpage@lastpage \__examzh_relax: +% { \int_set:Nn \l__examzh_tmp_int { 0 } } +% { \int_set:Nn \l__examzh_tmp_int { \lastpage@lastpage } } +% } + +% https://gitee.com/xkwxdyy/exam-zh/issues/I6B7MU#note_17945353_link \cs_new:Npn \__examzh_foot_lastpage_tmp_set: { - \cs_if_eq:NNTF \lastpage@lastpage \__examzh_relax: + \bool_lazy_or:nnTF + { \cs_if_eq_p:NN \lastpage@lastpage \__examzh_relax: } + { \str_if_eq_p:ee \lastpage@lastpage {??} } { \int_set:Nn \l__examzh_tmp_int { 0 } } { \int_set:Nn \l__examzh_tmp_int { \lastpage@lastpage } } } @@ -1675,7 +1689,9 @@ \cs_new:cpn { __examzh_foot_content_a4paper_output: } { % 检测输入有多少个 ; - \regex_count:nxN { ; } + % \regex_count:nxN { ; } + % https://gitee.com/xkwxdyy/exam-zh/issues/I5NNR8#note_13447684_link + \regex_count:noN { ; } { \l__examzh_foot_content_format_tl } \l__examzh_foot_content_count_semicolon_int \int_case:nnF { \l__examzh_foot_content_count_semicolon_int } |