Hi everyone,
I'm using LYX 2.0.6 and would like to use different colors in order to highlight specific words. I know I can do that by right clicking and choosing 'customize' and then apply a different color to the font but I would rather like to use some kind of template (like the attribute 'bold' etc.) so that I would be able to adjust the colors later by one click again (for example from blue to red).
Is that possible? Does anybody have a recommendation? Maybe in combination with the preamble?
Thanks!
LyX ⇒ Changing or applying different colors to the text font
-
- Posts: 1
- Joined: Fri Sep 13, 2013 2:54 pm
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 27
- Joined: Wed May 16, 2012 8:24 pm
Changing or applying different colors to the text font
In your document, you would set all the text you want to highlight with one of LyX's predefined colors (under the 'customize' menu as you pointed out), and then define that color however you want in the LaTeX Preamble (and redefine it whenever you want later on).
Edit the LaTeX preamble: Document > Settings ... > LaTeX Preamble
And then add something like the following:
All of the text that you highlighted with 'blue' will now appear in this new color whenever you typeset the document.
I'm not sure what color models the 'color' package has, but I know you can specify a color using RGB as shown above.
Edit the LaTeX preamble: Document > Settings ... > LaTeX Preamble
And then add something like the following:
Code: Select all
\usepackage{color}
\definecolor{blue}{RGB}{52,90,138}
I'm not sure what color models the 'color' package has, but I know you can specify a color using RGB as shown above.