Results 1 to 7 of 7
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Fontana, California, USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Header used in TOC (XP)

    Can I use a word or words in a header as the text included in a table of contents? If it's possible, how do I do it?

    Thanks - again

    Linda

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Header used in TOC (XP)

    The best way to do this is to put your word(s) in a paragraph in the body of the document, using a style such as Heading 1. You can then include this into the header using a { STYLEREF } field, and you can easily incorporate it into the TOC.

    StuartR

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Header used in TOC (XP)

    I found this fascinating, so I played around with it. There is at least one other way to have something show up in the TOC & the Header, if you don't want it to show up in the document. You can insert a TC field in the document (which is hidden in the document but will show up in a TOC) & bookmark the text portion of the field. Then use a REF field to show the bookmark in the header.

    e.g. { TC "This is text in a bookmark" f C l "1" }

    The above field will display in a TOC that uses TC fields (Table of Contents entry fields). Note the curly braces are inserted with Ctrl+F9, not typed. If you have hidden text showing, you can bookmark just the text inside the quotes (This is text in a bookmark). Let's say you name the bookmark bmk1. In your header, insert a REF field, {REF bmk1} (or simply {bmk1}).
    Cheers,

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Header used in TOC (XP)

    The challenge is trying to guess what page number is going to appear in the TOC.

    With a { STYLEREF } you can arrange for the header to contain the nearest text of the appropriate style, so the page number may be somwhat reasonable. With this approach you are going to need a section break just before the { TC }.

    StuartR

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Header used in TOC (XP)

    You're absolutely right. And, of course, I'm not sure what the value would be of having something show up in both the header & TOC if it also wasn't in the main document. I guess I needed an intellectual exercise. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  6. #6
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Fontana, California, USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Header used in TOC (XP)

    Thanks for the quick response - if I ever get to actually try this, I'll let you know if I could follow your directions. I, erroneously it turns out, thought I was ready to pursue this TOC - someday I reckon I will.

    Anyway - again, thanks.

    Linda

  7. #7
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Fontana, California, USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Header used in TOC (XP)

    I love it when someone finds me - er, my questions - fascinating. See the reply to Stuart - I'm trying to get the chance to try all this cool stuff. I'll let you know, as well, if I'm smart enough to follow your suggestion.

    Ta

    Linda

Posting Permissions

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