PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

'activity.text.solution "no"' #400

Closed mattboelkins closed 7 years ago

mattboelkins commented 8 years ago

I'd like the ability to suppress solutions to activities within the text and have them appear in the backmatter. I imagine that will also require there to be something like 'activity.backmatter.solution "yes"' as well. Thanks Rob.

Matt

rbeezer commented 7 years ago

The generic name for this class of elements is project, so the following new switches in xsl/mathbook-common.xsl will do what you want. See post in a minute on Google Group with more details.

<xsl:param name="project.text.hint" select="'yes'" />
<xsl:param name="project.text.answer" select="'yes'" />
<xsl:param name="project.text.solution" select="'yes'" />

I put in backmatter switches, and left them un-implemented. They will get picked up in a much bigger refactor of exercises and the backmatter. So I'm going to close this now.