exercise.divisional.answer controls whether an answer to an exercise
is available to the reader where the exercise is born. Think of this
as an author's pedagogical decision, not a decision that has to do
with saving print space or reducing layout clutter. So it makes sense
that it uniformly applies to showing answer knowls as well as to
making the "show correct answer" button.
So yes, in the case of a live WeBWorK exercise, that is still
controlling whether the reader can see the correct answers right there
where the exercise is. If "no", the answers to these exercises will be
in that appendix just like they are for the other exercises.
I don't think you can hack around this with XSLT. Whether the button
is there is controlled by pretext-webwork.js seeing that the answer
knowl is present in the static preview. If you really want to practice
the dark arts, you could post-process HTML to insert the things that
the js is looking for, while still making that invisible to the reader
who has not yet made the exercise live.
On Sun, Aug 22, 2021 at 2:11 PM Mitch Keller <
mi...@rellek.net> wrote:
>
> Am I correct that whether or not the "Show Correct Answer" button appears after clicking the "Make Interactive" button on a WeBWorK exercise is tied to exercise.divisional.answer? I'm helping Steve get AC3 ready to ship out the typo updates, and it seems that toggling that stringparam enables/disables "Show Correct Answer". Since Steve doesn't have answers to non-WeBWorK exercises in AC3, I've got a solution for him. However, for ACS, we have an answer child for all the divisional exercises and put them in the back of the book in an appendix. We would not want them to display where born. If these are not tied together, can someone point me toward what we need to do to get the "Show Correct Answer" button without displaying divisional exercise answers where born? If "Show Correct Answer" is tied to that stringparam, is there any hope of getting the behavior separated? I don't think I can just use custom XSLT to kill the answers, as it seems that would wreak havoc on the appendix of exercise answers. (Although maybe there's a mode that can solve that problem for me?)
>
> --
> You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
pretext-suppo...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/pretext-support/707b1665-4b37-4d42-bc90-366b5bf62b56n%40googlegroups.com.