5.1 Why and When to use Character Styles

Character styles are styles that apply to individual letters and words rather than to entire paragraphs. Character styles are very powerful (and somewhat dangerous) because they can override paragraph styles. For example, you can use character styles to changing the font weight of a few words inside of a paragraph.

Character styles can be used for three purposes. First, they can be used to define a style change within an existing paragraph. For example, if you want a couple of words in a paragraph to be bold, without the rest of the paragraph being bold, you can select the words you want bold, then click Styles, Strong Emphasis in the top menu of Libre Writer. Note that this is different from Direct Formatting where you would select a few words and then click on the BOLD icon in your formatting toolbar.

The second purpose of character styles is to define any styles that you want to remain after clicking Format, Clear Direct Formatting in the top menu. If you click on the Bold Icon in your formatting toolbar, that formatting will be eliminated after clicking Clear Direct Formatting. But if you click on Styles, Strong Emphasis, the bold text will remain and not be changed back to normal text.

 

The third purpose of character styles is to over-ride any existing Paragraph Styles. This is the method used by most Vanity Book publishers as it assures that their custom styles will be used when publishing your print book. But this excessive use of character styles creates major problems for the appearance of Ebooks and websites as character styles are not converted into CSS classes. Instead, they are converted into what are called CSS Inline Styles – which leads to bloated and confusing coding.

We therefore do not recommend using character styles to override paragraph styles – except for as needed to change formatting within a paragraph.

There is another important reason to minimize the use of character styles and instead use paragraph styles whenever possible. This reason is that Character styles have a very limited number of styling properties. For example, while custom paragraph styles allow us to control the vertical spacing between paragraphs, Character styles do not. Here is the Character Style Edit Screen:

01

Note that there are only 6 tabs where paragraph styles edit screen has 14 tabs.