![颜色包错误消息](https://linux22.com/image/361997/%E9%A2%9C%E8%89%B2%E5%8C%85%E9%94%99%E8%AF%AF%E6%B6%88%E6%81%AF.png)
我在用颜色在乳胶中打包,使用 RGB 格式以特定的红色突出显示我的部分文本。我的代码如下:
\documentclass[10pt,letterpaper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\hspace{55mm}CV $|$ \thepage}
\renewcommand{\headrulewidth}{0mm}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{marvosym}
\usepackage{lipsum}
\usepackage{microtype}
\usepackage{siunitx}
\usepackage{ifsym}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
\usepackage{multicol}
\usepackage[width=18.00cm, height=22.00cm]{geometry}
\usepackage{plain}
\usepackage{csquotes}
\usepackage{enumitem}
\usepackage{array}
\renewcommand{\labelenumi}{[\arabic{enumi}]}
\usepackage{afterpage}
%\usepackage{setspace}
\usepackage{titlesec}
\titlespacing{\section}{0mm}{1.2mm}{1.2mm}
%\titleformat{\section}{\bfseries}{\thesection}{1em}{\setstretch{0.01}}
%%%%%%%%%%_____________Color Text Box Packages______________%%%%%%%%%%%
\usepackage{blindtext}
\usepackage{tcolorbox}
\usepackage{graphicx}
\definecolor{mycolor}{rgb}{0.122, 0.435, 0.698}
%%%%%%%%%%_____________Color for Text ______________%%%%%%%%%%%
\usepackage[usenames, dvipsnames]{color}
\usepackage{graphicx}
\definecolor{myred}{RGB}{139,0,0}
%%%%%%%%%%_____________Start of main document______________%%%%%%%%%%%
\begin{document}
\textcolor{myred}{
\setcounter{secnumdepth}{0}\section{Education}}
\begin{tabular}{p{23mm}p{118mm}r}
Undergrad&\href{http://www.buet.ac.bd/}{Bangladesh University of Engineering and Technology}, Dhaka&[2013-Present]\\
&B.Sc. in Mechanical Engineering, CGPA-3.36/4.00\vspace{1.5mm}&[February, 2017]\\
Higher School&\href{http://www.soshgcdhaka.edu.bd/}{SOS Hermann Gmeiner College}, Dhaka&[2010-2012]\\
&Higher Secondary Certificate (HSC), CGPA-5.00/5.00\vspace{1.5mm}&\\
&\href{https://www.acps.edu.bd/}{Adamjee Cantonment Public School}, Dhaka&[2003-2010]\\
&Secondary School Certificate (SSC), CGPA-5.00/5.00&
\end{tabular}
\end{document}
但是当我尝试编译时,它显示错误消息并且无法编译:
包装颜色选项冲突。\usepackage
我怎么解决这个问题?
答案1
不使用这种使用包的格式,
\usepackage[usenames, dvipsnames]{color}
我只是省略了[usenames,dvipsnames]部分,现在,它可以很好地编译。