View Single Post
  #14   Report Post  
Posted to microsoft.public.word.docmanagement
Menl Menl is offline
external usenet poster
 
Posts: 13
Default Suddenly captions and other text in document map and TOC

I think I have solved this for real this time.

What I learned from countless websites on this subject is that when word
does not find any styles with an attached outline level (except the heading
styles) it start to guess by itself. And guesses wrong

So I created a single style that has an outline level attached. I chose the
style used for the table of contents. When reopening the document now, no
extra entries are visible, so word has stopped guessing.

Hope this will be of help to others as well

Thank you both for your advice in this

Regards MenL



"Stefan Blom" wrote:

Instead of changing the Normal style, what you should be doing is selecting
the text and pressing Ctrl+Q, which resets paragraph formatting to that of
the underlying style. But as you have seen, the fix might be just temporary.

Clearing the "Define styles based on your formatting" option in the
AutoCorrect dialog box (AutoFormat As You Type tab) might improve the
situation.

However, since the Document Map itself is the problem, as explained at
http://word.mvps.org/faqs/general/DocumentMap.htm, you may have to stop
using it altogether and start using Outline view instead.

--
Stefan Blom
Microsoft Word MVP



"Menl" wrote in message
...
I looked a bit further into it and narrowed it down to the normal style.

When I open the document it introduces all the new entries. If I do the
following steps all unwanted entries are cleared
- select some text that uses the normal style
- In the stylepane select the normal style and tell word to update the
style
to match the selection
- When I now look at the assigned outline level of style:normal it says
level 1
- I set this to body text and click OK
- All unwanted entries are now gone

So I reason that the affected styles are linked to normal and are cleaned
as
soon as normal is clean again.

However, saving en reopening the file introduces the unwanted entries.


As stefan Blom says, it appears word applies the styles when opening the
file and looks for items to include. As not all items that use a
particular
style are affected this makes sense.

So the basis question in order to solve this is how to prevent word from
doing this, if at all possible.




"DeanH" wrote:

Stefan, thanks for that, I was wondering if it was something like that,
but I
cannot find anything to suggest a solution.
Thanks
DeanH


"Stefan Blom" wrote:

The problem with the Document Map is that it assigns outline levels to
paragraphs that looks like headings (short paragraphs such as captions
are
often affected).

--
Stefan Blom
Microsoft Word MVP



"DeanH" wrote in message
...
hmm, is the document OK? I.e. it is not starting to corrupt.
Does Open and Repair do anything?
I don't tend to use Document Map on a regular basis and have never
seen
this, or been able to replicate here.
DeanH


"Menl" wrote:



"DeanH" wrote:

After reopen, the TOC is ok, do you refresh the TOC, does the
incorrect
entries appear?
No TOC stays OK. Here I removed the /u field code option. This
prevents
the
TOC from including direct formatting entries of the document map
from
appearing.


Check the styles (the specific ones that are being affected) in
the
template
of this document, do the styles have the Outline Level assigned?

No style has an outline level assigned, exept the heading styles

If so, your settings in Word could be "Automatically update
document
styles"
is checked.
Sorry I don't have 2007 at work so cannot point you to where this
setting is.

I couldn't fine an overall setting like that, just per style, but
googling
for it found something at the MVP site. This addressed that possibly
the
nomal style was wrong and provided a way of not update
automatically.
This
didn't help.

Strangely not all captions that use the style that appears are
included
in
the document map, just some of them.


"Menl" wrote:

Part of the problem remains.

the TOC issue seems to be fixed.

The document map however not. I ran the macro that assigns to
every
paragraph the outline level corresponding to the style. Sure
enough
the
document map got cleaned up.

However when I saved, closed down and reopened the file, the
document
map
got filed with the extra entries again.
Is it possible to prevent word 2007 from automatically doing
this (as
it is
indicated in the document you refered to to be a buggy feature
of
word, at
least the older versions)



"DeanH" wrote:

Glad you got it solved, for now at least ;-)
All the best
DeanH


"Menl" wrote:

Thank you very much DeanH,

to fix the TOC entries, the document you linked to proposed
removing the /u
in the field code, this fixed the TOC, but not yet the
document
map.

Here I tried the CTRL-Q on each entry to remove the direct
formatting. The
styles allreayde had bodytext selected, so that wasn't the
problem.

It is solved for now, hope it stays that way

Thank you very much



"DeanH" wrote:

The Document Map requires the Outline Level of the styles
to
work.
Check that the styles of the captions, etc that should not
be
in the
Document Map do not have an Outline Level assigned, ie
they
should be
BodyText.
See http://word.mvps.org/faqs/general/DocumentMap.htm for
further information.
--
Hope this helps
DeanH


"Menl" wrote:

Hi,

I'm working on my thesis, which has now about 100 pages.
Before I started I
read up on how to use word 2007 for large documents and
so I
first created
the general outline, seperated everything in appropriate
sections, defined
custom styles. After this was OK I started editing the
actual
content making
sure everyting is formatted using styles and avoiding
direct
formatting as
much as I can. Everything worked as expected.

Until now...

Suddenly all kind of extra entries show up in the
document
map such as
captions of figures, and tables, but also some other
styles I
defined.
Strangely not all figures and tables are included, just
some
of them. They
also show up in the TOC.
I've read up on this "feature" and it could be related
to
direct formatting.

So I selected all the extra entries and redefined the
correct
style (which
it was allready showing to have). And sure enough the
entry
was removed. But
to my surprise, when I opened the document the next day,
it
had all the extra
entries again.

So if a MVP or other word user could explain what is
going on
here and how
to fix it it is greatly appreciated. I would even go as
far
as editing the
XML directly in the word zip-package, if I knew it would
solve things.

Thanx in advance

Menl