A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

TOC and styles



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2004, 09:19 PM
Word user
external usenet poster
 
Posts: n/a
Default TOC and styles

When I create a TOC using Insert, Reference in the
toolbar, the TOC contains 3 headings that aren't styled as
Heading 1, 2, 3 etc. I am wondering why it is including
these, as their style is normal.

Thanks!!
  #2  
Old September 24th, 2004, 12:33 AM
Dayo Mitchell
external usenet poster
 
Posts: n/a
Default

Have you been using the Document Map on this doc?

If you have:
When you switch into the document map, it applies outline levels to things
it thinks are headings (short, one line paras, usually), regardless of
whether you already have headings. It been reported in Win & Mac versions
of Word from 97 to 2004, and it's a bug, or a badly-designed feature if you
are in a charitable mood. Suggested workarounds and a couple aids if Doc
Map just ruined your careful formatting:

Don't use the Document Map, use Outline View instead:
http://www.mvps.org/word/FAQs/Format...singOLView.htm

On switching into the Doc Map, look to see if a new AutoFormat has been
added to the Undo list. That's the application of outline levels. Undo it.
Remember to check for this every time, though it may not happen every time
(this workaround has only been tested on a Mac, and not thoroughly).

After the fact fixes:

Use the ResetPara command on the affected paragraphs to remove all direct
paragraph formatting and reset the para to only style-based formatting (the
doc map adds outline levels as direct formatting). ResetPara will not
affect direct character formatting (bold, etc) and the usual keyboard
shortcut is control-q (cmd-opt-q on a Mac).

Run this handy macro once posted by MVP Klaus Linke that resets the outline
level of every paragraph to the outline level that is set in the style.

Dim myPara As Paragraph
For Each myPara In ActiveDocument.Paragraphs
myPara.OutlineLevel = _
myPara.style.ParagraphFormat.OutlineLevel
Next myPara

If necessary, see:
What do I do with macros sent to me by other newsgroup readers to help me
out?
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm
(Mac: http://word.mvps.org/MacWordNew/InstallMacroMac.htm)

Hope that helps,
DM



On 9/23/04 1:19 PM, "Word user" wrote:

When I create a TOC using Insert, Reference in the
toolbar, the TOC contains 3 headings that aren't styled as
Heading 1, 2, 3 etc. I am wondering why it is including
these, as their style is normal.

Thanks!!


  #3  
Old September 24th, 2004, 12:33 AM
Dayo Mitchell
external usenet poster
 
Posts: n/a
Default

Have you been using the Document Map on this doc?

If you have:
When you switch into the document map, it applies outline levels to things
it thinks are headings (short, one line paras, usually), regardless of
whether you already have headings. It been reported in Win & Mac versions
of Word from 97 to 2004, and it's a bug, or a badly-designed feature if you
are in a charitable mood. Suggested workarounds and a couple aids if Doc
Map just ruined your careful formatting:

Don't use the Document Map, use Outline View instead:
http://www.mvps.org/word/FAQs/Format...singOLView.htm

On switching into the Doc Map, look to see if a new AutoFormat has been
added to the Undo list. That's the application of outline levels. Undo it.
Remember to check for this every time, though it may not happen every time
(this workaround has only been tested on a Mac, and not thoroughly).

After the fact fixes:

Use the ResetPara command on the affected paragraphs to remove all direct
paragraph formatting and reset the para to only style-based formatting (the
doc map adds outline levels as direct formatting). ResetPara will not
affect direct character formatting (bold, etc) and the usual keyboard
shortcut is control-q (cmd-opt-q on a Mac).

Run this handy macro once posted by MVP Klaus Linke that resets the outline
level of every paragraph to the outline level that is set in the style.

Dim myPara As Paragraph
For Each myPara In ActiveDocument.Paragraphs
myPara.OutlineLevel = _
myPara.style.ParagraphFormat.OutlineLevel
Next myPara

If necessary, see:
What do I do with macros sent to me by other newsgroup readers to help me
out?
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm
(Mac: http://word.mvps.org/MacWordNew/InstallMacroMac.htm)

Hope that helps,
DM



On 9/23/04 1:19 PM, "Word user" wrote:

When I create a TOC using Insert, Reference in the
toolbar, the TOC contains 3 headings that aren't styled as
Heading 1, 2, 3 etc. I am wondering why it is including
these, as their style is normal.

Thanks!!


  #4  
Old September 24th, 2004, 12:39 AM
Dayo Mitchell
external usenet poster
 
Posts: n/a
Default

PS. Sorry, forgot to mention the necessary piece of information that the
TOC picks up text formatted with outline levels.

On 9/23/04 4:33 PM, "Dayo Mitchell" wrote:

Have you been using the Document Map on this doc?

If you have:
When you switch into the document map, it applies outline levels to things
it thinks are headings (short, one line paras, usually), regardless of
whether you already have headings. It been reported in Win & Mac versions
of Word from 97 to 2004, and it's a bug, or a badly-designed feature if you
are in a charitable mood. Suggested workarounds and a couple aids if Doc
Map just ruined your careful formatting:

Don't use the Document Map, use Outline View instead:
http://www.mvps.org/word/FAQs/Format...singOLView.htm

On switching into the Doc Map, look to see if a new AutoFormat has been
added to the Undo list. That's the application of outline levels. Undo it.
Remember to check for this every time, though it may not happen every time
(this workaround has only been tested on a Mac, and not thoroughly).

After the fact fixes:

Use the ResetPara command on the affected paragraphs to remove all direct
paragraph formatting and reset the para to only style-based formatting (the
doc map adds outline levels as direct formatting). ResetPara will not
affect direct character formatting (bold, etc) and the usual keyboard
shortcut is control-q (cmd-opt-q on a Mac).

Run this handy macro once posted by MVP Klaus Linke that resets the outline
level of every paragraph to the outline level that is set in the style.

Dim myPara As Paragraph
For Each myPara In ActiveDocument.Paragraphs
myPara.OutlineLevel = _
myPara.style.ParagraphFormat.OutlineLevel
Next myPara

If necessary, see:
What do I do with macros sent to me by other newsgroup readers to help me
out?
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm
(Mac: http://word.mvps.org/MacWordNew/InstallMacroMac.htm)

Hope that helps,
DM



On 9/23/04 1:19 PM, "Word user" wrote:

When I create a TOC using Insert, Reference in the
toolbar, the TOC contains 3 headings that aren't styled as
Heading 1, 2, 3 etc. I am wondering why it is including
these, as their style is normal.

Thanks!!



  #5  
Old September 24th, 2004, 12:39 AM
Dayo Mitchell
external usenet poster
 
Posts: n/a
Default

PS. Sorry, forgot to mention the necessary piece of information that the
TOC picks up text formatted with outline levels.

On 9/23/04 4:33 PM, "Dayo Mitchell" wrote:

Have you been using the Document Map on this doc?

If you have:
When you switch into the document map, it applies outline levels to things
it thinks are headings (short, one line paras, usually), regardless of
whether you already have headings. It been reported in Win & Mac versions
of Word from 97 to 2004, and it's a bug, or a badly-designed feature if you
are in a charitable mood. Suggested workarounds and a couple aids if Doc
Map just ruined your careful formatting:

Don't use the Document Map, use Outline View instead:
http://www.mvps.org/word/FAQs/Format...singOLView.htm

On switching into the Doc Map, look to see if a new AutoFormat has been
added to the Undo list. That's the application of outline levels. Undo it.
Remember to check for this every time, though it may not happen every time
(this workaround has only been tested on a Mac, and not thoroughly).

After the fact fixes:

Use the ResetPara command on the affected paragraphs to remove all direct
paragraph formatting and reset the para to only style-based formatting (the
doc map adds outline levels as direct formatting). ResetPara will not
affect direct character formatting (bold, etc) and the usual keyboard
shortcut is control-q (cmd-opt-q on a Mac).

Run this handy macro once posted by MVP Klaus Linke that resets the outline
level of every paragraph to the outline level that is set in the style.

Dim myPara As Paragraph
For Each myPara In ActiveDocument.Paragraphs
myPara.OutlineLevel = _
myPara.style.ParagraphFormat.OutlineLevel
Next myPara

If necessary, see:
What do I do with macros sent to me by other newsgroup readers to help me
out?
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm
(Mac: http://word.mvps.org/MacWordNew/InstallMacroMac.htm)

Hope that helps,
DM



On 9/23/04 1:19 PM, "Word user" wrote:

When I create a TOC using Insert, Reference in the
toolbar, the TOC contains 3 headings that aren't styled as
Heading 1, 2, 3 etc. I am wondering why it is including
these, as their style is normal.

Thanks!!



  #6  
Old September 24th, 2004, 02:09 PM
Stefan Blom
external usenet poster
 
Posts: n/a
Default

Also note that it is quite possible to prevent the table of contents
from picking up paragraphs that have been assigned outline levels as
direct formatting: Simply press ALT+F9 to display field codes. For the
TOC field, delete the \u switch and then press F9 to update the TOC.

--
Stefan Blom


"Dayo Mitchell" wrote:
PS. Sorry, forgot to mention the necessary piece of information

that the
TOC picks up text formatted with outline levels.

On 9/23/04 4:33 PM, "Dayo Mitchell" wrote:

Have you been using the Document Map on this doc?

If you have:
When you switch into the document map, it applies outline levels

to things
it thinks are headings (short, one line paras, usually),

regardless of
whether you already have headings. It been reported in Win & Mac

versions
of Word from 97 to 2004, and it's a bug, or a badly-designed

feature if you
are in a charitable mood. Suggested workarounds and a couple aids

if Doc
Map just ruined your careful formatting:

Don't use the Document Map, use Outline View instead:
http://www.mvps.org/word/FAQs/Format...singOLView.htm

On switching into the Doc Map, look to see if a new AutoFormat has

been
added to the Undo list. That's the application of outline levels.

Undo it.
Remember to check for this every time, though it may not happen

every time
(this workaround has only been tested on a Mac, and not

thoroughly).

After the fact fixes:

Use the ResetPara command on the affected paragraphs to remove all

direct
paragraph formatting and reset the para to only style-based

formatting (the
doc map adds outline levels as direct formatting). ResetPara will

not
affect direct character formatting (bold, etc) and the usual

keyboard
shortcut is control-q (cmd-opt-q on a Mac).

Run this handy macro once posted by MVP Klaus Linke that resets

the outline
level of every paragraph to the outline level that is set in the

style.

Dim myPara As Paragraph
For Each myPara In ActiveDocument.Paragraphs
myPara.OutlineLevel = _
myPara.style.ParagraphFormat.OutlineLevel
Next myPara

If necessary, see:
What do I do with macros sent to me by other newsgroup readers to

help me
out?
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm
(Mac: http://word.mvps.org/MacWordNew/InstallMacroMac.htm)

Hope that helps,
DM



On 9/23/04 1:19 PM, "Word user" wrote:

When I create a TOC using Insert, Reference in the
toolbar, the TOC contains 3 headings that aren't styled as
Heading 1, 2, 3 etc. I am wondering why it is including
these, as their style is normal.

Thanks!!










  #7  
Old September 24th, 2004, 02:09 PM
Stefan Blom
external usenet poster
 
Posts: n/a
Default

Also note that it is quite possible to prevent the table of contents
from picking up paragraphs that have been assigned outline levels as
direct formatting: Simply press ALT+F9 to display field codes. For the
TOC field, delete the \u switch and then press F9 to update the TOC.

--
Stefan Blom


"Dayo Mitchell" wrote:
PS. Sorry, forgot to mention the necessary piece of information

that the
TOC picks up text formatted with outline levels.

On 9/23/04 4:33 PM, "Dayo Mitchell" wrote:

Have you been using the Document Map on this doc?

If you have:
When you switch into the document map, it applies outline levels

to things
it thinks are headings (short, one line paras, usually),

regardless of
whether you already have headings. It been reported in Win & Mac

versions
of Word from 97 to 2004, and it's a bug, or a badly-designed

feature if you
are in a charitable mood. Suggested workarounds and a couple aids

if Doc
Map just ruined your careful formatting:

Don't use the Document Map, use Outline View instead:
http://www.mvps.org/word/FAQs/Format...singOLView.htm

On switching into the Doc Map, look to see if a new AutoFormat has

been
added to the Undo list. That's the application of outline levels.

Undo it.
Remember to check for this every time, though it may not happen

every time
(this workaround has only been tested on a Mac, and not

thoroughly).

After the fact fixes:

Use the ResetPara command on the affected paragraphs to remove all

direct
paragraph formatting and reset the para to only style-based

formatting (the
doc map adds outline levels as direct formatting). ResetPara will

not
affect direct character formatting (bold, etc) and the usual

keyboard
shortcut is control-q (cmd-opt-q on a Mac).

Run this handy macro once posted by MVP Klaus Linke that resets

the outline
level of every paragraph to the outline level that is set in the

style.

Dim myPara As Paragraph
For Each myPara In ActiveDocument.Paragraphs
myPara.OutlineLevel = _
myPara.style.ParagraphFormat.OutlineLevel
Next myPara

If necessary, see:
What do I do with macros sent to me by other newsgroup readers to

help me
out?
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm
(Mac: http://word.mvps.org/MacWordNew/InstallMacroMac.htm)

Hope that helps,
DM



On 9/23/04 1:19 PM, "Word user" wrote:

When I create a TOC using Insert, Reference in the
toolbar, the TOC contains 3 headings that aren't styled as
Heading 1, 2, 3 etc. I am wondering why it is including
these, as their style is normal.

Thanks!!










  #8  
Old September 24th, 2004, 03:07 PM
Dayo Mitchell
external usenet poster
 
Posts: n/a
Default

Much simpler than any of my solutions! Thanks, Stefan, saved the tip. The
things I don't know about field codes are legion...

On 9/24/04 6:09 AM, "Stefan Blom" wrote:

Also note that it is quite possible to prevent the table of contents
from picking up paragraphs that have been assigned outline levels as
direct formatting: Simply press ALT+F9 to display field codes. For the
TOC field, delete the \u switch and then press F9 to update the TOC.


  #9  
Old September 24th, 2004, 03:07 PM
Dayo Mitchell
external usenet poster
 
Posts: n/a
Default

Much simpler than any of my solutions! Thanks, Stefan, saved the tip. The
things I don't know about field codes are legion...

On 9/24/04 6:09 AM, "Stefan Blom" wrote:

Also note that it is quite possible to prevent the table of contents
from picking up paragraphs that have been assigned outline levels as
direct formatting: Simply press ALT+F9 to display field codes. For the
TOC field, delete the \u switch and then press F9 to update the TOC.


  #10  
Old September 24th, 2004, 04:34 PM
Robert M. Franz
external usenet poster
 
Posts: n/a
Default

Hi Dayo

Dayo Mitchell wrote:
Much simpler than any of my solutions! Thanks, Stefan, saved the tip. The
things I don't know about field codes are legion...


Simpler, yes, but there's much in favour of making sure there are no
paragraphs with a wrong outline level in contrast to making sure the TOC
picks up only "Headings", IMHO (unles there's a good reason why these
paragraphs have an outline level bodytext, of course).

2cents
..bob
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.