[Tex/LaTex] Awesome-CV edit section. make it capital and in center

awesome-cvcvfontawesometemplates

Template for resume used : Awesome-CV.

I tried for 3 hrs to make all the letters of section capital and set the location of word in vertical center of document. Didn't worked out.

The education.tex is :

\cvsection{Education}
\begin{cventries}
  \cventry
    {B.S. in Computer Science and Engineering}
    {POSTECH(Pohang University of Science and Technology)}
    {Pohang, S.Korea}
    {Mar. 2010 - PRESENT}
    {
      \begin{cvitems}
        \item {Got a Chun Shin-Il Scholarship which is given to promising students in CSE Dept.}
      \end{cvitems}
    }
\end{cventries}

\cvsection definition:

% Define a section for CV
% Usage: \cvsection{<section-title>}
\newcommand{\cvsection}[1]{
  %\par\addvspace{1.5ex}
  %\phantomsection{}
    \centering
  \sectionstyle{#1}
  \color{gray}\vhrulefill{0.9pt}
  \par\nobreak\addvspace{1ex}
}

\sectionstyle definition :

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

\@sectioncolor definition:

% Awesome section color
\newcounter{colorCounter}
\def\@sectioncolor#1#2#3{%
  {%
    \color{%
      \ifcase\value{colorCounter}%
        awesome\or%
        awesome\or%
        awesome\or%
        awesome\or%
        awesome\else%
        awesome\fi%
    } #1#2#3%
  }%
  \stepcounter{colorCounter}%
}

Attempts include:

centering attempt

\def\textlcsc[1]{\textsc{\lowercase{#1}}} – its not exact. link lost but mentioned by memory what i remembered.

Best Answer

\vhrulefill creates a horizontal rule/line. Just make a line before the name entry. i.e \sectionstyle{#1} below.

\cvsection defination:

% Define a section for CV
% Usage: \cvsection{<section-title>}
\newcommand{\cvsection}[1]{
%\par\addvspace{1.5ex}
%\phantomsection{}
 \centering
\sectionstyle{#1}
\color{gray}\vhrulefill{0.9pt}
\par\nobreak\addvspace{1ex}
}

NEW \cvsection defination:

% Define a section for CV
% Usage: \cvsection{<section-title>}
\newcommand{\cvsection}[1]{
%\par\addvspace{1.5ex}
\color{gray}\vhrulefill{0.9pt}         %New addition
%\phantomsection{}
 \centering
\sectionstyle{#1}
\color{gray}\vhrulefill{0.9pt}
\par\nobreak\addvspace{1ex}
}

For information, no changes below.

\vhrulefill defination :

% Use to draw horizontal line with specific tickness
\def\vhrulefill#1{\leavevmode\leaders\hrule\@height#1\hfill \kern\z@}