# [Tex/LaTex] Use \textsc for \name and \section in moderncv

moderncvsectioning

I am trying to use \textsc for name and section titles in moderncv template. However, the font seems weird.

For example, looking at the following two examples, one for normal section title, one with \textsc:

\section{Education}
\section{\textsc{Education}}


Looks like \textsc also changes the default font. How can I maintain the default font at the same time have the ability to use \textsc? Similar problems happens in \name too.

Any help is much appreciated.

Updated: A MWE can be seen as follows:

\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{classic}
\moderncvcolor{blue}

\name{aaa}{bbb}

\begin{document}
\makecvtitle

\section{{Education}}
\section{\textsc{Education}}

\end{document}


There are only a few sans serif typeface families with a small caps font. Latin Modern Sans, that's used by default with moderncv, definitely hasn't it.

So, either you change the setup so that the CV is typeset with a serif font (which isn't a bad idea, in my opinion), you have to choose a font family having the required shape. For instance,

\usepackage[scale]{tgheros}


will do, but it will typeset your CV in (a clone of) Helvetica.

\documentclass[11pt,a4paper,sans]{moderncv}

\usepackage[scale]{tgheros}

\moderncvstyle{classic}
\moderncvcolor{blue}

%% use \scshape in all section titles
\renewcommand{\sectionfont}{\normalfont\Large\mdseries\scshape}

\name{aaa}{bbb}

\begin{document}

\show\section

\makecvtitle

\section{Education}