1

Is there a color palette in LyX (similar to that in MS Word)? I frequently use colors and the quickest way I know of doing it now is to select text, click on the Text Style button, select color, and click "Apply" or "OK".

  • To make sure I understand your question, you would like to choose a color that is not one of the 19 options that LyX gives you in the Text Style dialog, right? – scottkosty May 21 '18 at 3:35
  • No I want something similar to MS Word (and many other programs) where there is a little menu (palette) of colors and I can just click on a color to get that color. Instead of going through the aforementioned four steps. – Kenny LJ May 21 '18 at 3:43
  • I see. So you would like to choose one of those colors, e.g. "Red". You just want to be able to do it in a more efficient way. – scottkosty May 21 '18 at 4:31
2

You can create a shortcut for a specific color, as answered here. Or, if you want to just apply the last text style, you can click on the toolbar button that has the tooltip "Apply last".

Other than those specific case (e.g., if you want to use many different colors often), it does require the steps that you already mentioned in your post. The reason for why LyX does not make it easy to do with two clicks (like, e.g., Microsoft Office and Libre Office), I believe, is that for most users of LaTeX it is more common to set colors globally, and to avoid "finger painting" text manually. Thus, the LaTeX (and LyX) way of using color would be to set a style, e.g. "important", where the color of "important" is, e.g., "blue". This way, if you (or your editor or co-author) decide later on that "important" text should be "red", you can easily change it. For more information on this philosophy (i.e., the principles behind the design decision of LyX), you can see the Wikipedia page Separation of content and presentation.

Note that in LyX, it is easy to set the custom style of text with two clicks (e.g. in the layout box, or Insert > Custom Insets).

All that said, I think it would be a valid feature request to LyX to have an easier way to set the color. The above explanation is just meant to explain why this (to my knowledge) has never been requested before.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.