# How can I change the autonumbering criterion?

In a notebook I have three cells whose format is DisplayFormulaNumbered:

a=1
b=2
c=3


and in a text cell I refer to them respectively as (1) (2) (3), where (1) (2) and (3) have been automatically assigned by Mathematica.

Now, when I add a fourth cell, between the first and second

a=1
d=4
b=2
c=3


the number 2 is assigned to the cell containing d=4 and other numbers are shifted according that. Therefore the corrispondence in my text is destroyed.

How can I fix this problem ? Two hypotheses:

(a) changing the autunumbering criterion from positional to chronological (b) automating cross referencing within the notebook

• You should tag your cell and use the automatic numbering so that it always links back to a specific cell and its counter. There should be examples on here how to do that. If not I'll post something tomorrow if no one else has. – Mike Honeychurch Feb 3 '16 at 6:09
• Thanks for your reply !! I will keep constantly a watchful eye on this question. – mitochondrial Feb 3 '16 at 7:21

2. Add the links: In the appropriate position within your text cell, insert and automatic numbering link. Navigate to Insert -> Automatic Numbering; select the appropriate counter category from the drop-down menu (e.g. DisplayFormulaNumbered in your case), then select the tag you want to refer back to in the list provided.