https://bugs.documentfoundation.org/show_bug.cgi?id=157414
--- Comment #1 from ajlittoz <[email protected]> --- 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. -- You are receiving this mail because: You are the assignee for the bug.
