[英]How to change color of the bar in ModernCV latex
我需要在 Latex 中更改与 modernCV class 中的部分相关的条的颜色。例如,我定义了一种颜色“胭脂红”,我不会同时使用该颜色的部分名称和与之相关的行。 我的代码如下:
\documentclass[11pt,a4paper,sans]{moderncv}
\usepackage[scale = 0.9, right = 2cm, left = 2cm, top = 1cm, bottom = 1cm]{geometry}
\usepackage[showframe=true]{geometry}
\usepackage{enumitem}
\recomputelengths
\usepackage{etoolbox}
% moderncv themes
\moderncvstyle{classic} % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
% Define color
\definecolor{carmine}{rgb}{0.59, 0.0, 0.09}
\moderncvcolor{blue} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
% character encoding
\usepackage[utf8]{inputenc}
% if you want to change the width of the column with the dates:
\setlength{\hintscolumnwidth}{4.1cm}
% personal data
\name{}
\address{}
\phone[mobile]{}
\email{}
% Picture:
\begin{figure}
\centering
\includegraphics[width=3cm]{}
\label{fig:my_label}
\end{figure}
\begin{document}
\makecvtitle
\section{\color{carmine}{Blablabla}}
\end{document}
moderncv
使用一种名为color1
的颜色(实际上并不是最具描述性的变量名称...)来突出显示所有这些,您可以简单地修改这种颜色:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
% personal data
\name{John}{Doe}
\title{Resumé title}
\definecolor{carmine}{rgb}{0.59, 0.0, 0.09}
\colorlet{color1}{carmine}
\begin{document}
\makecvtitle
\section{BlaBla}
\end{document}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.