Biblatex を使用した Beamer での小文字フォントの警告

Biblatex を使用した Beamer での小文字フォントの警告

次の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}

次の警告が生成されます:

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.

パッケージを使用せずに警告を回避する方法はありますかsilence?

答え1

警告を消しても解決にはなりません。出力は、サンセリフ フォントではなくセリフ フォントが使用されているため、正しくありません。問題は、Latin Modern Sans フォントにスモール キャップ バリアントがないことです。

出力は次のようになります

ここに画像の説明を入力してください

明らかに間違ったフォントが示されています。

代わりにを再定義します\mkbibacro

\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}

ここに画像の説明を入力してください

これは頭​​字語にのみ使用されるため、「間違った」フォントが目立たないはずです。

関連情報