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}
.
What's wrong with two captions in your figure environment? (Not a rhetorical question — if that's the wrong thing to do, I'd like to know.)
EDITED to uppercase the caption label.
\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\DeclareCaptionLabelFormat{upper}{\MakeUppercase{#1}~#2}
\captionsetup{labelformat=upper}
\begin{document}
\begin{figure}
\centering
\caption{}
\includegraphics[width=.80\textwidth]{example.png}
\caption*{The first figure}
\end{figure}
\begin{figure}
\centering
\caption{}
\includegraphics[width=.80\textwidth]{example.png}
\caption*{The second figure}
\end{figure}
\end{document}
Best Answer
use
Maybe that Figure and Table are already the predefined names. Then you do need the first two lines.