Hi Dan,
Stefan covered some methods that will work, especially the 2nd issue you mentioned on Table of Content (TOC) with {StyleRef}.
For the Bibliography issue it may be that it's not an issue with Content Controls in general (the Bibliography gallery entries
include a content control, rather than just the Bibliography field, but rather it seems there's a goof in the MS provided built in
'Bibliography' entry in Word's 'built in' category within the 'Bibliography Gallery' that puts a 'less than' character at the
beginning of the string in the StyleRef field.
Manually creating a Bibliography using just the {Bibliography Field} from
Insert=>Quick Parts=>Field, creates the same problem in the {StyleRef} in the header does not create the problem, but then saving
that entry to the Bibliography gallery, without a header paragraph, recreates the problem when that gallery entry is next used.
From the Built-in Bibliography gallery entries, if you use the Works Cited choice to insert the bibliography and don't get the stray
< character "<", then, try typing "Bibliography" over the 'Works Cited' in the title of the inserted entry, then select the
Content control (blue frame) of the bibliography by clicking on the 'handle' on the top left of the frame, return to the
Bibliography gallery and use the 'Save Selection' to the Bibliography gallery you can either replace the existing 'Bibliography'
entry in the 'built-in' category or give your entry a new name and save it and then test in a new document to see if you get the
same problem.
By the way, can you describe the scenario where you're using {StyleRef Bibliography} in a page heading? The Bibliography entries
are each in a separate paragraph so that can be alot of different text at the top of each page, especially if you have a lot of
sources. <g>.
===============
I am having issues when a styleref field refers to an automatically-generated
Bibliography heading, it inserts a "<" (less than symbol) and sometimes extra
spaces before the word(s) "Bibliography" or "Works Cited".
Also, on a different but related note, the StyleRef doesn't seem to pick up
the TOC heading and will just go and display the heading from the last
Heading 1 style instead of "Content" or "Table of Contents".
Any help with either issue would be really appreciated!
-Dan >>
--
Bob Buckland ?
MS Office System Products MVP
*Courtesy is not expensive and can pay big dividends*