1

Overleaf Version

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman\usepackage[T1]{fontenc} % To switch to the T1 encoding

\firstname{John} % Your first name
\familyname{Doe} % Your last name

\begin{document}
\cvitem{Issue}{\textsc{Lorem, Ipsum, \textbf{Hello, Word}, Dolor, Sit, Amet}}

\end{document}

This will produce

Hello and World are bold but not small caps

How do I get the small caps to show up for the bold words, too?

I tried

\textsc{Lorem, Ipsum, \textbf{\textsc{Hello, World}}, Dolor, Sit, Amet}

but that doesn't change anything.

  • Bold small cap fonts do not exist in the Latin Modern family. Maybe you can use Computer Modern Super as in this answer or in this post. – Ruixi Zhang Sep 25 '18 at 16:52
  • Please see my added answer! If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓). – Mensch Mar 2 at 12:26
  • Try some other standard font families txfonts palatino, etc. which have bold with small caps but the latin modern does not... – MadyYuvi Apr 1 at 14:28
0

Well, it depends on the used font, because not all fonts have glyphs for bold small caps. Please see that I added line \moderncvstyle{classic} to get a compilable code (please always test your given code before posting it).

For example can you use font libertine:

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman\usepackage[T1]{fontenc} % To switch to the T1 encoding

\moderncvstyle{classic}

\usepackage{libertine} % <==============================================

\firstname{John} % Your first name
\familyname{Doe} % Your last name


\begin{document}
\cvitem{Issue}{\textsc{Lorem, Ipsum, \textbf{Hello, Word}, Dolor, Sit, Amet}}
\end{document}

with the result:

result with libertine

Or you can use font lmodern (which does not have bold small caps) and use the bold small caps from font Computer Modern (cmr):

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman\usepackage[T1]{fontenc} % To switch to the T1 encoding

\moderncvstyle{classic}

\usepackage{lmodern} 

\firstname{John} % Your first name
\familyname{Doe} % Your last name


\begin{document}
\cvitem{Issue}{\textsc{Lorem, Ipsum, \textbf{Hello, Word}, Dolor, Sit, Amet}}

\cvitem{Issue}{\textsc{Lorem, Ipsum, \textbf{Hello, Word}, Dolor, Sit, Amet} 
{\fontfamily{cmr}\textsc{\textbf{Hello World in cmr}}}} % <=============

\end{document}

with the result:

result with cmr

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.