Suppressing WeBWorK solutions in solutions manual

19 views
Skip to first unread message

Mitch Keller

unread,
Aug 10, 2026, 6:29:08 PM (9 days ago) Aug 10
to 'Rob Beezer' via PreTeXt support
Working on the solutions manual for Active Calculus - Multivariable. There’s not really a need to include the WeBWorK exercises’ solutions, so we have used extra XSL that imports pretext-solution-manual-latex.xsl and then has a template designed to suppress the solution when there’s a WeBWorK exercise. 

As things have changed under the hood, this has been a bit of a moving target. We had been using

<xsl:template match="exercise[@exercise-interactive='webwork-reps']" mode="solutions"> </xsl:template>

However, that no longer excludes the WW solutions. I have tried building the assembly-static format using the pretext/pretext script, which led me to try

<xsl:template match="exercise[@pi:exercise-interactive='static']" mode="solutions"> </xsl:template>

However, the solutions are still showing up in the solutions manual.

Using versions wouldn't really save us, as we want the numbering to be right, and the WW exercises all come before the exercises for which we want the solutions.

Can someone help point me toward whatever we should be using to omit the solutions to the WW exercises?

Thanks!

Mitch Keller

unread,
Aug 12, 2026, 3:02:56 PM (7 days ago) Aug 12
to PreTeXt support
Not 100% sure that I understand the why, but I have managed to resolve this myself. Upgrade to CLI 2.48.1 might have been a factor, and then I needed to add xmlns:pi="http://pretextbook.org/2020/pretext/internal" to the xsl:stylesheet element in our custom XSL. Wasn't throwing an error on Monday related to the namespace, but today it did. This allowed the version I mentioned trying in my previous message to work. In any case, the solutions we don't want in the solutions manual are now gone!

Rob Beezer

unread,
Aug 13, 2026, 12:12:57 AM (6 days ago) Aug 13
to pretext...@googlegroups.com
Thanks, Mitch! I'd worked up a solution, but had not had time to write a sketch. We can talk at Drop-In - I might have something more robust.
Reply all
Reply to author
Forward
0 new messages