4

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}
\addbibresource{biblatex-examples.bib}

\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
  • 1
    @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
5

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

enter image description here

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}
\addbibresource{biblatex-examples.bib}

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

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

enter image description here

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

| improve this answer | |
  • 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

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.