# Small caps font warning in beamer using biblatex

Consider the following MWE

\documentclass{beamer}
\usepackage{silence}
\WarningFilter{biblatex}{Patching footnotes failed}

\usepackage{lmodern}
\usepackage[T1]{fontenc}

\usepackage[style=authoryear-comp,backend=biber]{biblatex}

\begin{document}
\begin{frame}
\fullcite{sarfraz}
\end{frame}
\end{document}


This generates the warning:

LaTeX Font Warning: Font shape T1/lmss/m/sc' in size <10.95> not available
(Font)              Font shape T1/lmr/m/sc' tried instead on input line 28.


Is there a way to avoid the warning without using the silence package?

• The real question should be: “How do I avoid small caps in citations?” – egreg Sep 25 '14 at 15:34
• @LaRiFaRi I think that fix-cm is intended to be used with Computer Modern font and I'm using Latin Modern font. – petobens Sep 25 '14 at 15:37
• @egreg I do want small caps in citations. – petobens Sep 25 '14 at 15:38
• @petobens No, you don't, as there's no small caps font for Latin Modern Sans. – egreg Sep 25 '14 at 15:42
• @egreg ah I get it now. So what's your recommendation? Is there a always use Latin Modern Roman (which I believe has small caps) in citations even when the text font is Latin Modern Sans? – petobens Sep 25 '14 at 15:49

Silencing the warning is not the answer: the output is incorrect because a serif font is used instead of a sans serif one. The problem is that the Latin Modern Sans fonts don't have a small caps variant.

Here's the output you get

which clearly shows the wrong font.

Redefine \mkbibacro, instead:

\documentclass{beamer}
\usepackage{silence}
\WarningFilter{biblatex}{Patching footnotes failed}

\usepackage{lmodern}
\usepackage[T1]{fontenc}

\usepackage[style=authoryear-comp,backend=biber]{biblatex}

\renewcommand\mkbibacro[1]{{\footnotesize\MakeUppercase{#1}}}

\begin{document}
\begin{frame}
\fullcite{sarfraz}
\end{frame}
\end{document}


Since this is used just for acronyms, the “wrong” font shouldn't be too evident.

• Okay but suppose I want the last names in small caps. I should then use the workaround \renewcommand*{\mkbibnamelast}[1]{\footnotesize\MakeUppercase{#1}}?. What font or sans font (that has small caps) do you recommend to use in Beamer? – petobens Sep 25 '14 at 17:57
• @petobens I recommend not to use small caps for sans serif fonts. – egreg Sep 25 '14 at 18:03
• "a sans serif font is used instead of a sans serif one"? Did you mean just "serif font" for the first part? – JAB Dec 5 '17 at 17:55