Open mrseanman opened 1 month ago
This problem appears to extend to all nouns, so have edited title and body text accordingly.
Thanks for reporting this. We did have a problem in the past, and I'm sorry about that.
The logic noun issue ("all nouns" you mention) has a test case which passes and is here https://github.com/maths/moodle-qtype_stack/blob/master/tests/input_checkbox_test.php#L324
I've tested your example in the "dev" branch (soon to be 4.6.0) and can't reproduce the problem.
Which version are you using? (see https://docs.stack-assessment.org/en/Authoring/Author_FAQ/ )
Thanks for the quick response. The version on my server appears to be 2023060500.
I've investigated this further. The display issue is working, but there is another noun-related issue which I'll try to fix in a future release.
STACK evaluates all nouns when displaying multiple choice question (MCQ) options. My use case is specifically the noun
'diff
, so I will concentrate on that. When'diff
is part of a choice in a MCQ, it is evaluated before the tex to display the option is generated. This is a problem when you want to display things like'diff(f,x)
as options in an MCQ. Instead of displaying the derivative, it evaluates and displays 0. Specific todiff
, declaringdepends(f,x)
makes no difference to the display of'diff(f,x)
ordiff(f,x)
. The non-action ofdepends
is probably a completely different issue (or intended behavior). I intend to concentrate on the noun issue.This problem forces the use of
diff(f(x),x)
in MCQs, which would be nice to avoid as this does not typeset as neatly. Also you cannot have, for example'diff(x^2,x)
as an option in an MCQ. It would display as $2x$.Minimal example
Question variables
Question text
Notes
ans1
is[diff(f,x)]
, not[0]
. So it is to do with whatever happens when the tex is generated. The noun is still in there somewhere.noundiff
makes no difference.