- Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Is there a way to restart the ListItem numbering (lettering)?
Using this code snippet:
$numberStyleList = array('listType' => \PHPWord_Style_ListItem::TYPE_NUMBER); $alphStyleList = array('listType' => \PHPWord_Style_ListItem::TYPE_ALPHANUM); $section->addListItem('One', 0, null, $numberStyleList); $section->addListItem('Two', 0, null, $numberStyleList); $section->addListItem('Alpha', 1, null, $alphStyleList); $section->addListItem('Beta', 1, null, $alphStyleList); $section->addListItem('Three', 0, null, $numberStyleList); $section->addListItem('Charlie', 1, null, $alphStyleList);Currently it would output this:
1. One 2. Two A. Alpha B. Beta 3. Three C. Charlie I want to output this:
1. One 2. Two A. Alpha B. Beta 3. Three A. Charlie Is there some other code call that needs to be made? Or is this a limitation of PHPWord?