[Tex/LaTex] Beamer: change size of figure caption


I am creating a beamer presentation and I would like to change the size of the caption under the figures. I am using the Madrid theme.

I tried the obvious way:

\caption{\scriptsize{Text of the caption.}}



in the preamble of the document.

However none of that seems to have any effect.

Best Answer

Use the caption package: \usepackage{caption}

Then use captionsetup: \captionsetup{font=scriptsize,labelfont=scriptsize}

Have fun with LaTeX!