Forum Discussion
Peter_Magpie1645
Nov 30, 2021Copper Contributor
Table of contents does not get updated in my Word document
Hi, I have this Word template (see the attachment) that I need to use for various documents but every time I write new sections and update the automatic TOC in it, I get an error message. W...
- Nov 30, 2021
If you press Alt+F9 to show the underlying field code, the following is shown:
This is a custom field code with the \t switch which uses a separator between style names and levels (a comma in this case). For example, the code above says that Heading 1 paragraphs should display at TOC level 2.
The challenge with the \t switch is that the separator may be different on different systems. The separator is defined by the regional settings in Windows.
It appears that your system does not recognize commas as a list separator. You can change the separator to a semi-colon (would usually work when a comma doesn't work). The downside is that your colleagues will run into trouble instead.
If possible, change the setting for list separator in Windows instead.
Stefan_Blom
Nov 30, 2021MVP
If you press Alt+F9 to show the underlying field code, the following is shown:
This is a custom field code with the \t switch which uses a separator between style names and levels (a comma in this case). For example, the code above says that Heading 1 paragraphs should display at TOC level 2.
The challenge with the \t switch is that the separator may be different on different systems. The separator is defined by the regional settings in Windows.
It appears that your system does not recognize commas as a list separator. You can change the separator to a semi-colon (would usually work when a comma doesn't work). The downside is that your colleagues will run into trouble instead.
If possible, change the setting for list separator in Windows instead.
- Peter_Magpie1645Nov 30, 2021Copper Contributor
Stefan_Blom thank you for your help. You are right, the semi-colons work for me in Poland, they do not work for my colleagues in the USA.
I wish I had asked this question earlier here, I was struggling with this TOC. Thanks once again.- Stefan_BlomDec 02, 2021MVP
Thanks for the follow-up.
It's a similar experience for me here in Sweden; the regional settings define semi-colons as list separators (and commas as decimal signs). 🙂