TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
> Ben Davies asked about the Word 2010 cross-reference issue and added :
> "The following are the field codes for a normal cross reference in my
> document (this one works):
> { REF_Ref314839717\n\h }: { REF_Ref314839717\h \*MERGEFORMAT }"
> "The following are the field codes for the broken cross reference to the
> same section in my document (this one dumps the entire section into my
> reference): { REF_Ref319485722 \n \h }: {REF _Ref319485722 \h }"
> __________________________________
> Ben:
> You may have just solved your own problem. If the reference ending with
> \*MERGEFORMAT } works properly, just copy that segment to the end of the
> misbehaving references to match the format of the one that works.
Sorry, Margaret, but I think you're off-base on this suggestion. The \*Mergeformat switch only affects the appearance (formatting) of the field result and has no effect whatsoever on *what* appears.
The problem Ben is seeing is due to the way Word uses bookmarks to identify the "target" of cross-references. When you cut and paste text that is contained in a bookmark to an earlier position in the document, it is easy to leave the invisible marker that defines the end of the bookmark in its original location so that you wind up including everything in between the start of the new location and the end of the old location. I think in the opposite case (moving a bookmarked location to a later spot) the x-ref may just break because the end marker winds up in front of the start marker, but I can't say for sure.
In any case, the best advice I can offer is to turn on the "Show bookmarks" option (in the Advanced tab of the Word Options dialog) before you start moving things around so that you can see where the bookmarks begin and end.
-Fred Ridder
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Create and publish documentation through multiple channels with Doc-To-Help. Choose your authoring formats and get any output you may need.
Try Doc-To-Help, now with MS SharePoint integration, free for 30-days.