如何动态调整文本以适应一个 Beamer 框架?

如何动态调整文本以适应一个 Beamer 框架?

我试过,\resizebox{\textheight}{!}{}但没有将内容调整到框架中的页面高度。我通过 和 手动完成\small{...}\footnotesize{...}但这\tiny{...}太麻烦了。

示例幻灯片

\documentclass{beamer}
\usetheme{Berkeley} 
% http://tex.stackexchange.com/a/94632/13173
\newenvironment{slide}[1]
{\begin{frame}[environment=slide,allowframebreaks,fragile]
\frametitle{\insertsection-#1}
}
{\end{frame}}

\begin{document}
\section{Introduction}
\begin{slide}{Global burden by World Bank}

\tiny{
Global burden of STIs and their consequences (World Bank)
\begin{itemize}
\item among world’s most common diseases, with an annual incidence exceeded only by diarrheal diseases, malaria, and lower respiratory diseases. 
\item Due to their high \textbf{prevalence}, particularly in developing settings, STIs result in substantial productivity losses for individuals and communities. %, particularly where the majority of the population is under 40 years of age. 
\item In developing countries, STIs are among the leading causes of disability-adjusted life years (DALYs) lost for \textbf{women} of reproductive age. 
\item Every day, 1M \textbf{acquire} a new STI, and more than 340 million new cases of curable STIs occur throughout the world each year. 
Adolescents and young adults have the highest rates of curable STIs -- up to 1 in 20 adolescents develop a new STI each year. 
\item \textbf{Untreated} bacterial STIs in women - PID in 40\% infections, 1/3 in infertility, ...
\item \textbf{Perinatal deaths}. Syphilis - one of most common causes of adverse pregnancy outcomes globally, 1.5M deaths/year. 
\item \textbf{Chronic liver disease and death}. HBV, 1/40 deaths of adults globally per year. 
\item \textbf{Cervical cancer and death}. Most common cause of cancer mortality among African women. About 0.24 M/year mortality in resource poor seettings. 
\item \textbf{Prevention}. Vaccines, .... Antibiotics for many STIs. Antivirals in HIV and HSV-2.  
\end{itemize}
}
\end{document}

未根据页面大小进行调整的输出

在此处输入图片描述

操作系统:Debian 8.5

答案1

所有自动缩放方法的问题在于,它会同样影响高度和宽度,因此您最好手动控制字体大小或不要在一张幻灯片上放太多文字

为什么需要完整的句子,疾病本身还不够吗?所有其他信息都应该在演讲中口头提供?

永远不要将不必要的框架选项设为默认选项 - 这只会造成麻烦。考​​虑幻灯片的内容,只在必要时添加此类选项,例如,allowframebreaks只为自动参考书目添加选项,fragile只为包含代码的框架添加选项等。

\documentclass{beamer}
\usetheme{Berkeley} 

\usepackage{xpatch}

\makeatletter
\patchcmd\beamer@@tmpl@frametitle{\insertframetitle}{\insertsection\space-- \insertframetitle}{}{}
\makeatother


\begin{document}
\section{Introduction}
\begin{frame}[shrink]
\frametitle{Global burden by World Bank}
Global burden of STIs and their consequences (World Bank)
\begin{itemize}
\item among world’s most common diseases, with an annual incidence exceeded only by diarrheal diseases, malaria, and lower respiratory diseases. 
\item Due to their high \textbf{prevalence}, particularly in developing settings, STIs result in substantial productivity losses for individuals and communities. %, particularly where the majority of the population is under 40 years of age. 
\item In developing countries, STIs are among the leading causes of disability-adjusted life years (DALYs) lost for \textbf{women} of reproductive age. 
\item Every day, 1M \textbf{acquire} a new STI, and more than 340 million new cases of curable STIs occur throughout the world each year. 
Adolescents and young adults have the highest rates of curable STIs -- up to 1 in 20 adolescents develop a new STI each year. 
\item \textbf{Untreated} bacterial STIs in women - PID in 40\% infections, 1/3 in infertility, ...
\item \textbf{Perinatal deaths}. Syphilis - one of most common causes of adverse pregnancy outcomes globally, 1.5M deaths/year. 
\item \textbf{Chronic liver disease and death}. HBV, 1/40 deaths of adults globally per year. 
\item \textbf{Cervical cancer and death}. Most common cause of cancer mortality among African women. About 0.24 M/year mortality in resource poor seettings. 
\item \textbf{Prevention}. Vaccines, .... Antibiotics for many STIs. Antivirals in HIV and HSV-2.  
\end{itemize}
\end{frame}
\end{document}

在此处输入图片描述

相关内容