There are four tags that PreTeXt considers to be “project-like”. They are <activity>, <exploration>, <investigation>, <project>. We will focus on <project> here. These four tags allow a general, freeform structure similar to the unstructured <example> in Listing 15.2.1; a structure analogous to that of the structured <example> in Listing 15.2.3; and the highly-stuctured <introduction>, <task>, <conclusion> model shown in Listing 15.5.1.
<project>
<title>A structured project</title>
<introduction>
<p>
Here is where we describe what the reader will accomplish in the project.
</p>
</introduction>
<task>
<statement>
<p>
The first step to do.
</p>
</statement>
<hint>
<p>
A little hint.
</p>
</hint>
<answer>
<p>
Just the answer.
</p>
</answer>
<solution>
<p>
All the glorious details about how to do the first step.
</p>
</solution>
</task>
<task>
<statement>
<p>
The second step to do.
We'll be lazy and just include an answer.
</p>
</statement>
<answer>
<p>
Just the answer.
</p>
</answer>
</task>
<conclusion>
<p>
A little wrap up.
</p>
</conclusion>
</project>
Listing15.5.1.A project
The code in Listing 15.5.1 produces the following output:
Project15.5.1.A structured project.
Here is where we describe what the reader will accomplish in the project.