Thread: [Solved] StyleRef field
View Single Post
 
Old 03-19-2012, 01:55 PM
Ulodesk Ulodesk is offline Windows 7 64bit Office 2010 64bit
Word 2013 Expert Cert
 
Join Date: Sep 2009
Location: Virginia
Posts: 872
Ulodesk is on a distinguished road
Default StyleRef field

In one new company template style mandated by upper echelons, the graphic title sits above the graphic, the caption below the graphic. Three style are used altogether in this arrangement, with "next paragraph style" follow-ons. Since the TOC only picks up one style when generated, it can pick up the title (e.g., Exhibit 1) but not the identifying caption. In most of our documents, a caption ID is important, particularly in long documents.

Since the captions are often just a few words identifying the graphic, including them in the title as well would be redundant.

Looking for a solution, I came across the StyleRef field, with the thought of including this with the title but formatting the font white or otherwise hiding it. I know little about field language. When I tried to use it to pick up the caption style, it picked up the caption style okay, but from the previous caption, not the one below the graphic of the title into which I was incorporating it. I'm sure there is a way to reorient this, but don't know how. Please see the attached document to see what happened, the styles, etc.

The potential issue I see in this approach, would arise when a graphic is presented with only the title, no caption, in which case I assume that the Style Ref would go on to the next caption. I would think it might be easiest to simply insert a caption and hide the text. does that seem reasonable, if still fraught with the potential of someone deleting it inadvertently?

Thank you.
Attached Files
File Type: docx Styleref example.docx (337.1 KB, 13 views)
Reply With Quote