LaTex CV- Deedy 简历:如何更改姓名和小节的颜色?

LaTex CV- Deedy 简历:如何更改姓名和小节的颜色?

我如何更改名称部分中第一部分的颜色,这里是Debarghya第一部分,experience like google, facebook我尝试了很多次,但找不到任何解决方案。我只想更改名称和子部分的颜色。这是关联到简历中。 在此处输入图片描述

答案1

嗯,你的问题不是很清楚,但你的评论有一点帮助。

您使用的模板不是最好的,例如,\centering模板中错误地使用了没有参数的命令。请参阅我在部分中的更正\namesection...

您的第一个问题是“将 Debarghya 改为 Blue”:

该名称是由命令设置的\namesection,因此我们必须像这样重新定义它(请参阅标有 ​​的更改的代码行<======):

\renewcommand{\namesection}[3]{% <============= please see re in \renewcommand!
\centering% takes no parameter, works until command \namesection ends ...
{% <==================================================================== start group!
\fontsize{40pt}{60pt}
\fontspec[Path = fonts/lato/]{Lato-Hai}\selectfont \textcolor{blue}{#1} % <=================
\fontspec[Path = fonts/lato/]{Lato-Lig}\selectfont #2 % Lato-Lig <======
} \\[5pt] % <========================================================== end group, add newline with 5pt space
%\centering% not needed, takes no parameter, still working from first call!
{
\color{headings}
\fontspec[Path = fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{14pt}\selectfont #3%
}
\noindent\makebox[\linewidth]{\color{headings}\rule{\paperwidth}{0.4pt}}
\vspace{-15pt}
}

我只\textcolor{blue}{#1}将蓝色(标准蓝色,由包定义xcolor)添加到名称的第一个参数。如果您也希望第二个参数使用该颜色,请将以下内容更改#2\textcolor{blue}{#2}

您的第二个问题是“将 [仅!] Google、Facebook 改为天蓝色”:

你没有告诉你sky blue应该是什么,所以我这样定义它(根据你的需要进行更改):

\definecolor{skyblue}{HTML}{3333ff} % see documentation xcolor

现在我们可以重新定义命令\runsubsection来排版完整的行,包含您Google想要更改为天蓝色的内容:

\renewcommand{\runsubsection}[1]{%
  \color{subheadings}%
  \fontspec[Path = fonts/lato/]{Lato-Reg}\fontsize{12pt}{12pt}% Lato-Bol
  \selectfont%
  \bfseries%
  \textcolor{skyblue}{\uppercase {#1}} \normalfont% <===================
}

请看\textcolor{skyblue}{...}标记行中添加的内容!

现在我们可以将代码补充完整如下:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Deedy - One Page Two Column Resume
% LaTeX Template
% Version 1.2 (16/9/2014)
%
% Original author:
% Debarghya Das (http://debarghyadas.com)
%
% Original repository:
% https://github.com/deedydas/Deedy-Resume
%
% IMPORTANT: THIS TEMPLATE NEEDS TO BE COMPILED WITH XeLaTeX
%
% This template uses several fonts not included with Windows/Linux by
% default. If you get compilation errors saying a font is missing, find the line
% on which the font is used and either change it to a font included with your
% operating system or comment the line out to use the default font.
% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 
% TODO:
% 1. Integrate biber/bibtex for article citation under publications.
% 2. Figure out a smoother way for the document to flow onto the next page.
% 3. Add styling information for a "Projects/Hacks" section.
% 4. Add location/address information
% 5. Merge OpenFont and MacFonts as a single sty with options.
% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% CHANGELOG:
% v1.1:
% 1. Fixed several compilation bugs with \renewcommand
% 2. Got Open-source fonts (Windows/Linux support)
% 3. Added Last Updated
% 4. Move Title styling into .sty
% 5. Commented .sty file.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Known Issues:
% 1. Overflows onto second page if any column's contents are more than the
% vertical limit
% 2. Hacky space on the first bullet point on the second column.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\documentclass[]{deedy-resume-openfont}

%\definecolor{subheadings}{HTML}{333333}
\definecolor{skyblue}{HTML}{3333ff} % see documentation xcolor
\renewcommand{\runsubsection}[1]{%
  \color{subheadings}%
  \fontspec[Path = fonts/lato/]{Lato-Reg}\fontsize{12pt}{12pt}% Lato-Bol
  \selectfont%
  \bfseries%
  \textcolor{skyblue}{\uppercase {#1}} \normalfont% <===================
}
\renewcommand{\namesection}[3]{%
\centering% takes no parameter, works until command \namesection ends ...
{% <==================================================================== start group!
\fontsize{40pt}{60pt}
\fontspec[Path = fonts/lato/]{Lato-Hai}\selectfont \textcolor{blue}{#1} % <=================
\fontspec[Path = fonts/lato/]{Lato-Lig}\selectfont #2 % Lato-Lig <======
} \\[5pt] % <========================================================== end group, add newline with 5pt space
%\centering% not needed, takes no parameter, still working from first call!
{
\color{headings}
\fontspec[Path = fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{14pt}\selectfont #3%
}
\noindent\makebox[\linewidth]{\color{headings}\rule{\paperwidth}{0.4pt}}
\vspace{-15pt}
}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}


\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%     LAST UPDATED DATE
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\lastupdated

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%     TITLE NAME
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\namesection{Debarghya}{Das}{ \urlstyle{same}\href{http://debarghyadas.com}{debarghyadas.com}| \href{http://fb.co/dd}{fb.co/dd}\\
\href{mailto:[email protected]}{[email protected]} | 607.379.5733 | \href{mailto:[email protected]}{[email protected]}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%     COLUMN ONE
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{minipage}[t]{0.33\textwidth} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     EDUCATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Education} 

\subsection{Cornell University}
\descript{MEng in Computer Science}
\location{Dec 2014 | Ithaca, NY}
\sectionsep

\subsection{Cornell University}
\descript{BS in Computer Science}
\location{May 2014 | Ithaca, NY}
College of Engineering \\
Magna Cum Laude\\
\location{ Cum. GPA: 3.83 / 4.0 \\
Major GPA: 3.9 / 4.0}
\sectionsep

\subsection{La Martiniere for Boys}
\location{Grad. May 2011|  Kolkata, India}
\sectionsep

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     LINKS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Links} 
Facebook:// \href{https://facebook/dd}{\bf dd} \\
Github:// \href{https://github.com/deedydas}{\bf deedydas} \\
LinkedIn://  \href{https://www.linkedin.com/in/debarghyadas}{\bf debarghyadas} \\
YouTube://  \href{https://www.youtube.com/user/DeedyDash007}{\bf DeedyDash007} \\
Twitter://  \href{https://twitter.com/debarghya_das}{\bf @debarghya\_das} \\
Quora://  \href{https://www.quora.com/Debarghya-Das}{\bf Debarghya-Das}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     COURSEWORK
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Coursework}
\subsection{Graduate}
Advanced Machine Learning \\
Open Source Software Engineering \\
Advanced Interactive Graphics \\
Compilers + Practicum \\
Cloud Computing \\
Evolutionary Computation \\
Defending Computer Networks \\
Machine Learning \\
\sectionsep

\subsection{Undergraduate}
Information Retrieval \\
Operating Systems \\
Artificial Intelligence + Practicum \\
Functional Programming \\
Computer Graphics + Practicum \\
{\footnotesize \textit{\textbf{(Research Asst. \& Teaching Asst 2x) }}} \\
Unix Tools and Scripting \\

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     SKILLS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Skills}
\subsection{Programming}
\location{Over 5000 lines:}
Java \textbullet{}   Shell \textbullet{} Python \textbullet{} Javascript \\
OCaml \textbullet{} Matlab \textbullet{} Rails \textbullet{} \LaTeX\ \\ 
\location{Over 1000 lines:}
C \textbullet{} C++ \textbullet{} CSS \textbullet{} PHP \textbullet{} Assembly \\
\location{Familiar:}
AS3 \textbullet{} iOS \textbullet{} Android \textbullet{} MySQL
\sectionsep

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%     COLUMN TWO
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\end{minipage} 
\hfill
\begin{minipage}[t]{0.66\textwidth} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     EXPERIENCE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Experience}
\runsubsection{Facebook}
\descript{| Software Engineer }
\location{Jan 2015 - Present | New York, NY}
\sectionsep

\runsubsection{Coursera}
\descript{| KPCB Fellow + Software Engineering Intern }
\location{June 2014 – Sep 2014 | Mountain View, CA}
\vspace{\topsep} % Hacky fix for awkward extra vertical space
\begin{tightemize}
\item 52 out of 2500 applicants chosen to be a KPCB Fellow 2014.
\item Led and shipped Yoda - the admin interface for the new Phoenix platform. 
\item Full-stack developer - Wrote and reviewed code for JS using Backbone, Jade, Stylus and Require and Scala using Play
\end{tightemize}
\sectionsep

\runsubsection{Google}
\descript{| Software Engineering Intern }
\location{May 2013 – Aug 2013 | Mountain View, CA}
\begin{tightemize}
\item Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions. In production.
\item Created a backbone.js-like framework for the Captions editor.
\end{tightemize}
\sectionsep

\runsubsection{Phabricator}
\descript{| Open Source Contributor \& Team Leader}
\location{Jan 2013 – May 2013 | Palo Alto, CA \& Ithaca, NY}
\begin{tightemize}
\item Phabricator is used daily by Facebook, Dropbox, Quora, Asana and more.
\item I created the Meme generator and more in PHP and Shell.
\item Led a team from MIT, Cornell, IC London and UHelsinki for the project.
\end{tightemize}
\sectionsep

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     RESEARCH
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Research}
\runsubsection{Cornell Robot Learning Lab}
\descript{| Researcher}
\location{Jan 2014 – Jan 2015 | Ithaca, NY}
Worked with \textbf{\href{http://www.cs.cornell.edu/~ashesh/}{Ashesh Jain}} and \textbf{\href{http://www.cs.cornell.edu/~asaxena/}{Prof Ashutosh Saxena}} to create \textbf{PlanIt}, a tool which  learns from large scale user preference feedback to plan robot trajectories in human environments.  
\sectionsep

\runsubsection{Cornell Phonetics Lab}
\descript{| Head Undergraduate Researcher}
\location{Mar 2012 – May 2013 | Ithaca, NY}
Led the development of \textbf{QuickTongue}, the first ever breakthrough tongue-controlled game with \textbf{\href{http://conf.ling.cornell.edu/~tilsen/}{Prof Sam Tilsen}} to aid in Linguistics research. 
\sectionsep

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     AWARDS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Awards} 
\begin{tabular}{rll}
2014         & top 52/2500  & KPCB Engineering Fellow\\
2014         & 1\textsuperscript{st}/50  & Microsoft Coding Competition, Cornell\\
2013         & National  & Jump Trading Challenge Finalist\\
2013     & 7\textsuperscript{th}/120 & CS 3410 Cache Race Bot Tournament  \\
2012     & 2\textsuperscript{nd}/150 & CS 3110 Biannual Intra-Class Bot Tournament \\
2011     & National & Indian National Mathematics Olympiad (INMO) Finalist \\
\end{tabular}
\sectionsep

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     PUBLICATIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Publications} 
\renewcommand\refname{\vskip -1.5em} % Couldn't get this working from the .cls file
\bibliographystyle{abbrv}
\bibliography{publications}
\nocite{*}

\end{minipage} 
\end{document} 

生成以下 pdf:

产生的简历

正如您在图像中看到的(红色箭头),现在只有名称部分Debarghya是蓝色的,并且只有Google(而不是完整的线条!)在skyblue......

对所用字体的备注:在类中你可以找到类似的命令

\fontspec[Path = fonts/lato/]{Lato-Hai}\selectfont \textcolor{blue}{#1} % <=================
\fontspec[Path = fonts/lato/]{Lato-Lig}\selectfont

(我们已经在命令中看到\namesection)导致Debarghya在字体中输入第一个名字,在字体中输入Lato-Hai第二个名字。DasLato-Lig

如果您想使用其他字体,您可以更改所\fontspec用字体的名称。我没有 MaC,我无法帮助您使用 MaC 字体(但如果你知道字体名称,您可以尝试以与使用字体相同的方式添加它Lato...)。

答案2

您应该解释您尝试了什么来解决您的请求,通常我会说模板的设计(无论好坏)是有目的的,这里的目的是单色简单。但是我同意一些专色可能是可取的,我只会指向您要求的两个位置,您需要确定哪种颜色会吸引注意力或将您的简历放在最近的圆形容器中。

注意:- Mac 字体版本仅适用于自动具有苹果系统字体的 Mac,Mac 用户的颜色变化位置和名称将完全相同,但在 Mac 版本中

在此处输入图片描述

每个 cls 文件中都定义了颜色,因此您需要检查正在使用哪一个(我正在使用 deedy-resume-openfont.cls)并查找以下部分

% Color definitions
\usepackage[usenames,dvipsnames]{xcolor} 
\definecolor{date}{HTML}{666666} 
\definecolor{primary}{HTML}{2b2b2b} 
\definecolor{headings}{HTML}{6A6A6A}
\definecolor{subheadings}{HTML}{ff3333} %<==change here for the subheading colour my edit ff=red 33=green 33=blue

为了获得更多蓝色,您可以将其更改为 3333ff 天蓝色应该是 87ceeb?

查找名称部分

% Name command
\newcommand{\namesection}[3]{
\centering{
\fontsize{40pt}{60pt}

2)添加您选择的名称颜色在我在这里所做的 \centering 之后

% Name command
\newcommand{\namesection}[3]{
\centering{\color{blue}
\fontsize{40pt}{60pt}

相关内容