我需要更改Latex中modernCV类中与部分相关的条的颜色。 例如,我定义了一个名为“carmine”的颜色,我希望将部分名称和相关线条都用该颜色显示。我的代码如下:
\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}
\label
。 - undefined\begin{figure}...
。 - undefined\color{carmine}{...}
的语法是错误的。 - undefined