Skip to content

Instantly share code, notes, and snippets.

@StevenClontz
Created December 10, 2019 23:52
Show Gist options
  • Save StevenClontz/03e2ed86b57991d62df7e5f90c4ff9d2 to your computer and use it in GitHub Desktop.
Save StevenClontz/03e2ed86b57991d62df7e5f90c4ff9d2 to your computer and use it in GitHub Desktop.
PreTeXt exercise made up syntax
<exercise>
<statement>
<p>
Which of these numbers are even?
</p>
<multiple-choice select="many">
<choice correct="true"><m>-4</m></choice>
<choice><m>-1</m></choice>
<choice correct="true"><m>0</m></choice>
<choice><m>5</m></choice>
<choice correct="true"><m>8</m></choice>
</multiple-choice>
</statement>
<answer>
<!-- could be interpreted from the choices? -->
<p><m>-4,0,8</m></p>
</answer>
<solution>
<p>Here is a long-winded explanation of why these numbers are right...</p>
</solution>
</exercise>
<exercise>
<statement>
<p>
Which of these numbers is <m>5-6</m>?
</p>
<multiple-choice select="single">
<choice><m>-4</m></choice>
<choice correct="true"><m>-1</m></choice>
<choice><m>0</m></choice>
<choice><m>5</m></choice>
<choice><m>8</m></choice>
</multiple-choice>
</statement>
<answer>
<!-- could be interpreted from the choices? -->
<p><m>-1</m></p>
</answer>
<solution>
<p>Here is a long-winded explanation of why this was right...</p>
</solution>
</exercise>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment