如何将较长的框架标题放入一行?

如何将较长的框架标题放入一行?

我使用命令\resizebox将长框架标题调整为一行,但是它不起作用,如下图所示。

在此处输入图片描述

这是一个 MWE。

\documentclass[compress]{beamer}
\usetheme{Warsaw} 

\title{title}
\author{author}

%%%%%
\begin{document}

\begin{frame}{\resizebox{\textwidth}{!}{very very very very long frame title}}
very very very very long frame title
\end{frame}

\end{document}

答案1

转换@Salim Bous 评论变成 CW 答案:

\documentclass[compress]{beamer}
\usetheme{Warsaw} 

\title{title}
\author{author}

%%%%%
\begin{document}

\begin{frame}{\resizebox{\dimexpr\paperwidth - 4ex}{!}{\centering very very very very long frame title}}
very very very very long frame title
\end{frame}

\end{document}

在此处输入图片描述

相关内容