Changing Parts to letters versus numbers

This is the code from on the documentation page. I am wondering is there a way to have the parts be labeled (a). (b). (c)., etc. I tried the style number but that did not work

<exercise>
  <title>Vector arithmetic</title>
  <introduction>
    <p>Let <m>\vec{u} = (1,2)</m> and <m>\vec{v} = (-3, 4)</m>.</p>
  </introduction>

  <part styleNumber="(a)">
    <p><answer><label>Compute <m>\vec{u} + \vec{v}</m></label>(-2,6)</answer></p>
  </part>
  <part>
    <p><answer><label>Compute <m>2\vec{u} - \vec{v}</m></label>(5,0)</answer></p>
  </part>
  <part>
    <p><answer><label>Compute <m>\vec{u} \cdot \vec{v}</m></label>5</answer></p>
  </part>
</exercise>

Any help is appreciated.

We have a marker attribute for an ordered list <ol>, but I can’t find anything for <part>. We could add a marker attribute to sectioning components like <part>.

Or, we could try to follow what PreTeXt does. @Chrissy_Safranski, do you happen to know how one would accomplish this in PreTeXt?

PreTeXt wouldn’t use <part> for a subdivision of an exercise; parts are groups of chapters of a book.

PreTeXt would use <task> for this, and it would automatically be numbered a, b, c under the exercise number. However, I tried in the Scratchpad, and it’s still numbered 1. 2. 3 in Doenet, probably because the exercise itself doesn’t seem to get a number.

<exercise>
  <title>Vector arithmetic</title>
  <introduction>
    <p>Let <m>\vec{u} = (1,2)</m> and <m>\vec{v} = (-3, 4)</m>.</p>
  </introduction>

  <task>
    <p><answer><label>Compute <m>\vec{u} + \vec{v}</m></label>(-2,6)</answer></p>
  </task>
  <task>
    <p><answer><label>Compute <m>2\vec{u} - \vec{v}</m></label>(5,0)</answer></p>
  </task>
  <task>
    <p><answer><label>Compute <m>\vec{u} \cdot \vec{v}</m></label>5</answer></p>
  </task>
</exercise>

Right now, Nick could swap to an <ol marker="a.">, which is what I’ve always done in Doenet rather than use tasks. The primary practical reason for using <task> in PreTeXt is to have separate hints, answers, and solutions for each task instead of just one for the whole exercise, but none of that structural difference is relevant in Doenet.

<exercise>
  <title>Vector arithmetic</title>
  <introduction>
    <p>Let <m>\vec{u} = (1,2)</m> and <m>\vec{v} = (-3, 4)</m>.</p>
  </introduction>

  <ol marker="a.">
    <li>
      <p><answer><label>Compute <m>\vec{u} + \vec{v}</m></label>(-2,6)</answer></p>
    </li>
    <li>
      <p><answer><label>Compute <m>2\vec{u} - \vec{v}</m></label>(5,0)</answer></p>
    </li>
    <li>
      <p><answer><label>Compute <m>\vec{u} \cdot \vec{v}</m></label>5</answer></p>
    </li>
  </ol>
</exercise>