Well, first off, the various section cell types will automatically reset the counter for ItemNumbered cell types. So, if you break up your notebook into sections using section headers, you'll get this for free.
But, if you want to dig into this, it turns out that this is handled in the stylesheets. It turns out that the style for ItemNumbered includes as the CellDingbat a CounterBox, CounterBox["ItemNumbered"]
. It also includes an option for CounterIncrements->"ItemNumbered"
. And it has yet another option CounterAssignments->{{"SubitemNumbered", 0}, {"SubsubitemNumbered", 0}}
. What I'm inferring from this is that in the front end environment there are some variables with tags (e.g. "ItemNumbered") that get integrated with CounterBox objects.
I tried the following and it worked (there's probably something more elegant by using front end programming techniques).
- Create a new notebook
- Add several ItemNumbered cells
- In the middle of them somewhere, add a new cell (I made it a text cell)
- Edit this cell to add the CounterAssignments option
You can do this kind of editing of cell expressions using the Show Expression command from the Cell menu. So, toggle it to show the cell expression, and edit that cell expression to look like this:
Cell["", "Text", CounterAssignments->{{"ItemNumbered", 99}}]
The next cell is now numbered as 100.
You could make this slightly less weird-looking if you make this new special cell you add be very small so that it doesn't show up and ruin your spacing or formatting. Or, as I said, there might be a programmatic way to do this, but I don't know how.