mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
add color explanation section
This commit is contained in:
parent
1a4d483275
commit
e0cf13062a
1 changed files with 14 additions and 6 deletions
|
|
@ -88,7 +88,7 @@
|
|||
% frame=L,
|
||||
emph={cvitem,cventry,cvdoubleentry,cvdoubleitem,moderncvstyle,moderncvcolor,%
|
||||
cvskill,cvskilllegend,cvskillplainlegend,cvskillhead,cvskillentry,nopagenumbers,%
|
||||
name,address,email,link,social,phone,homepage,extrainfo,photo,quote,section,subsection,setlength,NewDocumentCommand},%
|
||||
name,address,email,link,social,phone,homepage,extrainfo,photo,quote,section,subsection,setlength,NewDocumentCommand,definecolor,colorlet},%
|
||||
emphstyle={\color{cvblue}},%
|
||||
emph={[2]familydefault,sfdefault,rmdefault,inputenc,moderncv,document,bibliographyitemlabel,%
|
||||
addresssymbol,mobilephonesymbol,fixedphonesymbol,faxphonesymbol,emailsymbol,homepagesymbol,linkedinsocialsymbol,%
|
||||
|
|
@ -609,14 +609,22 @@ Below is a list of all options available along with a short description.
|
|||
|
||||
|
||||
\subsection{Colors}
|
||||
The colors of each style can be readjusted.
|
||||
\todox{explain the three basic colors}
|
||||
The colors of each style can be readjusted. Each style defines three main colors, \code{color0}, \code{color1} and \code{color2}.
|
||||
So far in all styles, \code{color0} is black and the main text color. \code{color1} is the main theme color, like blue, green, etc and finally, \code{color2} is a some form of grey used for the user data etc. These colors can be redefined by using e.g.
|
||||
|
||||
\begin{lstlisting}
|
||||
\definecolor{color1}{rgb}{0.55,0.55,0.55}% dark grey
|
||||
\end{lstlisting}
|
||||
or
|
||||
\begin{lstlisting}
|
||||
\colorlet{color1}{<my_color>}% black
|
||||
\end{lstlisting}
|
||||
Each mechanism to name and define colors used my the \Code{xcolor} package can be used to redefine the colors.
|
||||
|
||||
If yet a finer control over the color scheme of the style is desired, the following colors are being used internally and can be redefined at will.
|
||||
|
||||
\paragraph{casual}
|
||||
\begin{lstlisting}
|
||||
%-------------------------------------------------------------------------------
|
||||
% Colors
|
||||
%-------------------------------------------------------------------------------
|
||||
% head and footer
|
||||
\colorlet{lastnamecolor}{color1}
|
||||
\colorlet{namecolor}{lastnamecolor}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue