I tried to specify a RGB color in a color box in this way, but it doesn't recognize RGB, only rgb that is a different thing. How can I specify a RGB color in a color box? \\documentclass{article} \\
38 Werner has shown the rgb-syntax to mix colors, egreg has shown how to define a color in RGB and then use it. If you want to specify a color with RGB values [0-255] without defining it before, you can use the rgb-syntax Werner has shown by setting the optional div-parameter to 255 (see xcolor package documentation, pages 13 and 16).
I would like to check if a color is defined either passing the RGB numbers or a colorname to the key categoryColorPrimary / categoryColorSecondary. Using xstring doesnt feel right and I need to expand the argument.
With \textcolor you can use an optional argument to specify a colour model. For instance to use an rgb colour without defining a named colour you can use (of course this also works with other colour models such as HTML): \documentclass[border=3.14]{standalone} \usepackage{color} \begin{document} \textcolor[rgb]{1,0,0}{My colored text} \end{document}
The color package also supports decimal values in the RGB color model that accepts integer values in the interval [0,255]. On the other hand, xcolor offers much more features, so it's better to use it.
What color is this? I tried \\textcolor{orange}{text} but it gives slightly lighter color. How can I get similar color as the above image text provably efficient exploration and function approximation?
However, I would like to specify the color by rgb rather than having to only select from predefined colors. Why? because my plots are machine generated, and I can compute a set of n colors for n graphs.
@Dave: Inside the \makecvtitle macro you'll see the family/last name uses color2 while the first name uses color2!50 (50% of color2). In your other documents, add \usepackage{xcolor} \definecolor{color1}{rgb}{X,X,X} \colorlet{color2}{color1!50} to obtain two colours you can use. Of course, as is shown above, color1 and color2 depend on the colour scheme you choose for your CV. The font is the ...
I'd like to move the definition of a color into a separate file for some reasons (cf forward in robust-externalize for details), but I don't know how to extract the definition of a color from its n...