h1

Word: Format all cross-references as bold

June 17, 2022

One of my clients does work for a [big company], and I do the occasional bit of work for them. The [big company] wants the all cross-references (x-refs) in bold type (e.g. Table 1-4, Figure 2-10, Appendix F, Section 10.8 etc.). But there’s no way that I’ve found in Word to set this as an automatic attribute when creating x-refs (if anyone knows how, let me know in the comments). So bold has to be applied manually, and for a 400p document with hundreds of x-refs, that’s tedious for the authors and for me as the editor when some have been missed.

However, there is a way to bold ALL the x-refs at any time (ideally as one of the finalisation stages when working on a document). And it’s a simple find and replace solution (no wildcards involved!), but you do have to expose the field codes for it to work.

How to do this:

  1. Make a new copy of your document using Save As (this is just in case anything goes drastically wrong—it shouldn’t, but you never know).
  2. Select the entire document using Ctrl+a.
  3. Press Alt+F9 to toggle (and display) the field codes.
  4. Press Ctrl+h to open the Find and Replace window.
  5. In the Find field type: ^19 REF (^19 represents a field and the REF tells Word to look for a field that also has REF as part of its code—this gets all the x-refs but ignores things like the table of contents and other field codes).
  6. Click More.
  7. Put your cursor in the Replace field but DO NOT TYPE anything here.
  8. Click Format.
  9. Select Font.
  10. Select Bold in the middle panel at the top of the Font dialog box.
  11. If your cursor was in the Replace field, then immediately below that field Font: Bold displays. (If your cursor was still in the Find field, then Font: Bold will display under that, and that’s not what you want—go back and repeat from step 7.)
  12. Click Replace All.
  13. When the replace has finished, close the Find and Replace window
  14. Press Alt+F9 to toggle the field codes back to readable x-ref numbers etc.
  15. You may need to update the fields after doing this, just to make sure the bold is applied to them all. To do this, go to File > Print (which puts you in Print Preview mode), DO NOT PRINT, then go back to your document—this updates all your fields. Check your table of contents etc. If all the page numbers are the same, update the table of contents etc. separately as you normally would.
  16. If you’re happy with the changes made, continue using the ‘saved as’ document as your current version, or repeat these steps in the earlier current version you saved from (your versioning processes may differ).

I got my inspiration for this post from this very long webpage, written by Susan Barnhill, one of the Word gurus: http://wordfaqs.ssbarnhill.com/FormatCrossReferences.htm

One comment

  1. Great post. It surely helps in word :-) . Is there any shortcut like this in emacs?



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: