
Estou usando res.cls
para escrever um currículo. Gostaria de retirar o negrito do título da seção e usar a fonte em itálico (como na imagem abaixo).
\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}
Tentei usar o titlesec
pacote. Se eu adicionar
\usepackage{titlesec}
\titleformat{\section}{\itshape}{}{}{}[]
ao meu código, ele altera a posição do título da minha seção.
Responder1
Bom, o template usado é muito antigo e não deveria mais ser usado, por exemplo ainda usa comandos desatualizados como \bf
.
No entanto, você pode usar em seu comando de preâmbulo
\renewcommand\sectionfont{\itshape}%\bf
para alterar a fonte da seção de negrito para itálico.
Aliás: a classe é muito antiga para poder usar o pacote titlesec
...
Por favor, veja o 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}
e seu resultado: