Best way to change font size (prometheusCV on Overleaf)

fontsizeoverleaf

https://www.overleaf.com/latex/templates/prometheuscv/hhkdyvbtvhsq

I want to change the overall font size in section headings and sub-headings, but I'm having a hard time doing so.

For example:

    \textbf{M.Sc.}~in Trickery\begin{large}
        ~(summa cum laude)
    \end{large}}

I did this to change font to one of the sub-headings, but still having trouble chaning the font size in the main headings like Education.

Do you have any suggestions to make it more readable. When I export to pdf, it everything looks so small. Thank you.

Best Answer

prometheu-cv use the titlesec package to customize section and subsection titles.

You can define your own style by issuing before \begin{document}

% Customise the \section command 
\titleformat{\section}         
{\Huge \scshape\raggedright} % Make the \section headers Huge, small caps and left aligned
{}{0em}                      % No label (prefix) and no horizontal separation between label and title body
{}                           % Code preceeding the title body
[\titlerule]                 % Code following the title body. Here a horizontal line.

%  \subsection command
\titleformat{\subsection}
{\Large\scshape\raggedright}
{}{0em}
{}

To change the font size of just a few words, it is better to type {\Large (summa cum laude).}

a

This is the complete code.

\documentclass{prometheus_cv}

\usepackage[a4paper, total={5.3in, 10in}, top=2cm]{geometry}        % width=5.3in, height=10in, top margin=2cm on each page

\usepackage{xcolor}                                                                               % define some colors
\definecolor{highlight}{HTML}{283559}
\definecolor{highlight2}{HTML}{1A2640}
\definecolor{link}{HTML}{5C6273}

\usepackage{lipsum}
\usepackage{siunitx}                            % package to properly set units
\usepackage{fontawesome5}                       % package for icons (see list of available icons here: http://mirrors.ibiblio.org/CTAN/fonts/fontawesome5/doc/fontawesome5.pdf)
\usepackage[super]{nth}                         % when you write \nth{2} you get a nice superscript
\usepackage[                                % coloring of links
    colorlinks = true,
    linkcolor = highlight,
    urlcolor = highlight,
    citecolor= highlight
]{hyperref}

\usepackage{fontspec}                           % package to change fonts               
\setmainfont[
    BoldFont=Cormorant Garamond Bold,
    ItalicFont=Cormorant Garamond Italic,
    BoldItalicFont=Cormorant Garamond Bold Italic
]{Cormorant Garamond Regular}                       % Set the main font to Comorant Garamond (https://github.com/CatharsisFonts/Cormorant)
\newfontfamily\GaramondLight{Cormorant Garamond Light}
\newcommand\textlf[1]{{\GaramondLight#1}}

\newcommand{\highlight}[1]{\textcolor{highlight}{\textbf{#1}}}      % highlight text as bold and with the highlight color defined above
\newcommand{\ec}{\textsuperscript{\textdagger}}                             % Equal contribution dagger


% define the header and (not) footer %
\usepackage{fancyhdr}                                                                         
\fancyhf{}
\rhead{Curriculum Vit\ae}
\lhead{Prometheus Fire}
\rfoot{Page \thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}


%**************************************************** added<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
% Customise the \section command 
\titleformat{\section}         
{\Huge \scshape\raggedright} % Make the \section headers Huge, small caps and left aligned
{}{0em}                      % No label (prefix) and no horizontal separation between label and title body
{}                           % Code preceeding the title body
[\titlerule]                 % Code following the title body. Here a horizontal line.

%  \subsection command
\titleformat{\subsection}
{\Large\scshape\raggedright}
{}{0em}
{}
%*****************************************************

\begin{document}
\thispagestyle{empty}               % Turn off header and footer for the first page
\pagestyle{fancy}                   % For the rest of the pages switch to the fancy page style defined just above the document begin

\section{Education}
  
  \datedsubsection{2017-2021}
  {%
    The best uni}
  {%
    \textbf{M.Sc.}~in Trickery  {\Large (summa cum laude).}
  }

\section{Publications}

\subsection{Conference and Journal Publications}

\end{document}