Reply
 
Thread Tools Display Modes
  #1   Report Post  
Rob Nicholson
 
Posts: n/a
Default Tab character in table of contents when using heading styles

This is a pretty esoteric and fiddly question so I'll be real chuffed if
there is an answer :-)

We make intensive use of headings (heading 1, heading 2 & heading 3) in 100+
page documents and the automatic generation of the table of contents. All of
a sudden on one PC, the formatting of the TOC is going AWOL. I've tracked it
down to the tab character from the heading being used in the TOC (TOC 2 in
this case) but not being able to define the position for this tab.

Consider the following heading:

1.2TABWelcome to the machine

In heading 2 style, we use outline numbering configured to include a tab
after the number. All we type in is "Welcome to the machine"

When this is used in the TOC, TOC 2 style is applied. TOC 2 style is Heading
1+1.2cm indent. When the TOC is built, the following gets generated:

1.2cm indent1.2TABWelcome to the machineRIGHT TAB to 15.9cm with
dots34 (page 34)

This is expected: the 1.2cm indent comes from the TOC 2 style, the first tab
from the tab in the heading style itself and the right tab and page number
added by automatic TOC function.

Now the problem is that first TAB brought in the heading string - the
position that ends up *varies* from PC to PC. There is no specific tab
position defined. On my PC (the faulty) one, a tab position is set at 5.93"
which causes a huge gap after the number. This used to work perfectly.
Another user on another PC it ends up at 1.69" which actually looks okay.

I guess the question is "Where is this tab stop getting it's value from?" as
it's not in any of the obvious styles (i.e. the heading or TOC styles).

A workaround is not use a tab character after the heading number in heading
2 - use a space instead. Things don't line up quite as nicely but it's okay
as workaround.

Cheers, Rob.

PS. Word 2000 on Windows 2000 Professional



  #2   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

You need a tab stop in the TOC style. If you create a hanging indent in the
style, in most cases a tab stop is added automatically.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Rob Nicholson" wrote in message
...
This is a pretty esoteric and fiddly question so I'll be real chuffed if
there is an answer :-)

We make intensive use of headings (heading 1, heading 2 & heading 3) in

100+
page documents and the automatic generation of the table of contents. All

of
a sudden on one PC, the formatting of the TOC is going AWOL. I've tracked

it
down to the tab character from the heading being used in the TOC (TOC 2 in
this case) but not being able to define the position for this tab.

Consider the following heading:

1.2TABWelcome to the machine

In heading 2 style, we use outline numbering configured to include a tab
after the number. All we type in is "Welcome to the machine"

When this is used in the TOC, TOC 2 style is applied. TOC 2 style is

Heading
1+1.2cm indent. When the TOC is built, the following gets generated:

1.2cm indent1.2TABWelcome to the machineRIGHT TAB to 15.9cm with
dots34 (page 34)

This is expected: the 1.2cm indent comes from the TOC 2 style, the first

tab
from the tab in the heading style itself and the right tab and page number
added by automatic TOC function.

Now the problem is that first TAB brought in the heading string - the
position that ends up *varies* from PC to PC. There is no specific tab
position defined. On my PC (the faulty) one, a tab position is set at

5.93"
which causes a huge gap after the number. This used to work perfectly.
Another user on another PC it ends up at 1.69" which actually looks okay.

I guess the question is "Where is this tab stop getting it's value from?"

as
it's not in any of the obvious styles (i.e. the heading or TOC styles).

A workaround is not use a tab character after the heading number in

heading
2 - use a space instead. Things don't line up quite as nicely but it's

okay
as workaround.

Cheers, Rob.

PS. Word 2000 on Windows 2000 Professional




  #3   Report Post  
Rob Nicholson
 
Posts: n/a
Default

You need a tab stop in the TOC style. If you create a hanging indent in
the
style, in most cases a tab stop is added automatically.


Hi Susanne,

Whilst that sorts out the left alignment in the TOC, the right hand tab then
fails as you end up with:

1.1TABHeading TextTAB45

However, the line now has three tabs set:

1.5cm: The one I added in TOC 2 style
6.13cm: The one that's magically appearing
15.9.cm: The one that's added by the TOC mechanism to right justify the
page number

So in the above, "Heading Text" is postioned at 1.5cm (correct) but the page
number is position at 6.13cm as the heading text is short enough to end
before 6.13cm.

I can post an example if that helps?

Cheers, Rob.


  #4   Report Post  
garfield-n-odie
 
Posts: n/a
Default

Hi, Rob. Maybe the following article will explain that magic tab:
http://www.word.mvps.org/FAQs/Format...CJasonTabs.htm .

Rob Nicholson wrote:

Hi Susanne,

Whilst that sorts out the left alignment in the TOC, the right hand tab then
fails as you end up with:

1.1TABHeading TextTAB45

However, the line now has three tabs set:

1.5cm: The one I added in TOC 2 style
6.13cm: The one that's magically appearing
15.9.cm: The one that's added by the TOC mechanism to right justify the
page number

So in the above, "Heading Text" is postioned at 1.5cm (correct) but the page
number is position at 6.13cm as the heading text is short enough to end
before 6.13cm.

I can post an example if that helps?

Cheers, Rob.



  #5   Report Post  
Rob Nicholson
 
Posts: n/a
Default

Hi, Rob. Maybe the following article will explain that magic tab:
http://www.word.mvps.org/FAQs/Format...CJasonTabs.htm .


Indeed that does explain a lot - "Jason tabs", I like it :-) There are a few
things to try.

Later...

Cheers, Rob.


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading layout loses table of contents ASwadener Microsoft Word Help 14 January 10th 05 04:40 PM
Table of contents lorieaselin Microsoft Word Help 1 January 6th 05 06:42 PM
table of contents and styles Peggy Y. Microsoft Word Help 1 December 21st 04 12:49 AM
How do I format my Table of Contents to have hyperlinks? fadeout Microsoft Word Help 3 December 13th 04 10:21 PM
How do i get table of contents of 5 different documents in 6th do. KK Microsoft Word Help 1 December 6th 04 06:24 PM


All times are GMT +1. The time now is 09:07 AM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"