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?
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}
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?
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.
@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...
In the file beamercolorthemedefault.sty you can find the color definition: \definecolor{beamer@blendedblue}{rgb}{0.2,0.2,0.7} \setbeamercolor{structure}{fg=beamer@blendedblue} and the structure color is used, for example, in \setbeamercolor{palette primary}{use=structure,fg=structure.fg} \setbeamercolor{titlelike}{parent=structure} \setbeamercolor{title}{parent=titlelike} \documentclass{beamer ...
I'm preparing a presentation using the following beamer theme: \\usetheme{AnnArbor} \\usecolortheme{beaver} Is there any easy way to change the yellow color to cyan each time it is used in the theme...