Skip to main content
Logo image

Exercises 36 Exercise Section, Structured

View Source for exercises
<exercises label="exercises-structured">
  <title>Exercise Section, Structured</title>
  <introduction>
    <p>
      A collection of exercises,
      in a top-level <tag>exercises</tag> division,
      structured with <tag>subexercises</tag>.
    </p>
  </introduction>
  <subexercises>
  <title>Easy Exercises</title>
  <exercise>
    <title>Arithmetic</title>
    <statement>
      <p>
        Compute <m>3+4</m>.
      </p>
    </statement>
    <answer>
      <p>
        <m>7</m>
      </p>
    </answer>
  </exercise>
  <exercise>
    <title>Trigonometry</title>
    <statement>
      <p>
        Compute <m>\sin(\pi/4)</m>.
      </p>
    </statement>
  </exercise>
  </subexercises>
  <subexercises xml:id="hard-subexercises">
  <title>Hard Problems</title>
  <exercise>
    <title>Number Theory</title>
    <statement>
      <p>
        Prove Fermat's Last Theorem.
      </p>
    </statement>
  </exercise>
  <exercise>
    <title>Millenial</title>
    <statement>
      <p>
        Find general solutions to the Navier-Stokes equation.
      </p>
    </statement>
  </exercise>
  </subexercises>
  <subexercises>
  <title>With an Exercise Group</title>
  <exercisegroup>
    <introduction>
      <p>
        This is an exercise group, and this is its introduction.
      </p>
    </introduction>
    <exercise>
      <title>One</title>
      <statement>
        <p>
          <m>6-5</m>
        </p>
      </statement>
      <hint>
        <p>
          Subtract.
        </p>
      </hint>
    </exercise>
    <exercise>
      <title>Two</title>
      <statement>
        <p>
          <m>1+1</m>
        </p>
      </statement>
    </exercise>
  </exercisegroup>
  <exercise>
    <title>Outside exercisegroup, inside subexercises</title>
    <statement>
      <p>
        6+5
      </p>
    </statement>
  </exercise>
  </subexercises>
</exercises>
A collection of exercises, in a top-level <exercises> division, structured with <subexercises>.

Easy Exercises

View Source for subexercises
<subexercises>
<title>Easy Exercises</title>
<exercise>
  <title>Arithmetic</title>
  <statement>
    <p>
      Compute <m>3+4</m>.
    </p>
  </statement>
  <answer>
    <p>
      <m>7</m>
    </p>
  </answer>
</exercise>
<exercise>
  <title>Trigonometry</title>
  <statement>
    <p>
      Compute <m>\sin(\pi/4)</m>.
    </p>
  </statement>
</exercise>
</subexercises>

1. Arithmetic.

View Source for exercise
<exercise>
  <title>Arithmetic</title>
  <statement>
    <p>
      Compute <m>3+4</m>.
    </p>
  </statement>
  <answer>
    <p>
      <m>7</m>
    </p>
  </answer>
</exercise>
Compute \(3+4\text{.}\)
Answer.
View Source for answer
<answer>
  <p>
    <m>7</m>
  </p>
</answer>
\(7\)

2. Trigonometry.

View Source for exercise
<exercise>
  <title>Trigonometry</title>
  <statement>
    <p>
      Compute <m>\sin(\pi/4)</m>.
    </p>
  </statement>
</exercise>
Compute \(\sin(\pi/4)\text{.}\)

Hard Problems

View Source for subexercises
<subexercises xml:id="hard-subexercises">
<title>Hard Problems</title>
<exercise>
  <title>Number Theory</title>
  <statement>
    <p>
      Prove Fermat's Last Theorem.
    </p>
  </statement>
</exercise>
<exercise>
  <title>Millenial</title>
  <statement>
    <p>
      Find general solutions to the Navier-Stokes equation.
    </p>
  </statement>
</exercise>
</subexercises>

3. Number Theory.

View Source for exercise
<exercise>
  <title>Number Theory</title>
  <statement>
    <p>
      Prove Fermat's Last Theorem.
    </p>
  </statement>
</exercise>
Prove Fermat’s Last Theorem.

4. Millenial.

View Source for exercise
<exercise>
  <title>Millenial</title>
  <statement>
    <p>
      Find general solutions to the Navier-Stokes equation.
    </p>
  </statement>
</exercise>
Find general solutions to the Navier-Stokes equation.

With an Exercise Group

View Source for subexercises
<subexercises>
<title>With an Exercise Group</title>
<exercisegroup>
  <introduction>
    <p>
      This is an exercise group, and this is its introduction.
    </p>
  </introduction>
  <exercise>
    <title>One</title>
    <statement>
      <p>
        <m>6-5</m>
      </p>
    </statement>
    <hint>
      <p>
        Subtract.
      </p>
    </hint>
  </exercise>
  <exercise>
    <title>Two</title>
    <statement>
      <p>
        <m>1+1</m>
      </p>
    </statement>
  </exercise>
</exercisegroup>
<exercise>
  <title>Outside exercisegroup, inside subexercises</title>
  <statement>
    <p>
      6+5
    </p>
  </statement>
</exercise>
</subexercises>

Exercise Group.

View Source for exercisegroup
<exercisegroup>
  <introduction>
    <p>
      This is an exercise group, and this is its introduction.
    </p>
  </introduction>
  <exercise>
    <title>One</title>
    <statement>
      <p>
        <m>6-5</m>
      </p>
    </statement>
    <hint>
      <p>
        Subtract.
      </p>
    </hint>
  </exercise>
  <exercise>
    <title>Two</title>
    <statement>
      <p>
        <m>1+1</m>
      </p>
    </statement>
  </exercise>
</exercisegroup>
This is an exercise group, and this is its introduction.
5. One.
View Source for exercise
<exercise>
  <title>One</title>
  <statement>
    <p>
      <m>6-5</m>
    </p>
  </statement>
  <hint>
    <p>
      Subtract.
    </p>
  </hint>
</exercise>
\(6-5\)
Hint.
View Source for hint
<hint>
  <p>
    Subtract.
  </p>
</hint>
Subtract.
6. Two.
View Source for exercise
<exercise>
  <title>Two</title>
  <statement>
    <p>
      <m>1+1</m>
    </p>
  </statement>
</exercise>
\(1+1\)

7. Outside exercisegroup, inside subexercises.

View Source for exercise
<exercise>
  <title>Outside exercisegroup, inside subexercises</title>
  <statement>
    <p>
      6+5
    </p>
  </statement>
</exercise>
6+5