17

I have a paragraph which I want to put in one slide, but it doesn't fit and some content can't be seen. I am using the Warsaw theme as follows.

I tried increasing the height of the slide using the following code

\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}

However it still doesn't increase.

2
  • It's no use increasing the height of the slides; did you try putting \small or \footnotesize just after \begin{frame}?
    – egreg
    Commented Oct 21, 2012 at 11:18
  • 1
    I'm not sure it makes sense to mess with beamer's page sizes using geometry rather than its inbuilt methods, if I get an error from the example as posted but it works fine if I comment out the \usepackage. Unrelated you are missing a % after \insertframenumber/ (or put a space before the / to match the space after it). Also why do a table of contents "by hand" in latex, normally you just use \tableofcontents Commented Oct 21, 2012 at 11:18

1 Answer 1

21

You have several possibilities here:

  1. Use \setbeamersize to reduce the left and right margins (default =1cm); notice that this will have a global effect (all frames will suffer the change):

    \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}
    
  2. Use \footnotesize (or other font switch) to reduce the font size in the given frame:

    \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}
    
  3. Use the shrink option for the frame:

    \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}
    

Notice that I replaced the manually generated table of contents by the automatically generated one using \tableofcontents.

6
  • hey thanks for the answer. i used \setbeamersize and it worked :)
    – Nyfer
    Commented Oct 21, 2012 at 18:25
  • shrink (option 3 above) works very well. Its just that the number in the shrink has to be entered manually. It would be good if [shrink=*] autoresized the frame contents! Commented Oct 25, 2014 at 17:20
  • 5
    putting just [shrink] would "autofit" the content onto the slide. Commented Oct 26, 2014 at 11:05
  • For text "shrink" is not suitable because it also makes the lines shorter. Better use method (2): put "\small" or some other size switcher after \begin{frame}.
    – user14744
    Commented Aug 19, 2017 at 8:35
  • In my experience shrink makes the lines shorter when the amount to shrink by is not enough. For instance, shrink=10 reduces the line width, but shrink=20 might be just right. You need to tweak the value of shrink before it looks right. If the lines are short, you probably will find a message in the log file to inform you that beamer shrunk by some other value instead.
    – PatrickT
    Commented Jul 13, 2018 at 9:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .