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.
If you compile with XeLaTeX
or LuaLaTeX
, it's easy to use arial
:
\usepackage{fontspec}
\setsansfont{arial}
if you want to use arial as the default
sans font. If you just want to use locally, in captions/headers/footers, you define a font switch with:
\newfontfamily\captionfont{arial}
If you compile with pdfLaTeX
, there is no support for arial. However there is an arial clone, named uarial
, made by URW, for which there is a package (same name) which is not part of TeX Live nor MiKTeX. But you can find a ready-to-install on CTAN here. To use it, you have:
- unzip it at the root of a LocalTeXMF directory. If you use TeXLive, you already have one; with MiKTeX you have to create one. DO NOT unzip it in the TeXMF directory of your distribution.
- Refresh the filenames data base i.e. run texhash (TeX Live) or
Refresh FNDB
(MiKTeX) via MiKTeX Settings.
- Add to your home updmap.cfg this line:
Map ua1.map
.
- Run updmap from the command line.
After that, uarial is ready to be used. Ther is a uarial.sty
package if you want to make it the default sans font. If not, you can define a font switch, e.g.:
\newcommand\captionfont{\fontfamily{ua1}\selectfont}
Other solution: use helvetica
(from which arial is inspired). There is a helvet
package that is part of every distribution. For the switch in that case, the LaTeX name of the helvetica family is phv
.
That being said, you have formatting commands in caption
. you can say for instance:
\DeclareCaptionFont{\captionfont\footnotesize}
With fancyhdr
you similarly can define a new page style with:
\fancypagestyle{mystyle}{%
\captionfont\small…
\fancyhead[…]{…}
\fancyfoot[…]{…}
..................
}%
then apply it with: \pagestyle{mystyle}
.
Best Answer
Extending my comment: Simply redefining
\normalsize
is not a good idea. There are further lengths which are chosen matching the base font size, specifically regarding vertical spacing. For example, if you look into the filebook.clo
, which contains class options forbook
, you can see it.For a consistent change I recommend changing the document class.
the extsizes bundle provides classes similar to standard classes offering a base font size from 9pt to 20pt.
memoir
can also be used with 20pt and more. In this regard, the optionextrafontsizes
may be useful. For very high font size a scalable font should be used.KOMA-Script classes, such as
scrartcl
,scrbook
andscrreprt
support arbitrary base font sizes. You could even user other units than pt to specify the size.Since KOMA-Script classes offer many more features, this would be my choice.
The further way depends on how your're producing the footer. On chapter starting pages, the page style is
plain
.With default page styles the base font size should be used, so there's no problem.
With
fancyhdr
, you could simply add\small
,\normalsize
or any orher font size command to the beginning of your header and footer macros. If necessary, use\fancypagestyle{plain}{\fancyhf{}\cfoot{\small\thepage}}
, like Ulrike already said in comments to question and to this answer.With a KOMA-Script class, I recommend to use
scrpage2
instead offancyhdr
. Since it belongs to the KOMA-Script bundle, it's very well integrated with the classes. That should also solve the problem. If necessary, use a font size command such as\small
,\tiny
or just\normalsize
within header and footer commands. Note: forplain
pages do it also within the optional argument, such as\cfoot[\tiny\thepage]{\tiny\thepage}
.scrpage2
is explained in the KOMA-Script manual.With KOMA-Script there are more and even easier possible solutions. You could use
\addtokomafont
or\setkomafont
for specifying the font size. For example:Further font option names, which you might use in this regard:
pagehead
,pageheadfoot
,pagefoot
.