不幸的是,我无法在moderncv.cls
...
只有写道:
% colors
%-------
\definecolor{color0}{rgb}{0,0,0}% main default color, normally left to black
\definecolor{color1}{rgb}{0,0,0}% primary scheme color
\definecolor{color2}{rgb}{0,0,0}% secondary scheme color
\definecolor{color3}{rgb}{0,0,0}% tertiary scheme color
我认为在所有情况下都是黑色?和[rgb]{0,0,0}
有什么区别?color2
color2!50
如何将那些漂亮的灰色用于休闲风格的名字和姓氏字母?我在哪里可以找到这些颜色的十六进制代码?
答案1
如果你使用moderncv
班级,无需指定配色方案。因此,默认情况下,配色方案为黑色(或{rgb}{0,0,0}
)。这就是包含在moderncv.cls
:
% colors
%-------
\definecolor{color0}{rgb}{0,0,0}% main default color, normally left to black
\definecolor{color1}{rgb}{0,0,0}% primary scheme color
\definecolor{color2}{rgb}{0,0,0}% secondary scheme color
\definecolor{color3}{rgb}{0,0,0}% tertiary scheme color
但是,如果您选择特定的配色方案,这些颜色将被(重新)定义为其他颜色。
黑色的 /moderncvcolorblack.sty
:
\definecolor{color0}{rgb}{0,0,0}% black
\definecolor{color1}{rgb}{0,0,0}% black
\definecolor{color2}{rgb}{0,0,0}% black
实际上,这里没有什么新东西,但我只是为了完整性而展示它。
蓝色的 /moderncvcolorblue.sty
:
\definecolor{color0}{rgb}{0,0,0}% black
\definecolor{color1}{rgb}{0.22,0.45,0.70}% light blue
\definecolor{color2}{rgb}{0.45,0.45,0.45}% dark grey
绿色的 /moderncvcolorgreen.sty
:
\definecolor{color0}{rgb}{0,0,0}% black
\definecolor{color1}{rgb}{0.35,0.70,0.30}% green
\definecolor{color2}{rgb}{0.45,0.45,0.45}% dark grey
灰色的 /moderncvcolorgrey.sty
:
\definecolor{color0}{rgb}{0,0,0}% black
\definecolor{color1}{rgb}{0.55,0.55,0.55}% dark grey
\definecolor{color2}{rgb}{0.55,0.55,0.55}% dark grey
橙子 /moderncvcolororange.sty
:
\definecolor{color0}{rgb}{0,0,0}% black
\definecolor{color1}{rgb}{0.95,0.55,0.15}% orange
\definecolor{color2}{rgb}{0.45,0.45,0.45}% dark grey
紫色的 /moderncvcolorpurple.sty
:
\definecolor{color0}{rgb}{0,0,0}% black
\definecolor{color1}{rgb}{0.50,0.33,0.80}% purple
\definecolor{color2}{rgb}{0.45,0.45,0.45}% dark grey
红色的 /moderncvcolorred.sty
:
\definecolor{color0}{rgb}{0,0,0}% black
\definecolor{color1}{rgb}{0.95,0.20,0.20}% red
\definecolor{color2}{rgb}{0.45,0.45,0.45}% dark grey
尽管已定义“三次配色方案”,但从未使用过。