book
and scrbook
classes, I redefined the caption's label using this command in the preamble :
Code: Select all
\renewcommand*{\figureformat}{\sffamily\bfseries\figurename~\thefigure}
So is there a better way in changing the caption's label style, so we don't get these pesky warnings each time there's a figure in the code ? Here's a MWE to mess with :LaTeX Font Warning: Font shape `T1/cmss/bx/sc' undefined
(Font) using `T1/cmss/bx/n' instead on input line 15.
Code: Select all
\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[11pt,twoside,letterpaper,headsepline,footsepline,cleardoublepage=plain,]{scrbook}
\renewcommand*{\figureformat}{\sffamily\bfseries\figurename~\thefigure}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage[total={6.25in,10in},left=1.25in,top=0.5in,includehead,includefoot]{geometry}
\begin{document}
\begin{figure}
\centering
\includegraphics[height=4cm]{example-image-a}
\caption{Some caption text.}
\end{figure}
\end{document}
\usepackage[french]{babel}
. If I remove it, I don't get any warning.