# How to reduce font size of TOC on lyx beamer

I'm having trouble with a large TOC, which can't fit on one page. How can I reduce the font size of TOC, so that it can be fit on one page?

-
Please provide a minimal working example. For starters, you might want to surround the table of contents with a \begin{scriptsize} or tiny environment. –  recluze Nov 20 '11 at 13:53
Does recluze's suggestion help? (Adding \begin{scriptsize} in an ERT before the TOC and \end{scriptsize} after.) –  Torbjørn T. Dec 3 '11 at 23:46

This isn't a complete solution, as the numbers in the item bullets aren't reduced in size, but as suggested by recluze, putting the \tableofcontents in a scriptsize environment does reduce the font size of the text in the TOC. To do this:

1. Put the text cursor immediately before the Table of Contents object in LyX.

2. Add an ERT by Ctrl + L or Insert --> TeX code, and type

\begin{scriptsize}


in this.

3. Do the same immediately after the TOC object, and type

\end{scriptsize}


In LyX you'll see something like this:

Without the ERTs, the result is

while with the ERTs you get

There are other sizes available, the smallest being tiny, followed by scriptsize, footnotesize, small and then normalsize. The latter, as you may guess, is the standard size.

For reference, the larger sizes are large, Large, LARGE, huge and HUGE.

-

\tableofcontents[sections={1-4}]


and

\tableofcontents[sections={5-}]


in different frames.

-

I found that the best way to control the font sizes of the elements of the toc is as follows:

\setbeamerfont{section in toc}{size=fontsize}

\setbeamerfont{subsection in toc}{size=fontsize}

\setbeamerfont{subsubsection in toc}{size=fontsize}


where fontsize is one of \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, or \Huge.

-
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  Paul Gessler May 2 at 18:59