Skip to main content

The PreTeXt Guide

Section 15.5 Project-Like Elements

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>
Listing 15.5.1. A project
The code in Listing 15.5.1 produces the following output:

Project 15.5.1. A structured project.

Here is where we describe what the reader will accomplish in the project.

(a)

The first step to do.
Hint.
A little hint.
Answer.
Just the answer.
Solution.
All the glorious details about how to do the first step.

(b)

The second step to do. We’ll be lazy and just include an answer.
Answer.
Just the answer.
A little wrap up.
You have attempted of activities on this page.