Kit*_*ama 3 latex document colors line
我需要更改与 Latex 中的 ModernCV 类中的部分相关的栏的颜色。例如,我定义了一种颜色“胭脂红”,并且我不会同时使用该颜色的部分名称和与其相关的行。我的代码如下:
\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}
Run Code Online (Sandbox Code Playgroud)
moderncv使用一种名为color1(实际上不是最具描述性的变量名称...)的颜色来突出显示所有这些,您可以简单地修改此颜色:
\\documentclass[11pt,a4paper,sans]{moderncv}\n\n\\moderncvstyle{casual} \n\n% personal data\n\\name{John}{Doe}\n\\title{Resum\xc3\xa9 title}\n\n\\definecolor{carmine}{rgb}{0.59, 0.0, 0.09}\n\\colorlet{color1}{carmine}\n\n\\begin{document}\n\n\\makecvtitle\n\n\\section{BlaBla}\n\n\\end{document} \nRun Code Online (Sandbox Code Playgroud)\n\n