9

I am using scrbook as documentclass and would like to setup the default font of the whole document to 9.5pt.

Just like you do with 9pt, 10pt, ... :

\documentclass[fontsize=9.5pt, DIV=calc]{scrbook} 

\usepackage[ngerman]{babel} 
\usepackage{blindtext} 
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[paperwidth=170mm, paperheight=240mm, top=25mm, bottom=25mm, left=25mm, right=20mm, headsep=10mm, footskip=10mm]{geometry}
\usepackage[onehalfspacing]{setspace}

\begin{document} 

\tableofcontents 
\Blinddocument 

\end{document}

This code leads to this warnings:

  • Using fallback calculation to setup font sizes for basic size '9.5pt' on input line 1655
  • Font shape 'OT1/cmr/m/n' in size <9.5> not available
  • Size substitutions with differences up to 0.5pt have occurred

I did a little bit of research and found out that you can change the fontsize in KOMA with this command:

\fontsize{Xpt}{Ypt}\selectfont

Where Xpt is the font size and Ypt is the baseline skip (which is nearly 120% of fontsize).

So I changed the code to this:

\documentclass[DIV=calc]{scrbook} 

\usepackage[ngerman]{babel} 
\usepackage{blindtext} 
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[paperwidth=170mm, paperheight=240mm, top=25mm, bottom=25mm, left=25mm, right=20mm, headsep=10mm, footskip=10mm]{geometry} 
\usepackage[onehalfspacing]{setspace}

\begin{document} 
\fontsize{9.5pt}{11.4pt}\selectfont
\tableofcontents 
\Blinddocument 

\end{document}

No errors and no warnings, but now the main-text is only setup to 9.5pt the captions, header, footer and so on, are setup to 10pt...

Also it seems that there is a problem with setting the baseline skip and onehalfspacing. If I add to the code fontsize=9pt to the documentclass, the captions, header, footer and so in, are setup to 9pt and the spacing changed again, and it does not look right...

Is there no way to set the hole fontsize to 9.5pt so Latex can manage the scale of the footer, header, captions and the spacing like it does when you set fontsize to 9pt?

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Heiko Oberdiek Apr 13 '14 at 9:27
  • 1
    Regarding the »fallback calculation« warning see tex.stackexchange.com/q/108569/5049 – clemens Apr 13 '14 at 9:29
  • At least with 9.6pt I get no warnings. Not in your example, in your example setspace causes trouble to me. – Manuel Apr 13 '14 at 11:18
  • 1
    The "fallback"-message is simply an information. And you can avoid the size substitution by loading the package fix-cm. Then fontsize=9.5pt should work fine. See also golatex.de/…. – Ulrike Fischer Apr 14 '14 at 7:27
  • 2
    Because of \def\fontsubfuzz{.4pt} in the latex kernel. So latex will inform you of font substitution only if the size declared in the fd file differ from the one you are trying to use by more than 0.4pt. (9pt and 10pt are declared by default). With fix-cm all size are declared so all warnings will disappear. – Ulrike Fischer Apr 14 '14 at 9:50
5

The "fallback"-message is simply an information. And you can avoid the size substitution by loading the package fix-cm. Then fontsize=9.5pt should work fine.

You don't get substituation warnings with fontsize=0.96 as the LaTeX-kernel defines \def\fontsubfuzz{.4pt}. So latex will inform you of font substitution only if the size declared in the fd file differ from the one you are trying to use by more than 0.4pt. (9pt and 10pt are declared by default). With fix-cm all size are declared so all warnings will disappear.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.