10

I have to do a fair amount of writing in red and black in the same document. In MS Office I would set a keyboard shortcut to switch between colors so I don't have to take my hands off the keyboard. Something like Alt+R for red and Alt+B for black.

How can I set up something similar in LibreOffice Writer? I've poked around in ToolsCustomizeKeyboard, but I can't figure it out.

2
  • One way I tried just now is to create two custom styles (call them Red and Blue) with appropriate font colours, and then assign shortcuts to them. But it seems the styles work on the entire line, so if you switch in the middle, the entire line's colour changes. Is that acceptable? If not, you might want to try creating macros.
    – muru
    Commented Aug 14, 2017 at 3:36
  • @muru Unfortunately I need to have both colors in the same line, although not the same word. I'm not sure how to work with macros in LO, but I'll poke around.
    – Seth
    Commented Aug 14, 2017 at 3:38

1 Answer 1

18

Muru's suggestion is close, but use Character styles, not Paragraph styles.

  1. Press F11 and click the icon for Character styles.

  2. Right-click Default Style, select New..., and change the font color to red. In the Organizer, name the font color Red, then press OK.

  3. Go to ToolsCustomize, select the Keyboard tab, find Alt+R and select it.

  4. Under Categories, choose Styles/Character. Under Function, select Red. Then click the Modify button.

    customize keyboard

  5. The Character Style for the Default Style is already black, so assign it to Alt+B and press OK.

  6. Finally, select words and press Alt+R.

    change word color

9
  • 3
    +1 for a very nicely formatted answer. When I delve into LO keyboard shortcuts this will also be valuable. Commented Aug 14, 2017 at 14:57
  • my version does not have this menu when I push F11 Commented Dec 11, 2019 at 20:34
  • In my current version, the menu option is View -> Styles, or find the Styles and Formatting icon in the sidebar on the right-hand side.
    – Jim K
    Commented Dec 13, 2019 at 14:02
  • 1
    Thanks, answer still works. Commented Feb 19, 2022 at 10:58
  • 1
    @alexzander: Press Ctrl+Z to undo any recent change, or restore Default Style by pressing Alt+B as explained in the answer.
    – Jim K
    Commented Jun 12, 2023 at 13:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .