Reset ItemNumbered

I know that there must be a simple answer for this, but I looked and looked. Suppose that at some point in my notebook I am creating an ItemNumbered list. Then at some other moment I want a new ItemNumbered list, starting at number 1, but without resetting the original list. Currently, when I try to form a second list, it always starts with n + 1, where n is the total number of elements in previous lists.

I tried Paste with no luck. Help me please.

+6
wolfram-mathematica
source share
1 answer

This behavior may be changed in future versions of Mathematica, but now you can use the CounterAssignments option for Cell to reset for a specific cell, and then it refers to that cell and subsequent cells in the notebook.

Use the optional inspector or directly edit the Cell expression (Cell> Show Expression in the menu) and add a parameter, for example:

 CounterAssignments -> {{"ItemNumbered", 1234}} 

Please note that the counter will increase if it is displayed in the same cell, so if you want to start numbering at 1, start your counter at 0.

Hope this helps!

+5
source share

All Articles