How to find paragraph that are using a list style

i have a file in which there is a custom style in “list styles” which i want to remove, but the “delete” button is greyed, which means that the style is used somewhere in the file. i tried with searching box and with alternative search and replace plugin but i cant find a way to easily find the paragraph that is using that style.

LO: Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 4; OS: Linux 6.9; UI render: default; VCL: kf6 (cairo+wayland)
Locale: ar-DZ (en_US.UTF-8); UI: en-US
24.2.2-3
Calc: threaded
OS: Manjaro

For example, you can switch on highlighting in the sidebar below to highlight the paragraph styles used in the document in colour.

1 Like

this will only highlight the paragraph styles and not the list styles

First problem is to detect usage occurrences. For that modify the list style to make its usage highly visible.

  1. right-click on list style name in style navigator and Edit Style
  2. in Customize tab, click on 1-10 Level
  3. Number drop-down menu may display blank, meaning numbering is configure separately per level
    Choose Bullet. Press Select to choose a highly distinguishable bullet (U+E571 or U+E57B are good candidates)
  4. Character style drop-down menu may display blank, which means different character styles are applied on each level
    This does not matter. Select a character style you know not to be in use (or create a new one before the procedure). You can also use default Bullets
  5. Position tab, click on 1-10 Level and set positions to silly values. I suggest Aligned at 10 cm (at least half page width) and Indent at 12 cm (2 cm more than indent
  6. OK

Modify the chosen character style. Optionally increase font size in Font. in Font Effects, set Font Color, e.g. red (this works best if chosen colour is “aggressive” and not used in the document).

You can now hunt for the occurrences and delete them. The reason why I suggest to indent at nonsensical value is to cope with items where bullet/number has been suppressed by Bksp creating an unnumbered item without changing paragraph style nor list style.

When done, restore the character style if it was not an ad-hoc one in case it is used somewhere else.

dummy paragraph

1 Like