I am using the ebgaramond
package in my scrbook
document. As a base font size I want to use 16pt but when I compile the document I get warnings like the following:
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <16> not available (Font) size <17.28> substituted on input line 2251.
[...]
LaTeX Font Warning: Font shape `OML/eur/m/n' in size <13.3335> not available (Font) size <14.4> substituted on input line 7.
[...]
LaTeX Font Warning: Font shape `OML/eur/m/n' in size <27.64795> not available (Font) size <24.88> substituted on input line 1.
(and so forth...)
I read another answer here, suggesting to use the lmodern
package for freely scalable fonts, but (i figure) since this is specific to certain fonts, not including EB Garamond, this did not help.
So I have two questions:
1) Obviously: What should I do to resolve this?
2) Why does it happen in the first place? Shouldn't stuff like this be one of LaTeX's stengths? -- You just select a new base font size and, boom, everything is adjusted accordingly?
EDIT:
The solution suggested below (\RequirePackage{fix-cm}
) is in principle correct. It turned out, there was yet one more issue with using both SIunits
and scrlayer-scrpage
at a time. Can you tell me why that is or how it could be resolved?
M(n)WE:
\RequirePackage{fix-cm}
\documentclass[a4paper, fontsize=16pt, DIV=12]{scrbook}
\usepackage[lining]{ebgaramond}
% The following two do not like each other -- it works with either of them, but not with both o_O
\usepackage[amssymb]{SIunits}
\usepackage[automark]{scrlayer-scrpage}
\begin{document}
\chapter{Hi}
\section{There}
\subsection{Folks}
This is an MWE.
\end{document}
ebgaramond
is scalable in Cork encoding, so try\usepackage[T1]{fontenc}
.