答案1
假设您使用该fancybox
包来生成椭圆框,那么将内容保持在框架范围内的最简单方法是将其插入到该宽度的 parbox 中。
\documentclass[11pt]{beamer}
\usepackage{fancybox} % added for ovalbox
\begin{document}
\begin{frame}{Ovalbox}
\ovalbox{\parbox{\framewidth}{The BEAMER package, wich defines the beamer document class, is generally included in most of standart LaTex distributions.}}
\end{frame}
\end{document}
答案2
您可以fancybox
使用tcolorbox
\documentclass[11pt]{beamer}
\usepackage[most]{tcolorbox} % added for ovalbox
\begin{document}
\begin{frame}{Ovalbox}
\begin{tcolorbox}[colback=white]
The BEAMER package, wich defines the beamer document class, is generally included in most of standart LaTex distributions.
\end{tcolorbox}
\end{frame}
\end{document}