我知道这个问题一定有一个简单的答案,但我已经看了又看。假设我在笔记本中的某个时刻形成了一个 ItemNumbered 列表。然后在其他时候,我想要一个以数字 1 开头的新 ItemNumbered 列表,但不重置原始列表。目前,当我尝试形成第二个列表时,它总是以 n + 1 开头,其中 n 是先前列表中的项目总数。
我尝试过插入但没有运气。请帮忙。
I know there must be a simple answer to this but I've looked and looked. Suppose I form an ItemNumbered list at some point in the notebook. Then at some other point I want a new ItemNumbered list starting with number 1, but without resetting the original list. At present when I try to form the second list it always starts with n + 1, where n is the total number of items in the prior lists.
I've tried the Insert without luck. Help, please.
发布评论
评论(1)
此行为可能会在 Mathematica 的未来版本中发生更改,但现在您可以使用
Cell
的 >CounterAssignments 选项可将其重置为特定单元格,然后应用于该单元格以及笔记本中的后续单元格。使用选项检查器或直接编辑
Cell
表达式(Cell > 显示表达式 在菜单中)并添加选项,例如:请注意如果计数器显示在同一单元格中,它就会递增,因此如果您想从 1 开始编号,请从 0 开始计数器。
希望有帮助!
This behavior is subject to change in future versions of Mathematica, but for now you can use the
CounterAssignments
option toCell
to reset it for a particular cell, and then it applies to that cell and subsequent cells in the notebook.Use the Option Inspector or directly edit the
Cell
expression ( Cell > Show Expression in the menu) and add the option, e.g.:Note that the counter will be incremented if it is displayed in that same cell, so if you want to start numbering at 1, start your counter at 0.
Hope that helps!