How to Apply Paragraph Styles in LibreOffice Based on Text Strings or Character Formatting

Sometimes you would like to apply a paragraph style to every paragraph of a document that has certain text or text patterns in it, or certain hard formatting, such as underlining. This article explains how to do this quickly and easily using the Find All function.

Steps

  1. Image titled Apply Paragraph Styles in LibreOffice Based on Text Strings or Character Formatting Step 1
    1
    Create the paragraph style that you want to apply. Manually apply all the formatting you want associated with this style to one paragraph. Then, under Format, choose Styles and Formatting, and with the formatted paragraph selected, choose the option to create a new style based on the selected text. Give the new style a name.
  2. Image titled Apply Paragraph Styles in LibreOffice Based on Text Strings or Character Formatting Step 2
    2
    Choose Find/Replace under the edit menu. In the find section, enter the characteristics you want to search for, such as a text string, or formatting characteristics, such as underlining, or red text, or italics.
    • You can also choose to work with regular expressions if you have learned how to use these. For example, \d$ will find every paragraph that ends with a number, if you have the regular expressions option selected.
  3. Image titled Apply Paragraph Styles in LibreOffice Based on Text Strings or Character Formatting Step 3
    3
    Rather than choosing Find, or Replace, choose Find All. This selects all the text in the document that matches the search criteria.
  4. Image titled Apply Paragraph Styles in LibreOffice Based on Text Strings or Character Formatting Step 4
    4
    After running Find All, open the Format, Styles and Formatting window and double-click on the format you want to apply to all text. For example, you can apply a section heading style to all text that was formatted with underlining.

Article Info

Categories: Office