![粗体文字不变色](https://linux22.com/image/353323/%E7%B2%97%E4%BD%93%E6%96%87%E5%AD%97%E4%B8%8D%E5%8F%98%E8%89%B2.png)
\usepackage{color}
\usepackage{fontawesome}
\definecolor{DARKBLUE}{RGB}{8, 94, 179}
\begin{tightemize}
\item Designed and developed a \textbf{\color{DARKBLUE}Python} based script to web scrape and index over \textbf{1.2 TB} of news, patent and market data.
\end{tightemize}
文本 python 的颜色不会变成深蓝色......
答案1
您使用的这个模板primary
为主字体分配了一种特定颜色(称为)。这不能被覆盖\color
。您必须重新定义没有该颜色的主字体。这样您还可以包含对缺失粗体字体的修复。
\documentclass{deedy-resume-openfont}
\setmainfont[
Path = fonts/lato/,
UprightFont = *-Lig,
BoldFont = *-Bol,
%Color=primary,
]{Lato}
\definecolor{DARKBLUE}{RGB}{8, 94, 179}
\begin{document}
\begin{tightemize}
\item Designed and developed a \textbf{\color{DARKBLUE}Python} based script to web scrape and index over \textbf{1.2 TB} of news, patent and market data.
\end{tightemize}
\end{document}
或者,如果您想保留默认颜色,您可以通过 添加您的颜色\addfontfeatures
。
\documentclass{deedy-resume-openfont}
\setmainfont[
Path = fonts/lato/,
UprightFont = *-Lig,
BoldFont = *-Bol,
Color=primary,
]{Lato}
\definecolor{DARKBLUE}{RGB}{8, 94, 179}
\begin{document}
\begin{tightemize}
\item Designed and developed a \textbf{\addfontfeatures{Color=DARKBLUE}Python} based script to web scrape and index over \textbf{1.2 TB} of news, patent and market data.
\end{tightemize}
\end{document}