Based on a Writing Tip I wrote for my work colleagues. Warning: LONG! as there are different instructions for each type of cross-reference.
****************
In many of the Word documents you write, you may need to refer the reader to another section, an appendix, a table, or a figure, or numbered reference in a References list. You do this with a cross-reference (e.g. ‘see Table 5-2’). Although you can just type the cross-reference (x-ref), if you add more sections/tables/figures etc. or delete some, then some or all of your typed x-refs will be incorrect and take the reader to the wrong place.
The solution is to use automated x-refs.
That way, when you add/move/delete sections/tables/figures etc., you just need to update the fields in your document to automatically update the x-ref numbers to reflect the new numbering of these elements. The other advantage of automated x-refs is that they are clickable in the Word document (Ctrl+click) and sometimes in PDFs (depending on the Acrobat settings) – in both cases, clicking the link will take you straight to the place referred to.
Assumptions: All the instructions below assume you are working in a document that is based on a template that uses:
- automatic outline numbering for the sections (e.g. Section 5.3.2) and appendices
- automatic caption numbering for the table/figure captions (e.g. Table 2-3)
- automatic list numbering for the items in the References list (assuming you have a manual list of numbered References).
The instructions vary a little for each type of cross-reference—figure/table, section, appendix, numbered References list item. However, for each you will start with the References tab > Captions group > Cross-reference button:
Insert an automated cross-reference to a figure or table
- Place your cursor in the text where you want to insert the cross-reference.
- Go to the References tab > Captions group, then click Cross-reference.
- In the Reference type field, click the drop-down arrow and select either Figure or Table (they’re at the bottom of the list).
- In the Insert reference to field, click the drop-down arrow and select Only label and number.
- Select the figure or table from the list in the lower half of the dialog box.
- Click Insert.
Insert an automated cross-reference to a section
- Place your cursor in the text where you want to insert the cross-reference.
- Type the word ‘Section’ and a space.
- Go to the References tab > Captions group, then click Cross-reference.
- In the Reference type field, click the drop-down arrow and select Heading.
- In the Insert reference to field, click the drop-down arrow and select Heading number (no context).
- Select the section from the list in the lower half of the dialog box. Hint: If it’s a long list, type the main section number – e.g. type 8 to take you straight to headings starting with ‘8’.
- Click Insert.
Insert an automated cross-reference to an appendix
- Place your cursor in the text where you want to insert the cross-reference.
- Go to the References tab > Captions group, then click Cross-reference.
- In the Reference type field, click the drop-down arrow and select Numbered item (first in the list).
- In the Insert reference to field, click the drop-down arrow and select Paragraph number (no context).
- Select the appendix from the list in the lower half of the dialog box. Hint: Appendices are always listed at the END of the list, so you might have to scroll down a long way.
- Click Insert.
Insert an automated cross-reference to an auto-numbered Reference list item in a citation
- Go to the References section, note its section number (e.g. 9.0), then identify the row number in the References list for the document you want to cite (e.g. row number 23).
- Place your cursor in the text where you want to insert the cross-reference.
- Type ‘(Ref. )’; make sure you add a non-breaking space (Ctrl+Shift+spacebar) after the full stop, then put your cursor after the space and before the closing parenthesis.
- Go to the References tab > Captions group, then click Cross-reference.
- In the Reference type field, click the drop-down arrow and select Numbered item (first in the list).
- In the Insert reference to field, click the drop-down arrow and select Paragraph number (no context).
- Go to the References section (e.g. 9.0) in the lower half of the dialog box.
- Scroll down the list of numbers after the section number/heading and select the number of the row you identified in Step 1.
- Click Insert.
What happens to the x-ref numbers if I’ve added new tables/figures/sections etc.? How do I update them?
When you add a new section, table/figure, appendix etc. Word automatically applies the correct sequential number for where you’ve placed it. If you move an existing section or appendix, these heading numbers will change automatically too. But tables and figures and all the x-refs DON’T change their numbers until you update all the fields in your document.
Although there are several ways to update all the fields (and therefore the automated numbers), the quickest, simplest, and most foolproof way is to switch to Print Preview mode, then switch back—almost all your numbers automatically update:
- IMPORTANT: Make sure Track Changes is turned OFF. Weird things happen if track changes is on, including possibly losing your x-refs!
- Go to File > Print. The print preview of your document shows on the right.
- Go back to the Home All your fields are updated automatically.
That’s it!
However, this method doesn’t update your table of contents, list of tables, list of figures, etc.—you have to do those separately using the applicable Update Table buttons on the References tab, or use the method below.
To update EVERYTHING in your document at once:
- IMPORTANT: Make sure Track Changes is turned OFF.
- Select the entire document (Ctrl+A).
- Right-click on the selection and select Update Field.
- When asked about updating the table of contents etc. select Update entire table and click OK. You may have to answer this several times for each contents list.
- Repeat steps 3 and 4 once more to be sure you got everything. Sometimes, the first update will update the numbers for moved figures/tables etc. but not the x-refs too—to be certain you update the x-refs, repeat these steps a second time.
TROUBLESHOOTING
What does ‘Error! Reference not found.’ mean?
You’ll get ‘Error! Reference not found.’ for any x-refs that have nothing to point (refer) to. The most common reason for these error messages is that you’ve deleted a section heading (or a figure/table caption) without realizing that there was a x-ref to it somewhere else in the document. Behind the scenes, Word has unique ID numbers for each x-ref that refers to specific sections, tables, etc. So if you delete the section heading/caption but not the x-ref, Word loses the connection between the two when the fields are updated, and so reports ‘Error! Reference not found.’. The only simple solutions are to:
- delete the message if the table etc. has been deleted, OR
- replace the message by creating a new x-ref to the correct place.
What about Section 0?
If you notice some ‘Section 0’ x-refs after you update the fields, there’s a good chance you inserted a new paragraph by pressing Enter at the beginning of an existing section heading and then changed the style of the new paragraph. This screws up the internal IDs. Best practice is to insert a new paragraph at the END of the previous paragraph by pressing Enter. For detailed information on this problem and various methods of solving it, see: http://www.thedoctools.com/demos/demo_crossref_2.html
**********************
See also:
[Links last checked August 2014]