TOC with entries "Author: Title. Subtitle"


G

Guest

Good evening,

I have to format an omnibus volume in MS Word 2000, which contains several
articles. Each text is introduced by:

<Author>
<Title>
<Subtitle>

(there is a different style applied to each of them).

I'd like Word to generate a table of contents which looks like this:

<Author>: <Title>. <Subtitle>...............<page>
<Author>: <Title>. <Subtitle>...............<page>
....

Is this possible (by editing the TOC field for example)?

Thank you very much!

Loretta
(sorry, I'm not a native speaker)
 
Ad

Advertisements

S

Suzanne S. Barnhill

I don't believe you can easily do this with styles, but you could accomplish
it with TC fields.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
G

Guest

Thank you for your quick reply!

Is there a possibility to generate TC fields automatically or would I have
to put them in manually?
If the latter were the case, it wouldn't be much different from my current
solution, namely generating the TOC with cross references, would it?
 
S

Suzanne S. Barnhill

TC fields must be input manually, but I think it would still be much easier
than using cross-references because:

(a) If I'm understanding your use of cross-references correctly, you'd need
four for each TOC listing, one for the author, one for the title, one for
the subtitle, and one for the page number. You can accomplish the same thing
with a single TC field.

(b) Using cross-references, you have to be sure you haven't omitted any
headings, and you have to insert them in the TOC in the correct order and
using the appropriate-level TOC style. If you rearrange the contents, you
have to rearrange the TOC manually.

(c) When you use TC fields, Word handles creation of the TOC automatically,
just as it does when you base the TOC on headings or outline levels. You
create one TC field for each TOC entry, including the author, title, and
subtitle, and Word keeps up with the page numbers.

My limited testing indicates that it is even possible to use StyleRef fields
inside your TC fields. If you apply distinctive styles (paragraph or
character) to your Author, Title, and Subtitle paragraphs, you might try a
TC field as follows:

{ TC "{ StyleRef "Author" }: { StyleRef "Title" }. { StyleRef
"Subtitle" }" }

If this is successful, then you could save this TC field as an AutoText
entry and easily insert it after the subtitle in each chapter/section. Note
that you will get an error if you insert the field at the end of the
Subtitle paragraph (or whichever one is the last to appear). You'll have to
put it at the beginning of the following paragraph instead (something in a
different style). Note also that you have to keep updating fields as you do
this. It took several updates before my TC field reflected the StyleRef
results, and that was necessary before the TOC would display anything.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
G

Guest

Suzanne S. Barnhill said:
My limited testing indicates that it is even possible to use StyleRef fields
inside your TC fields. If you apply distinctive styles (paragraph or
character) to your Author, Title, and Subtitle paragraphs, you might try a
TC field as follows:

{ TC "{ StyleRef "Author" }: { StyleRef "Title"}. { StyleRef
"Subtitle" }" }

WOW! That did it! Thank you so much! :)
 
S

Suzanne S. Barnhill

I was hoping to hear that. I tried it with just one set of headings, so I
wasn't sure it would work with more, but if you can confirm that it does,
then I'll add that to my article on StyleRef fields at
http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm

Thanks for the opportunity to add to my skill set!

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Ad

Advertisements

Ad

Advertisements

S

Suzanne S. Barnhill

Thanks, I'll be adding that to my article when I find time (tonight, I
hope).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top