TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
I can't seem to get the TOC1 style to totally eliminate the ...... or the
page # after the Chapter #. I've cleared all tabs in the TOC1 style. And,
when I apply the style, there's still a tab after the chapter #, which is
followed by the page number. It looks like this:
Chapter 1 >(tab) 1
However, when I update the TOC by highlighting the TOC contents and pressing
F9, the style goes back to this:
How come the style formats I specified keep getting overwritten? After this
happens, the only way I have been able to clear the ......... is to reapply
the style, and the weird thing is, the style does not have a tab, so why is
it formatted with the tab? And, even if I reapoly the style, there's still
a tab after the chapter #, which is followed by the page number and it looks
like this (as shown above):
Chapter 1 >(tab) 1
So, I have only eliminated the ..... between the Chapter # and page number.
Here's the solution. As you can see, you can't solve it by using the
options in the TOC dialog box alone. That only allows you to turn it off
for all levels of the TOC, which I did not want. To turn it off for one
level or specific levels, you must use the field option \n.
From David Chinell:
First of all, remember to clear the 'Automatically
update' check box from all styles when you're
finished working on the templates. This is a
potentially dangerous setting to leave turned on.
I added an RJ tab with dot leader to TOC1 through
TOC4 because I want the styles to put that tab and
leader in place, not the TOC field.
Here's how I proceeded next. I toggled fields to
show the field codes, looked at your TOC field,
and deleted all the options I didn't want. To
suppress the TOC 1 page number, I added the \n 1-1
option. For future reference, the TOC field
options are all discussed in the online Help and
in the insert field dialog boxes as well.
I saved all these changes in the TOC.dot document.