what I eventually did is copying the whole text into a new document to avoid any spaces with different language (because when I started the document I had Hebrew as an editing language).
it took a lot of time to re-define the styles and the numbering but eventually it worked, and the table of contents was just perfect!
|