View Single Post
  #10   Report Post  
Posted to microsoft.public.word.docmanagement
DeanH DeanH is offline
external usenet poster
 
Posts: 1,862
Default Suddenly captions and other text in document map and TOC

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