diff options
Diffstat (limited to 'macros/xetex/latex/exam-zh/tex/exam-zh-textfigure.sty')
-rw-r--r-- | macros/xetex/latex/exam-zh/tex/exam-zh-textfigure.sty | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/macros/xetex/latex/exam-zh/tex/exam-zh-textfigure.sty b/macros/xetex/latex/exam-zh/tex/exam-zh-textfigure.sty index bbc4bedac2..656617da98 100644 --- a/macros/xetex/latex/exam-zh/tex/exam-zh-textfigure.sty +++ b/macros/xetex/latex/exam-zh/tex/exam-zh-textfigure.sty @@ -7,7 +7,7 @@ \RequirePackage{expl3} -\ProvidesExplPackage {exam-zh-textfigure} {2023-06-28} {v0.1.27} +\ProvidesExplPackage {exam-zh-textfigure} {2024-02-11} {v0.2.1} {exam-zh text with figure module} @@ -345,6 +345,18 @@ { \str_set:NV \l__examzh_textfigure_current_figure_position_str \l_keys_choice_tl }, + pos .choices:nn = + { + left , right , top , bottom , + top-left , top-right , top-center , + top-flushright , bottom-flushright , + bottom-left , bottom-right , bottom-center , + right-top , right-bottom , right-center , + left-top , left-bottom , left-center + } + { + \str_set:NV \l__examzh_textfigure_current_figure_position_str \l_keys_choice_tl + }, % figure-yshift:调整图片的垂直额外偏移量 figure-yshift .dim_set:N = \l__examzh_textfigure_figure_yshift_dim, figure-vshift .dim_set:N = \l__examzh_textfigure_figure_yshift_dim, @@ -375,15 +387,15 @@ \keys_set:nn { exam-zh / textfigure } { - fig-pos = right, + fig-pos = bottom-right, yshift = .5\baselineskip, - text-width = \columnwidth, + text-width = \textwidth, figure-width = \columnwidth, - text-ratio = 0.95, + text-ratio = 1, top-sep = 0pt, bottom-sep = 1.5ex plus .5ex minus 0.5ex, top = 0, - parindent = 2em + parindent = 0em } |