I use packages: fancyhdr and caption.
I want to change font to Arial only in those two cases:
1.table/figure caption
2.page number
Also I want to change sizes to 10pt and 11pt
I know in captionsetup I can use font=small, and some similar for page number eg. fanctheader[CE]{\small \thepage} but it is not enough. And I have no idea how tho change font type.
Best Answer
If you compile with
XeLaTeX
orLuaLaTeX
, it's easy to usearial
: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:If you compile with
pdfLaTeX
, there is no support for arial. However there is an arial clone, nameduarial
, 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:Refresh FNDB
(MiKTeX) via MiKTeX Settings.Map ua1.map
.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 ahelvet
package that is part of every distribution. For the switch in that case, the LaTeX name of the helvetica family isphv
.That being said, you have formatting commands in
caption
. you can say for instance:With
fancyhdr
you similarly can define a new page style with:then apply it with:
\pagestyle{mystyle}
.