如何减少 beamer 中字幕的行距?我试过了,singlespacing
但没用。
\documentclass[14pt]{beamer}
\usepackage{graphicx}
%\usepackage{setspace}
\usecaptiontemplate{
\footnotesize%\singlespacing
\structure{\insertcaptionname~\insertcaptionnumber:}\insertcaption}
\begin{document}
\frame{{Test}
\begin{figure}
\caption{A very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very long caption.}
\centering
\includegraphics[width=0.8\linewidth]{test.png}
\end{figure}}
\end{document}
答案1
只需\par
在标题后面放置一个即可使用 的基线跳过\footnotesize
。如果您需要更精确的控制,可以使用以下方法分别定义字体大小和基线跳过\setbeamerfont{caption}{size*={10pt}{6pt}}
\documentclass[14pt]{beamer}
%\setbeamerfont{caption}{size*={10}{6}}
\setbeamerfont{caption}{size=\footnotesize}
\setbeamertemplate{caption}{%
\structure{\insertcaptionname~\insertcaptionnumber:}
\insertcaption\par
}
\begin{document}
\frame{{Test}
\begin{figure}
\caption{A very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very long caption.}
\centering
\includegraphics[width=0.8\linewidth]{example-image}
\end{figure}}
\end{document}