Skip to main content

The PreTeXt Guide

Section 7.1 WeBWorK Problems

You must extract WeBWorK content as described in the Chapter 38 before you will be able to see any WeBWorK content in your output. For most cases, you should be able to do this by running pretext generate webwork to process WeBWorK exercises.
A <webwork> tag must be inside an <exercise> or a PROJECT-LIKE block, optionally preceded by an <introduction>, and optionally followed by a <conclusion>.
<exercise>
  <introduction>
  </introduction>

  <webwork>
  </webwork>

  <conclusion>
  </conclusion>
</exercise>
There are several methods for putting content into the <webwork>. (Note that an empty <webwork> with no attributes will simply produce the camelcase WeBWorK logo.)