A teacher handed me a chapter style (i don´t know where it came from) for a report wich I call using the "input" command.
Everytime I compile my report it shows the next two warnings:
- LaTeX Font Warning: Font shape `OT1/cmr/bx/sc' undefined
- LaTeX Font Warning: Some font shapes were not available, defaults substituted.
I want to get rid of those warnings, here is the code of the chapter style:
\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}
\def\@makechapterhead#1{%
\vspace*{10\p@}%
{\parindent \z@ \centering \reset@font
\thickhrulefill
\par\nobreak
\scshape \@chapapp{} \strut\thechapter
\par\nobreak
\interlinepenalty\@M
\hrule
\vspace*{10\p@}%
{\Huge \bfseries #1}\par\nobreak
\thickhrulefill
\vspace*{10\p@}%
\vskip 100\p@
}}
\def\@makeschapterhead#1{%
\vspace*{10\p@}%
{\parindent \z@ \centering \reset@font
\thickhrulefill
\par\nobreak
{\Huge \bfseries \strut #1}\par\nobreak
\interlinepenalty\@M
\hrule
\vspace*{10\p@}%
\vskip 100\p@
}}
This is my MWE:
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[spanish,mexico]{babel}
\input{chapterformat.tex}
\begin{document}
\chapter{A chapter}
\end{document}
\scshape
or\bfseries
from the definition or put, e.g.,\upshape
in front of\bfseries
. Alternative: Use a font that provides bold small capitals (no, I do not know such a font).bold-extra
which is designed to enable you to use bold small caps.