Description: Allow for the use of the character style(s) that are used in the source text in an index (TOC). Possible GUI could be in the character style selection in the TOC, could be a choice for referring to the character style(s) used in the source text. Or perhaps a check box for this purpose. This would be useful when the source text contains italics or bold for some of the words. Actual Results: Text in a heading: Carex section Ovales with the word Carex with the character style italics, the word section with no character style, and the word Ovales with the character style italics Expected Results: Impossible to have the character formatting in the TOC pulled directly from the source text. Reproducible: Always User Profile Reset: No Additional Info: It would be great if this could be implemented without having to manually change the formatting in the TOC as every time it is updated it will revert.
This enhancement could be worded in a more general fashion. When text is captured for whatever purpose (I'm thinking primarily of cross-references fields), the formatting applied to it should be also captured so that when the capture is inserted, it looks the same as the "origin". This is particularly useful for TOC and other indexes where the heading or reference can be intentionally decorated with styles. Presently, this decoration does not follow the capture and users must untick "Protected against manual changes" to reapply manually the decorations. Unfortunately, as soon as the TOC or table is updated, everything must be redone. Regarding cross-references, this enhancement must not break existing documents. Consequently it is suggested to add a new "Refer using" item, "Referenced text (formatted)". The present "Referenced text" continues to return plain text. This suggestion must be an obstacle to applying a character style over the field insertion. Since it is already possible, though tricky, to apply several character styles, just rule that character style user-addition takes precedence over captured styles. If there is direct formatting, consider this is off-spec (DF is not recommended except in special circumstances) and let the implementation sort out the mess. Alphabetical index: I see no possibility to it. Index keys are recorded through dialog text boxes which can't be styled. Consequently, alphabetical index is out of the scope of this enhancement. TOC or Table of xyz: in https://ask.libreoffice.org/t/how-to-use-the-character-style-from-the-text-pulled-into-an-index/96226/, David Werier would like to style chapter number component per component. This is not possible presently. I attached some thoughts about it id bug 148597. Working on the enhancement exposed here should not prevent future work on more elaborate structuring of captions and their references in an index.
Marking as duplicate of bug 87604, I see it as the same enhancement request. Thank you both. *** This bug has been marked as a duplicate of bug 87604 ***
(your comments are welcome in that other reports!)