Unfortunately it is a company document and can’t be shared. A previous copy of the same document made 2 days earlier displays the TOC just fine. The red italic text just showed up today in the TOC for this current document.
To eliminate it being an older LO version, I installed LO v 24.8.4.2 and it did NOT fix the problem. I updated the index and it did not fix it. I suppose I could delete the index (TOC) and create it all over again or copy it from the older version.
Pressing the “Default” button in the “Table of Contents, Index or Bibliography” dialog for the Assignment Levels “Title”, “Level 1”… “Level 10” does not fix the problem. Neither will reasigning “Contents 1” to “Level 1” etc.
I just thought I’d check here first in case this has happened to other people. I can understand if the Styles for [Content 1] … Content 10] were red italic, but they’re not. Everything is default settings for TOC.
I deleted the Index (TOC) and created a new TOC. I accepted all of the defaults for the TOC , yet in the Preview when I was constructing the TOC, showed red italic text. Why? Creating the new TOC shows red italic text.
So I deleted the TOC, create a new page and copied by old TOC from my previous version of the document into that page. Sure enough, the TOC text turned red italic.
So I created a new OT document, put in a few headings and created a TOC for this document. The preview when creating the TOC was the correct black normal text. I created the TOC and it worked fine. Black normal text, no red italic text.
So somewhere in this ODT settings, it is changing the TOC to red italic text. In the Paragraph Styles pane I have “Show Previews” turned on and there are no Index entries with red italic text. There are no paragraph styles at all showing red italic.
I decide to play around with Paragraph Style: “Contents 1” and change it to a variety of font effects like Bold, Shadow, Strikethrough and all of these font effects work on the TOC Heading 1 as soon as I press the Apply button. But the Font Color stays red and the Font Style stays as italic. I can try to change the font to Green or Regular Style, but it has no effect on the TOC text. It is always some form of Red Italic.
I am at a loss as how to fix this. … But wait! What’s this???
I went to the Character Styles pane and went through those and guess what I found? I found “Index Link” character style under one of my own red italic character styles and “Index Link” inherited from this red italic parent. So I edited “Index Link” to inherit from “-None-” and the TOC font is now back to the normal black text. Whew! I didn’t drag “Index Link” anywhere yesterday because I never drag items in the Character Styles pane. I have no idea of how it got there.
So hopefully this solves the problem for anyone else who runs into this problem and doesn’t want to waste 2 hours trying to fix it like I have. I did have a LO crash a couple of days ago, so maybe this caused it? I don’t know. But at least it has been fixed.
I need a drink. 