如何在 Beamer 中更改字幕的字体大小

How to change the font size of a caption in Beamer

我想添加一个非常小的标题(脚注大小)并与图像对齐。我使用了这些包:

\usepackage{caption}
\usepackage[font=footnotesize]{caption}
\captionsetup{font=footnotesize}

但字体大小没有改变。

图像和标题的 LaTeX 代码部分如下:

\begin{frame}
\frametitle{Model}
\begin{figure}[l]
    \centering
    \includegraphics[width=0.7\textwidth]{dynamics}
    \caption{Bla Bla Bla...Bla Bla Bla Bla}
    \label{fig:dynamics}
\end{figure}

\end{frame}

图像尺寸如下:

我可以更改字体大小吗?

您不需要 caption 包来调整 beamer 中的字幕字体大小 -- beamer 有自己的机制:

\documentclass{beamer}

\setbeamerfont{caption}{size=\Tiny}

\begin{document}

\begin{frame}
\frametitle{Model}
\begin{figure}
%    \centering
    \includegraphics[width=0.7\textwidth]{example-image-duck}
    \caption{Bla Bla Bla...Bla Bla Bla Bla}
    \label{fig:dynamics}
\end{figure}

\end{frame}

\end{document}

与问题无关,但是

  • 在没有浮动机制的文档类中,向图形添加浮动说明符是没有意义的,而且 [l] 无论如何都不是有效的说明符

  • 你不需要\centering,默认情况下数字居中使用 beamer