# Use \textsc for \name and \section in moderncv

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 is no sans serif small caps font with Computer Modern. Can you show a MWE? – egreg Apr 25 '14 at 14:01
• @egreg Added to the question. Thanks. – herohuyongtao Apr 25 '14 at 14:04
• As egreg mentioned, sans serif and small caps are a rather unusual combination (off the top of my head I cannot think of any of the more usual fonts providing it). – Gonzalo Medina Apr 25 '14 at 14:18
• @GonzaloMedina Thanks. Is it possible to change the font only for the \name and \section part and leave other parts default? – herohuyongtao Apr 25 '14 at 14:20
• It's possible if you know a font providing the desired combination. moderncv uses LatinModern fonts by default, and this font dosn't have the combination; as I said before, neither CM nor fourier, for example. – Gonzalo Medina Apr 25 '14 at 14:26

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}


• @egreg I wish, I could give you more than +1 for: \renewcommand{\sectionfont}{\normalfont\Large\mdseries\scshape} – tod Dec 30 '14 at 11:24