梅威瑟:
\documentclass{beamer}
\title{Very long title that doesn't split on multiple text lines}
\begin{document}
\frame{
\parbox{2cm}{\insertshorttitle} % Fails
\parbox{2cm}{\inserttitle} % Works fine
\parbox{2cm}{Very long title that doesn't split on multiple text lines} % Works fine
}
\end{document}
问题:使用\insertshorttitle
命令时,文本不会在 parbox 内拆分为多行。如何解决?
编辑: \insertitle
工作正常。但我想使用\insertshorttitle
。
答案1
这里有一个解决方案,但是标题页的链接坏了。我不太在乎这个链接。
\documentclass{beamer}
\title{Very long title that doesn't split on multiple text lines}
\makeatletter
\let\myshorttitle\beamer@shorttitle
\makeatother
\begin{document}
\frame{
\parbox{2cm}{\myshorttitle}
\parbox{2cm}{Very long title that doesn't split on multiple text lines}
}
\end{document}