View Single Post
  #2  
Old October 3rd, 2005, 12:14 PM
Stefan Blom
external usenet poster
 
Posts: n/a
Default Error: Table of Contents and Word renaming styles based on Word language settings...

By default, the TOC should pick up any paragraph formatted in a style
with an outline level specified (this includes the built-in heading
styles, regardless of their language-specific names). In other words,
transferring styles between countries should not be a problem, as long
as you use the default settings or simply add more levels of headings
in the Index and Tables dialog box.

Some changes do cause trouble, though. I know of one specific instance
(perhaps there are more) when Word inserts the \t switch and
explicitly specifies TOC levels (even if you use heading styles),
namely, if you use the Index and Tables dialog box to omit the Title
style (in Swedish: "Rubrik", could it be "Overskrift" in Norwegian?),
from your TOC.

The problem won't be apparent until the document is opened in a
different language version, when the TOC field cannot find a certain
built-in style, because the \t switch uses a localized version of its
name. :-(

You can prepare the document template by making sure that only
"allowed" styles have an outline level. Here's how: In the Modify
Style dialog box: Click FormatParagraph, and change the Outline Level
to the appropriate level or to "Body Text" (on the Indents and Spacing
tab).

Once styles are correctly setup with the outline level set (or
cleared), you can modify the TOC field code to read: { TOC \o "1-9"
\h }. This means that it will pick up only paragraphs whose style have
an outline level specified.

What's possible depends on your how much your users/co-workers know
about Word. Perhaps you don't expect them to modify TOC field codes.
In such a case, using custom styles could be an easier approach, and
the \t switch won't cause trouble. The down-side is of course that you
would lose some of the power attached to the built-in heading styles.

--
Stefan Blom
Microsoft Word MVP


skrev i meddelandet
...
Using norwegian Word 2003, (all updates installed).
Our Company use different languages, but we share the same

templates.
I receive documents from the others, (Enlish/swedish/Finnish..)
and when i open these documents the original stylenames are renamed

into
Norweian;
Header 1 change name to Oveskrift 1, and keeps all the userdefined
formats...

Problem: The TOC (tabe of Content) with all its subelevel still

refer to
Heading 1,
(inside the fieldcode), and when uptdating the TOCit looks for

Heading 1
style which is now Overskrift 1, and therby generates an error!!

What is the solution to solve this whitout changing inside the

field? Is it
best to create new stylenames in all our templates but call it
Our_Heading1 and use it
in the TOC?

It seems that it is not a good idea to use the buildt in stylenames

if they
are used in a field, and if the documnets are changed by different

language
versions?

(-and we can not change all the word languageversions into

English..)

Hope for help...
Arne