diff options
author | Karl Berry <karl@freefriends.org> | 2022-09-14 19:58:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-09-14 19:58:16 +0000 |
commit | 17b3bbda651c5296c1e222bb44b6a1d348a737bd (patch) | |
tree | e895b9d34f6ca6723d2b106d94fd0b334d31a9a4 /Master/texmf-dist/tex/latex/stex/hwexam.sty | |
parent | 732ae3fbb7543a76e6ed337dcc853e4dec34efbb (diff) |
stex (14sep22)
git-svn-id: svn://tug.org/texlive/trunk@64383 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/hwexam.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/stex/hwexam.sty | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/hwexam.sty b/Master/texmf-dist/tex/latex/stex/hwexam.sty index 84387461ed3..f7f7e27947b 100644 --- a/Master/texmf-dist/tex/latex/stex/hwexam.sty +++ b/Master/texmf-dist/tex/latex/stex/hwexam.sty @@ -6,13 +6,14 @@ %% %% hwexam.dtx (with options: `package') %% -\ProvidesExplPackage{hwexam}{2022/05/24}{3.1.0}{homework assignments and exams} +\ProvidesExplPackage{hwexam}{2022/09/14}{3.2.0}{homework assignments and exams} \RequirePackage{l3keys2e} \newif\iftest\testfalse -\DeclareOption{test}{\testtrue} +\DeclareOption{test}{\testtrue\PassOptionsToPackage{\CurrentOption}{problem}} \newif\ifmultiple\multiplefalse \DeclareOption{multiple}{\multipletrue} +\DeclareOption{lang}{\PassOptionsToPackage{\CurrentOption}{problem}} \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{problem}} \ProcessOptions \RequirePackage{keyval}[1997/11/10] @@ -20,9 +21,8 @@ \newcommand\hwexam@assignment@kw{Assignment} \newcommand\hwexam@given@kw{Given} \newcommand\hwexam@due@kw{Due} -\newcommand\hwexam@testemptypage@kw{This~page~was~intentionally~left~ -blank~for~extra~space} -\def\hwexam@minutes@kw{minutes} +\newcommand\hwexam@testemptypage@kw{This~page~was~intentionally~left~blank~for~extra~space} +\newcommand\hwexam@minutes@kw{minutes} \newcommand\correction@probs@kw{prob.} \newcommand\correction@pts@kw{total} \newcommand\correction@reached@kw{reached} @@ -33,16 +33,16 @@ blank~for~extra~space} \ltx@ifpackageloaded{babel}{ \makeatletter \clist_set:Nx \l_tmpa_clist {\bbl@loaded} -\clist_if_in:NnT \l_tmpa_clist {ngerman}{ +\exp_args:NNx \clist_if_in:NnT \l_tmpa_clist {\detokenize{ngerman}}{ \input{hwexam-ngerman.ldf} } -\clist_if_in:NnT \l_tmpa_clist {finnish}{ +\exp_args:NNx \clist_if_in:NnT \l_tmpa_clist {\detokenize{finnish}}{ \input{hwexam-finnish.ldf} } -\clist_if_in:NnT \l_tmpa_clist {french}{ +\exp_args:NNx \clist_if_in:NnT \l_tmpa_clist {\detokenize{french}}{ \input{hwexam-french.ldf} } -\clist_if_in:NnT \l_tmpa_clist {russian}{ +\exp_args:NNx \clist_if_in:NnT \l_tmpa_clist {\detokenize{russian}}{ \input{hwexam-russian.ldf} } \makeatother @@ -145,7 +145,7 @@ loadmodules .code:n = { }{ \global\setcounter{assignment}{\int_use:N\l__problems_assign_number_int} } -\setcounter{problem}{0} +\setcounter{sproblem}{0} \renewcommand\prob@label[1]{\assignment@number.##1} \def\current@section@level{\document@hwexamtype} \begin{@assignment} @@ -262,9 +262,6 @@ tools .tl_set:N = \testheading@tools }{ \newpage } -\newcommand\testspace[1]{\iftest\vspace*{#1}\fi} -\newcommand\testnewpage{\iftest\newpage\fi} -\newcommand\testemptypage[1][]{\iftest\begin{center}\hwexam@testemptypage@kw\end{center}\vfill\eject\else\fi} \renewcommand\@problem[3]{ \stepcounter{assignment@probs} \def\__problemspts{#2} |