diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/exsheets/exsheets.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/exsheets/exsheets.sty | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/exsheets/exsheets.sty b/Master/texmf-dist/tex/latex/exsheets/exsheets.sty index d6dc571d378..7c939d9de03 100644 --- a/Master/texmf-dist/tex/latex/exsheets/exsheets.sty +++ b/Master/texmf-dist/tex/latex/exsheets/exsheets.sty @@ -8,7 +8,7 @@ % Web: https://bitbucket.org/cgnieder/exsheets/ % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2011-2012 Clemens Niederberger +% Copyright 2011-2013 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -31,8 +31,8 @@ % If you have any ideas, questions, suggestions or bugs to report, please % feel free to contact me. % ---------------------------------------------------------------------------- -\def\exsheets@date{2012/12/23} -\def\exsheets@version{0.6a} +\def\exsheets@date{2013/01/06} +\def\exsheets@version{0.6b} \RequirePackage { expl3 , xparse } \ProvidesExplPackage @@ -1356,8 +1356,8 @@ { \cs_new:Npn \prop_length:N #1 { - \prop_length:NN #1 \l__exsheets_tmpa_int - \int_use:N \l__exsheets_tmpa_int + \prop_length:NN #1 \l_tmpa_int + \int_use:N \l_tmpa_int } } @@ -1384,6 +1384,11 @@ { \bool_set_true:N \l__exsheets_questions_deactivate_bool \file_input_if_exist:n { ##1 } + \prop_length:NN + \g__exsheets_selected_questions_prop + \l__exsheets_tmpa_int + \int_gsub:Nn \g__exsheets_questions_id_int + { \l__exsheets_tmpa_int } \bool_if:NT \l__exsheets_questions_debug_bool { \colorbox { exsheetsdebugcolor } @@ -1437,7 +1442,6 @@ \cs_new:Npn \__exsheets_select_question_by_id:n #1 { -% \clist_show:N \l__exsheets_include_id_clist \clist_if_in:NnTF \l__exsheets_include_id_clist { #1 } @@ -1445,6 +1449,7 @@ { \bool_gset_false:N \g__exsheets_questions_use_bool } } +% TODO: don't select questions whose topics or classes aren't chosen \cs_new:Npn \__exsheets_select_question_random:n #1 { \bool_if:NT \l__exsheets_include_random_bool @@ -2359,7 +2364,7 @@ HISTORY: translations 2012/12/23 v0.6a - bug fix: labels and items of {tasks} weren't joined at their baselines - +2013/01/06 v0.6b - bug fix: ID counting fixed in \includequestions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % TODO: |