Skip to main content

The PreTeXt Guide

Subsection 7.1.5 Metadata

A <webwork> without a source attribute can have a plain text <description>. This should be a summary of what the exercise asks a user to do, including any relevant pedagogical details of the exercise. For example:
<webwork>

  <description>
    Add two fractions with distinct one-digit prime denominators.
  </description>

  ...

</webwork>
A longer description may be broken into lines where the lines are plain text.
<webwork>

  <description>
    <line>
      Add two fractions with distinct one-digit prime denominators.
    </line>
    <line>
      One fraction is always positive, the other always negative.
    </line>
  </description>

  ...

</webwork>
The content of the description will be written into a PG COMMENT command, making the description visible in a WeBWorK Library Browser.