-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\gradingtable options with \xsimsetup #15
Comments
Yes, it does have an effect, just not for the two options you mention. This is due to the definition of \NewDocumentCommand \gradingtable {O{}}
{
\group_begin:
\keys_set:nn {xsim/grading-table} { template = default , type = , #1}
\xsim_setup_template:nnV {table} \l_xism_grading_table_template_tl
{
\providecommand* \ExerciseTableCode {}
\providecommand* \ExerciseTableType [1] {}
\providecommand* \ExerciseType {}
\tl_set_eq:NN \ExerciseType \l_xism_grading_table_exercise_type_tl
\renewcommand* \ExerciseTableCode {}
\renewcommand* \ExerciseTableType [1]
{ \XSIMifblankTF { \ExerciseType } {##1} { \ExerciseType } }
}
\xsim_use_template:nV {table} \l_xism_grading_table_template_tl
\group_end:
} The line \ExplSyntaxOn
\cs_generate_variant:Nn \xsim_setup_template:nnn {nVn}
\RenewDocumentCommand \gradingtable {O{}}
{
\group_begin:
\keys_set:nn {xsim/grading-table} {#1} % <<<<<
\xsim_setup_template:nVn {table} \l_xism_grading_table_template_tl
{
\providecommand* \ExerciseTableCode {}
\providecommand* \ExerciseTableType [1] {}
\providecommand* \ExerciseType {}
\tl_set_eq:NN \ExerciseType \l_xism_grading_table_exercise_type_tl
\renewcommand* \ExerciseTableCode {}
\renewcommand* \ExerciseTableType [1]
{ \XSIMifblankTF { \ExerciseType } {##1} { \ExerciseType } }
}
\xsim_use_template:nV {table} \l_xism_grading_table_template_tl
\group_end:
}
\ExplSyntaxOff |
I found a real bug, though: |
Thx for the answer. I asked because in the docs, chapter 12. Grading Tables (p.26) describes to set the option by |
I know. This is why I changed the behavior in commit 21b5c4a to match the one described in the manual. |
It has no effect when you set the
\gradingtable
options with\xsimsetup
.The grading table uses the default template and not the default*
BTW:
grading-table/type = exercise
has no effect, too.Greets
The text was updated successfully, but these errors were encountered: