mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
make colors user adjustable. expose hidden options.
- Systematize colors and make them user adjustable. See documentation for details. this requires the \moderncvcolor to be issued BEFORE \moderncvstyle. - all styles: make the head options 'details' and 'nodetails' available to the user. (previously they were hidden). Olystyle does not respond too well to nodetails.
This commit is contained in:
parent
61e915ff45
commit
f7c8abf6d2
22 changed files with 337 additions and 104 deletions
|
|
@ -542,11 +542,11 @@ for passing options follows the usual \LaTeX\ scheme.
|
|||
Each style defines their own options and not all options are available for each style.
|
||||
Below is a list of all options available along with a short description.
|
||||
|
||||
\paragraph{\texttt{casual}.} This style allows the following options which \emph{only} affect footer and head style.\medskip
|
||||
\paragraph{\texttt{casual}.} This style allows the following options which \emph{only} affect footer and head style:\medskip
|
||||
|
||||
\begingroup
|
||||
\renewcommand{\arraystretch}{1.1}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.82\textwidth}}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.72\textwidth}}
|
||||
{\bfseries \code{head alignment}:} & values: \Code{left}, \Code{right} (default). This option allows to influence the alignment of the title and the picture if one is included. \\
|
||||
{\bfseries \texttt{name}:} & values: \Code{alternate}. Displays the name in all lowercase letters. Differentiation of the name is done by color (disabled by default). This feature is discouraged for longer names.\\
|
||||
{\bfseries \code{data in head}:} & values: \Code{details}, \Code{nodetails} (default). Show personal data in the header (\code{details}) or in the footer (\code{nodetails} (default)). \\
|
||||
|
|
@ -554,12 +554,13 @@ Below is a list of all options available along with a short description.
|
|||
\end{tabular}\medskip
|
||||
\endgroup
|
||||
|
||||
\paragraph{\texttt{classic}.} This style allows the following options:\medskip
|
||||
\paragraph{\texttt{classic}.} This style allows the following options which \emph{only} affect footer and head style:\medskip
|
||||
|
||||
\begingroup
|
||||
\renewcommand{\arraystretch}{1.1}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.82\textwidth}}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.75\textwidth}}
|
||||
{\bfseries \code{alignment}:} & values: \Code{left} (default), \code{right}. The option toggles the alignment of the address block and the picture. \\
|
||||
{\bfseries \code{data in head}:} & values: \Code{details}, \Code{nodetails} (default). Show personal data in the header (\code{details}) or in the footer (\code{nodetails} (default)). \\
|
||||
{\bfseries \code{symbols:}} & values: \Code{symbols} (default), \code{nosymbols}. These options let you chose between the inclusion of icons for the personal data or text based abbreviations.
|
||||
\end{tabular}\medskip
|
||||
\endgroup
|
||||
|
|
@ -568,10 +569,11 @@ Below is a list of all options available along with a short description.
|
|||
|
||||
\begingroup
|
||||
\renewcommand{\arraystretch}{1.1}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.82\textwidth}}
|
||||
{\bfseries \code{alignment}:} & values: \Code{left} (default), \Code{center}, \code{right}. This option allows to influence the alignment of the entries in the style. \\
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.68\textwidth}}
|
||||
{\bfseries \code{alignment (body)}:} & values: \Code{left} (default), \Code{center}, \code{right}. This option allows to influence the alignment of the entries in the style. \\
|
||||
%
|
||||
{\bfseries \code{rule style}:} & values: \Code{fullrules}, \Code{shortrules}, \Code{mixedrules} (default), \code{norules}. This option allows to adjust the rules used in the style. \\
|
||||
{\bfseries \code{data in head}:} & values: \Code{details}, \Code{nodetails} (default). Show personal data in the header (\code{details}) or in the footer (\code{nodetails} (default)). \\
|
||||
{\bfseries \code{symbols:}} & values: \Code{symbols} (default), \code{nosymbols}. These options let you chose between the inclusion of icons for the personal data or text based abbreviations.
|
||||
\end{tabular}\medskip
|
||||
\endgroup
|
||||
|
|
@ -580,7 +582,8 @@ Below is a list of all options available along with a short description.
|
|||
|
||||
\begingroup
|
||||
\renewcommand{\arraystretch}{1.1}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.82\textwidth}}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.73\textwidth}}
|
||||
{\bfseries \code{data in head}:} & values: \Code{details}, \Code{nodetails} (default). Show personal data in the header (\code{details}) or in the footer (\code{nodetails} (default)). \\
|
||||
{\bfseries \code{symbols:}} & values: \Code{symbols} (default), \code{nosymbols}. These options let you chose between the inclusion of icons for the personal data or text based abbreviations.
|
||||
\end{tabular}\medskip
|
||||
\endgroup
|
||||
|
|
@ -589,7 +592,8 @@ Below is a list of all options available along with a short description.
|
|||
|
||||
\begingroup
|
||||
\renewcommand{\arraystretch}{1.1}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.82\textwidth}}
|
||||
\begin{tabular}{r@{\hspace{2ex}}p{0.73\textwidth}}
|
||||
{\bfseries \code{data in head}:} & values: \Code{details}, \Code{nodetails} (default). Show personal data in the header (\code{details}) or in the footer (\code{nodetails} (default)). \\
|
||||
{\bfseries \code{symbols:}} & values: \Code{symbols} (default), \code{nosymbols}. These options let you chose between the inclusion of icons for the personal data or text based abbreviations.
|
||||
\end{tabular}\medskip
|
||||
\endgroup
|
||||
|
|
@ -602,6 +606,36 @@ 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}
|
||||
|
||||
\paragraph{casual}
|
||||
\begin{lstlisting}
|
||||
%-------------------------------------------------------------------------------
|
||||
% Colors
|
||||
%-------------------------------------------------------------------------------
|
||||
% head and footer
|
||||
\colorlet{lastnamecolor}{color1}
|
||||
\colorlet{namecolor}{lastnamecolor}
|
||||
\colorlet{headrulecolor}{color1}
|
||||
\colorlet{firstnamecolor}{lastnamecolor!50}
|
||||
\colorlet{titlecolor}{color2}
|
||||
\colorlet{addresscolor}{color2}
|
||||
\colorlet{quotecolor}{color1}
|
||||
\colorlet{pictureframecolor}{color1}
|
||||
% body
|
||||
\colorlet{bodyrulecolor}{color1}
|
||||
\colorlet{sectioncolor}{color1}
|
||||
\colorlet{subsectioncolor}{color1}
|
||||
\colorlet{hintstylecolor}{color0}
|
||||
% letter
|
||||
\colorlet{letterclosingcolor}{color2}
|
||||
% skillmatrix
|
||||
\colorlet{skillmatrixfullcolor}{color1}
|
||||
\colorlet{skillmatrixemptycolor}{color2!30}
|
||||
|
||||
\end{lstlisting}
|
||||
|
||||
|
||||
|
||||
\subsection{Modifying symbols and icons}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue