{"id":1019,"date":"2015-09-25T10:25:43","date_gmt":"2015-09-25T09:25:43","guid":{"rendered":"http:\/\/www.sharonmurphy.com\/wordpress\/?p=1019"},"modified":"2020-07-24T13:23:13","modified_gmt":"2020-07-24T12:23:13","slug":"broken-cross-references-in-word-part-3","status":"publish","type":"post","link":"https:\/\/www.sharonmurphy.com\/wordpress\/2015\/09\/broken-cross-references-in-word-part-3\/","title":{"rendered":"Broken cross references in Word: Part 3"},"content":{"rendered":"<p>I work across different machines with different versions of Word. On one machine, when I update the cross references in a document, they lose the character formatting I&#8217;ve loving applied to make them stand out from the regular text (blue italic, if you&#8217;re asking). This doesn&#8217;t happen on the other machines &#8211; I&#8217;m not sure what the difference is, probably the version of Word or the OS. However, I have found a way to force cross reference formatting to be sticky, and that&#8217;s the topic of today&#8217;s post. <!--more--><\/p>\n<p>The first time I updated a 100 page document with a healthy sprinking of cross references on most pages and saw them all revert to regular font, my heart skipped a beat in horror. Undo restored them, then I spent a good hour trawling the web looking for a solution. I found one. It&#8217;s a bit of hassle, but much quicker than reapplying character formatting to a meeeelion cross references every time you update your doc.<\/p>\n<p>For each link in your doc:<\/p>\n<ol>\n<li>Right-click and select <b>Toggle Field Codes<\/b> from the popup menu that appears.<br \/>The link text is replaced with something that looks like: <br \/><code>{ REF _Ref123456789 }<\/code><\/li>\n<li>Edit the field code to add <code>\\* Charformat<\/code>. It should now look like: <br \/><code>{ REF _Ref123456789 \\* Charformat }<\/code><\/li>\n<li>Apply the required character formatting to the cross reference text (using a style or manually). Looking at the field code, make sure the opening <code>{<\/code> is formatted as required: it&#8217;s the formatting of this character in particular that&#8217;s used to format the cross reference text &#8211; the rest of the text in the field code can be formatted any way you like.<\/li>\n<li>Toggle the field code back, then right-click and select <b>Update Field<\/b>. The cross reference text\/page number\/whatever should update, but its formatting should be retained.<\/li>\n<\/ol>\n<p><b>Notes:<\/b> <\/p>\n<ul>\n<li>The method above assumes that only the selected field code toggles: in some versions of Word, when you select <b>Toggle Field Codes<\/b> <i>all<\/i> field codes in the document toggle at once. If you want to toggle all field codes at once but your version doesn&#8217;t do that, you can always select everything (<b>CTRL-A<\/b>) and then toggle.<\/li>\n<li>It&#8217;s most efficient to tweak the field code as you&#8217;re creating\/editing the cross references &#8211; waiting till the end then tackling a couple of hundred in one sitting can be soul-destroying.<\/li>\n<li>As mentioned <a href=\"https:\/\/www.sharonmurphy.com\/wordpress\/2015\/09\/broken-xref-2\/\" target=\"_blank\" rel=\"noopener noreferrer\">previously<\/a>, some versions of Word require the blank spaces after the opening <code>{<\/code> and before the closing <code>}<\/code> &#8211; if you remove them, you&#8217;ll see <b>Error! Bookmark not defined.<\/b> when you update the links. Just toggle the field codes again and add the spaces if they&#8217;re missing, and you&#8217;ll be back in action.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I work across different machines with different versions of Word. On one machine, when I update the cross references in a document, they lose the character formatting I&#8217;ve loving applied to make them stand out from the regular text (blue italic, if you&#8217;re asking). This doesn&#8217;t happen on the other machines &#8211; I&#8217;m not sure &hellip; <a href=\"https:\/\/www.sharonmurphy.com\/wordpress\/2015\/09\/broken-cross-references-in-word-part-3\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Broken cross references in Word: Part 3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,29],"tags":[50,19,49],"class_list":["post-1019","post","type-post","status-publish","format-standard","hentry","category-tech-writing","category-writing","tag-cross-references","tag-productivity","tag-word"],"_links":{"self":[{"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/posts\/1019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1019"}],"version-history":[{"count":14,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/posts\/1019\/revisions"}],"predecessor-version":[{"id":1452,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/posts\/1019\/revisions\/1452"}],"wp:attachment":[{"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}