I am using a LyX beamer template which can be downloaded from this link.
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?
I am using a LyX beamer template which can be downloaded from this link.
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?
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:
Put the text cursor immediately before the Table of Contents
object in LyX.
Add an ERT by Ctrl + L or Insert --> TeX code, and type
\begin{scriptsize}
in this.
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
.
You could split table of contents with parameters, such;
\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
.
\begin{scriptsize}
in an ERT before the TOC and\end{scriptsize}
after.)