# Changing section font in a res document

I'm using res.cls to write a CV. I'd like to unbold the section title and use the italic font (as the picture below).

\documentclass[margin]{res}
\setlength{\textwidth}{5.1in} % set width of text portion
\parskip = 0.5cm
\begin{document}
% Center the name
\moveleft.5\hoffset\centerline{\large\bf name}
% Draw a horizontal line
\moveleft\hoffset\vbox{\hrule width\resumewidth height 1pt}\smallskip
\moveleft.5\hoffset\centerline{email}
\moveleft.5\hoffset\centerline{phone}
\begin{resume}
\section{EDUCATION}
\textbf{University of ...} \hfill 2015--2019\\
BSc in ..., May 2019
\section{EMPLOYMENT}
...
\end{resume}
\end{document}


I tried to use the titlesec package. If I add

\usepackage{titlesec}
\titleformat{\section}{\itshape}{}{}{}[]


to my code, it changes the position of my section title.

Well, the used template is very old and should not used any longer, for example it still uses outdated commands like \bf.

Nevertheless, you can use in your preamble command

\renewcommand\sectionfont{\itshape}%\bf


to change the font for section from bold to italic.

BTW: the class is too old to be able to use package titlesec ...

\documentclass[margin]{res}

\renewcommand\sectionfont{\itshape}%\bf
\setlength{\textwidth}{5.1in} % set width of text portion
\parskip = 0.5cm

\begin{document}
% Center the name
\moveleft.5\hoffset\centerline{\large\bf name}
% Draw a horizontal line
\moveleft\hoffset\vbox{\hrule width\resumewidth height 1pt}\smallskip
\moveleft.5\hoffset\centerline{email}
\moveleft.5\hoffset\centerline{phone}

\begin{resume}
\section{EDUCATION}
\textbf{University of ...} \hfill 2015--2019\\
BSc in ..., May 2019
\section{EMPLOYMENT}
...
\end{resume}
\end{document}


and its result:

• Thank you, Mensch. Instead of res, what latex template would you recommend for writing a CV? – X. Yu Aug 21 '19 at 18:26
• It depends on what you need. You can use class article and add wanted layout to it or you can for example use class moderncv, style banking looking simular to what you have with res. Have also a look to question tex.stackexchange.com/questions/80/… – Mensch Aug 21 '19 at 18:35
• Okay, I'll try to modify my CV. Thanks a lot! – X. Yu Aug 22 '19 at 3:45