粗体文字不变色

粗体文字不变色
\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}

Overleaf 上的演示

或者,如果您想保留默认颜色,您可以通过 添加您的颜色\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}

Overleaf 上的演示

相关内容