I use scrbook
and want to set the font for some part of the text with fontsize
. The effect is that the text in the normal font is in the normal font size and only special fonts are scaled by fontsize.
\documentclass{scrbook}
\KOMAoptions{ fontsize=11pt }
\usepackage{anyfontsize}
\begin{document}
some normal text \\
{
\fontsize{4pt}{9.5pt}
% \footnotesize
Teile dieses Buches wurde Programmen in Haskell erstellt. Der Text wurde
mit {\LaTeX}, {Lua\LaTeX} and {\KOMAScript} gesetzt.
}
\end{document}
The result shows only the KOMAScript part is smaller:
The fontsizes are selected for contrast and not what is ultimately used!
\fontsize{4pt}{9.5pt}\selectfont
– moewe Jun 10 '19 at 10:13