Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Special Table of Contents (Word 2000 SR1)

    I create customised manuals for End-user computing.
    The module number is on one line with a style Manual#.
    The module title is on a new line with a style ManualTitle. Font size smaller than the manual number.
    How do I create a table of contents that puts the two styles on one line like this:
    Module 1 Module Title ..............................................1

    At the moment the end result looks like this:
    Module 1 .......................................1
    Module Title ..................................1

    I have tried various styles, soft page returns without much success.
    Any ideas?

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Special Table of Contents (Word 2000 SR1)

    Word probably cannot combine these two lines automagically. However, if you manually assign the entries for the TOC, you can combine the first line's information with the second line's information using two STYLEREF fields. This is not as bad as it sounds.

    Your Table of Contents:

    { TOC f h z } This is a TOC field created by the Table of Contents with manual marking

    Your Document:

    Module 1 .......................................1 Style is Manual#
    Module Title ..................................1 Style is ManualTitle
    { TC "{ STYLEREF "Manual#" } { STYLEREF "ManualTitle" }" }
    The above line is a manual TOC entry marking that joins together the first-found text in the designated styles (searching upwards).

    Some notes:
    1. <LI>The curly braces must be inserted using Ctrl+F9 or the contents will not be processed by Word as a field.
      <LI>Spaces inside the quotation marks are significant; spaces outside are merely for clarity.
      <LI>It's a hassle to create those fields, but they are always the same, so once you've done it once, you can save it as an AutoText for regular re-insertion.
      <LI>The TC fields are inherently hidden (it's not a font attribute; it's something else) so you do not have to worry about them appearing in your final output.
      <LI>Because fields seem to be calculated in the order they appear in the document, you must update fields twice (at least!) for the Table of Contents to reflect all changes.
    Hope this helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •