complicated table of contents

B

ben

Hello,

I have a document I modify each week and send out and when I made the
original document I set up a table of contents which was triggered off 2
styles (myheading 1 and myheading 2). The 1st heading did not have any page
numbers associated with it but the second heading did. It looked like this:
{TOC \T " MYHEADING 1,2, MYHEADING 2,1 " \N "2-2"}
And resulted in something like this (heading 1 is centered):
Heading 1
Heading 2 ............. 2

Anyway, someone suggested that I somehow add into the table the author of
each article. So I am trying to figure out the best way of presenting it and
how to get it inserted into the table of contents. I could put the author
name in a style of its own to be picked up by the toc.

I could potentially put the author after heading 2 (article name) in a
smaller type if that is possible or alternatively on a separate line also in
a smaller font without a page number associated with it (since that would be
covered by heading 2).

Can anyone help me with this. If I have been unclear I can clarify.

Thanks,
Ben
 
S

Suzanne S. Barnhill

I can't imagine why you mapped Heading 1 to TOC 2 and vice versa, but it
would actually work for you in this instance because you will need to
suppress numbering for TOC 2 and 3 (Heading 1 and whatever style you use for
the author's name). For the sake of argument, say that you used Heading 3
for the author's name, then your TOC field would be:

{TOC \t "MYHEADING 1,2, MYHEADING 2,1, MYHEADING 3,3" \n "2-3" }


--
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.
 
B

ben

Suzanne said:
I can't imagine why you mapped Heading 1 to TOC 2 and vice versa, but it
would actually work for you in this instance because you will need to
suppress numbering for TOC 2 and 3 (Heading 1 and whatever style you use for
the author's name). For the sake of argument, say that you used Heading 3
for the author's name, then your TOC field would be:

{TOC \t "MYHEADING 1,2, MYHEADING 2,1, MYHEADING 3,3" \n "2-3" }

Hello. It worked - thank you very much!

Would you know the following?

Some of the authors appear underlined in the toc if they are also that way
in the document. Is there anyway to force them to not be underlined in the
toc by default?

Is there a way to make the author name in the document invisible in the
document but picked up in the toc (sometimes I have other things on the line
with the author and if the author's name is in the middle of text it doesn't
seem to be picked up by the toc. I thought to get around it by stating the
author separately, but invisibly in the document)?

Not so important, but is there an easy way to get the author on the same
line as the second heading?

Thanks for any of the above. I really appreciate your help.

regards,
Ben
 
S

Suzanne S. Barnhill

You can have the author on the same line as another heading if you make the
author part of the heading paragraph, by using a line break instead of a
paragraph break between the two. But this will also require that the same
formatting be used for both because, as you have seen, the TOC picks up any
direct font formatting you apply to headings; it does not pick up font
formatting applied by the style.

You can force Word to create a TOC entry in any form you like by using TC
fields (which are invisible in the printed document), but it may be
difficult to combine these with existing headings and build a TOC based on
both. For more on TC fields, see Word's Help.

--
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