我有一个段落想放在一张幻灯片中,但它不适合,而且有些内容看不到。我使用华沙主题,如下所示。
我尝试使用以下代码增加幻灯片的高度
\documentclass{beamer}
\usepackage{lmodern}
\setbeamercovered{transparent}
\usetheme{Warsaw}
\usepackage[height=10in,a5paper,hmargin={3cm,0.8in}]{geometry}
\title[\insertframenumber/
\inserttotalframenumber]{Database}
\author{Mark dain \\ \scriptsize{(Reg.No 12345)} }
\institute{Dept. of Information \& Communication Technology}
\date{October 21,2012}
\begin{document}
\frame{\titlepage}
\begin{frame}
\frametitle{Table of Contents}
\begin{itemize}
\item Introduction
\item Algorithm for reducing finite automata
\item Reliability models
\item Reduction steps
\item References
\item Conclusion
\end{itemize}
\end{frame}
\begin{frame}{Title}
text
\end{frame}
\end{document}
但它仍然没有增加。
答案1
这里有几种可能性:
用于
\setbeamersize
减少左边距和右边距(默认值 =1cm
);请注意,这将产生全局影响(所有框架都会受到影响):\documentclass{beamer} \usepackage{lmodern} \setbeamercovered{transparent} \usetheme{Warsaw} \title[\insertframenumber/\inserttotalframenumber]{Database} \author{Mark dain \\ \scriptsize{(Reg.No 12345)} } \institute{Dept. of Information \& Communication Technology} \date{October 21,2012} \setbeamersize{text margin left=0.5cm,text margin right=0.5cm} \begin{document} \frame{\titlepage} \begin{frame} \frametitle{Table of Contents} \tableofcontents \end{frame} \section{Introduction} \begin{frame}{Title} text \end{frame} \section{Algorithm for reducing finite automata} \begin{frame}{Title} text \end{frame} \section{Reliability models} \begin{frame}{Title} text \end{frame} \section{Reduction steps} \begin{frame}{Title} text \end{frame} \end{document}
使用
\footnotesize
(或其他字体开关)减小给定框架中的字体大小:\documentclass{beamer} \usepackage{lmodern} \setbeamercovered{transparent} \usetheme{Warsaw} \usepackage{lipsum}% just to generate text for the example \title[\insertframenumber/\inserttotalframenumber]{Database} \author{Mark dain \\ \scriptsize{(Reg.No 12345)} } \institute{Dept. of Information \& Communication Technology} \date{October 21,2012} \begin{document} \frame{\titlepage} \begin{frame} \frametitle{Table of Contents} \tableofcontents \end{frame} \section{Introduction} \begin{frame}{Title} \footnotesize \lipsum[2]\lipsum[3] \end{frame} \section{Algorithm for reducing finite automata} \begin{frame}{Title} text \end{frame} \section{Reliability models} \begin{frame}{Title} text \end{frame} \section{Reduction steps} \begin{frame}{Title} text \end{frame} \end{document}
使用
shrink
框架的选项:\documentclass{beamer} \usepackage{lmodern} \setbeamercovered{transparent} \usetheme{Warsaw} \usepackage{lipsum}% just to generate text for the example \title[\insertframenumber/\inserttotalframenumber]{Database} \author{Mark dain \\ \scriptsize{(Reg.No 12345)} } \institute{Dept. of Information \& Communication Technology} \date{October 21,2012} \begin{document} \frame{\titlepage} \begin{frame} \frametitle{Table of Contents} \tableofcontents \end{frame} \section{Introduction} \begin{frame}[shrink=20]{Title} \lipsum[2]\lipsum[3] \end{frame} \section{Algorithm for reducing finite automata} \begin{frame}{Title} text \end{frame} \section{Reliability models} \begin{frame}{Title} text \end{frame} \section{Reduction steps} \begin{frame}{Title} text \end{frame} \end{document}
请注意,我使用 将手动生成的目录替换为自动生成的目录\tableofcontents
。