Cambiar la fuente de la sección en un documento res

Cambiar la fuente de la sección en un documento res

Estoy usando res.clspara escribir un CV. Me gustaría quitar la negrita del título de la sección y usar la fuente en cursiva (como se muestra en la imagen a continuación). Lo que quiero

\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  
% address, email and phone
\moveleft.5\hoffset\centerline{address}
\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}

ingrese la descripción de la imagen aquí

Intenté usar el titlesecpaquete. si agrego

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

Según mi código, cambia la posición del título de mi sección. ingrese la descripción de la imagen aquí

Respuesta1

Bueno, la plantilla utilizada es muy antigua y ya no debería usarse; por ejemplo, todavía usa comandos obsoletos como \bf.

Sin embargo, puedes usar en tu preámbulo el comando

\renewcommand\sectionfont{\itshape}%\bf

para cambiar la fuente de la sección de negrita a cursiva.

Por cierto: la clase es demasiado antigua para poder usar el paquete titlesec...

Por favor vea el MWE completo

\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  
% address, email and phone
\moveleft.5\hoffset\centerline{address}
\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}

y su resultado:

pdf resultante

información relacionada