Thread: [Solved] StyleRef field
View Single Post
 
Old 03-19-2012, 03:55 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Philip,

If I understand it correctly, in essence you're looking for a way to have the content of two separate paragraphs combined into a single TOC entry, preferably without having a combined version of those paragraphs visible in the body of the document. Correct? The problem with using a STYLEREF field for this is that, if you format its text as white, it'll show up as such in the TOC - which means it'll generally be invisible. For similar reasons, formatting the STYLEREF field as hidden text won't work.

See the attached as a possible workaround. What I've done is to use a single paragraph for the label and description, with the image wedged in between them, using a square format. This way, you can have your TOC and the basic layout you wanted. Note that, as the description is centreds but the label is left-aligned, I used a right-aligned tab after the label to force its left alignment. The tab shows up in the TOC, though its space requirements can be minimised there - and may even be considered useful in that context.
Attached Files
File Type: docx Ulodesk.docx (221.1 KB, 17 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote