# How to modify class files of templates to make minor changes

I have a template file for creating resume. However, there are some minor changes that I want to make. These are basic modifications such as changing colour scheme and removing icons. The class file (.cls) does not seem to provide enough options.

Links to the resume template I am trying to work with:

Here are the changes I am trying to make:

1. So what I've been trying to do is change the colours of the section heads (ie. Summary, Work Experience) into 1 colour like a dark blue of some sort instead of a mixture of black and red. I can't seem to find out how to do it. Also the colour of the address from the work experience locations to black.

1. Remove the icons that are beside personal information like the email, address, phone number and etc.

2. When I try to input my education, I don't want the extra bullet points underneath the degree. So when I go and erase that section in the source (i.e. in the template, \begin{cvitems}... \end{cvitems}), it reads the source fine but the whole section in education disappears when I compile it. This code works, note that this has bullet points:

\cvsection{Education}
\begin{cventries}
\cventry
{B.S. in Computer Science and Engineering} % Degree
{POSTECH(Pohang University of Science and Technology)} %Institution
{Pohang, S.Korea} % Location
{Mar. 2010 - Aug. 2017} % Date(s)
{
\begin{cvitems} % Description(s) bullet points
\item {Got a Chun Shin-Il Scholarship which is given to promising students in CSE Dept.}
\end{cvitems}
}
\end{cventries}


But when I try to remove the bullet points, the entire section gets removed:

\cvsection{Education}
\begin{cventries}
\cventry
{B.S. in Computer Science and Engineering} % Degree
{POSTECH(Pohang University of Science and Technology)} % Institution
{Pohang, S.Korea} % Location
{Mar. 2010 - Aug. 2017} % Date(s)
\end{cventries}


The entire template is composed of several files and it would clutter the entire question to post all the files. The template can be opened in OverLeaf or downloaded via GitHub. Note that I have not made any changes to the template, except for in the question 3.

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – TobiBS Aug 28 '20 at 21:36
• Hello there. As the previous comment suggests, you need to include a fully-compilable code so that an answerer can start from where you left off. Also, we don't do ASAP here. No one is being paid and giving real-world money is probably against the community rules. – Symbol 1 Aug 29 '20 at 5:36

A walk-through on how to modify class files for minor changes in LaTeX.

The template does not provide a lot of options to configure. In such situations we need to dig inside the class files and look at the definitions. The .cls files are usually the most relevant ones. So let's dig into it to solve each of your issues.

1. The command for defining section is \cvsection{Section Name}. This command is defined in lines 561--568 in awesome-cv.cls. The lines are below:

 % Define a subsection for CV
% Usage: \cvsubsection{<subsection-title>}
\newcommand{\cvsubsection}[1]{%
\vspace{\acvSectionContentTopSkip}
\vspace{-3mm}
\subsectionstyle{#1}
\phantomsection
}


This tells us that there is a command called \subsectionstyle{#1} to which our section name is sent. So we need to find the definition of this command the the cls file. It is given in line 198:

\newcommand*{\sectionstyle}[1]{{\fontsize{16pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}}


The most relevant command seems to be \@sectioncolor as we want colors to change. This is defined in lines 154--157:

% Awesome section color
\def\@sectioncolor#1#2#3{%
\ifbool{acvSectionColorHighlight}{{\color{awesome}#1#2#3}}{#1#2#3}%
}


Now we observe that there is a bool variable that activates the coloring. We can turn it off by placing the following command in our preamble.

\setbool{acvSectionColorHighlight}{false}


Now since we want to change the color of the entire section header, it seems that we will have to redefine the command. Also, notice that there is an @ in the command, so will have to use \makeatletter and \makeatother. Also, let us first define a nice blue color.

\definecolor{mBlue}{HTML}{1F77B4}

\makeatletter
\def\@sectioncolor#1#2#3{%
\ifbool{acvSectionColorHighlight}{{\color{mBlue}#1#2#3}}{\color{awesome}#1#2#3}%
}
\makeatother


We need to be really careful when we make such changes though. Sometimes they can break commands somewhere else. Looks safe here though.

You can instead also wrap the \cvsection with \colorlet to change the color before the section and revert back after the section name:

\colorlet{text}{mBlue}
\cvsection{Section Name}
\colorlet{text}{darkgray}


Colors are defined in lines 123--148.

2. Similarly, email is defined in lines 280--282:

% Defines writer's email (optional)
\newcommand*{\email}[1]{\def\@email{#1}}


After some digging for @email we find that they are used in lines 466--469:

 {%

Notice the command \faEnvelope. These are defined in the file fontawesome.sty. We don't need to bother about it and can simply redefine the command like so. You can redefine for other such icons as well.
\def\faGithubSquare{}

3. I did not have the same issue, so I can't help you out with it. You are probably also deleting the {} before and after the cvitems environment.