I want to change the font size of the label of a figure environment to any font size. It's possible to use the package caption
with the argument font=Large
for example. But I found no way to choose any font size, e.g. fontsize=28pt
.
Here an example code:
\documentclass{standalone}
\usepackage{anyfontsize}
\usepackage[font=Large]{caption}
%\usepackage[fontsize=28pt]{caption} % not implemented
\begin{document}
\parbox[t]{20cm}{
\fontsize{28}{30} \selectfont
\begin{figure}
%\includegraphics{figure.eps}
\caption{\label{fig_req_osnr} \fontsize{28}{30} \selectfont My caption.}
\end{figure}
}
\end{document}
Do you have any ideas?