Page Layoutbeamer | Frames with two-columned Index

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
gadgetto
Posts: 11
Joined: Wed Oct 24, 2012 8:28 am

beamer | Frames with two-columned Index

Post by gadgetto »

Hi everybody,

I have implemented a huge number of slides using the beamer class. Now I want to append an index. It works quite fine with

Code: Select all

\usepackage{makeidx}
\newenvironment{theindex}{%
  \let\item\par   % definitions for subitem etc 
}{}
\newcommand\indexspace{}
\makeindex

[...]

\begin{frame}<handout>[allowframebreaks]
  \frametitle{Index}
  \printindex
\end{frame}

But I would like to have two columns per frame.

I tried the multicol package as follows, but the automatic frame-breaks did not work any more and latex tries to put the hole index on one slide, so that a lot of entries stick out

Code: Select all

\newenvironment{theindex}{%
  \let\item\par   % definitions for subitem etc
  \begin{multicols}{2}
}{\end{multicols}}
Has anyone an idea how to get an 2 column index on several frames???


Thanks for help!
Gadgetto

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

beamer | Frames with two-columned Index

Post by localghost »

Did you try to use imakeidx instead? It is more sophisticated. If that doesn't help, kindly prepare a minimal example.


Thorsten
gadgetto
Posts: 11
Joined: Wed Oct 24, 2012 8:28 am

beamer | Frames with two-columned Index

Post by gadgetto »

Hi localghost,

I tried also imakeidx, but I got the same problem. When I want to have n columns n-1 empty slides are created and the hole index is set to the next slide, so that a lot of entries stick out.

Hier is a small example:

Code: Select all

\documentclass[handout]{beamer}

\usepackage{makeidx}
\newenvironment{theindex}{%
  \let\item\par   % definitions for subitem etc
}{}
\newcommand\indexspace{}
\makeindex


\begin{document}
\begin{frame}
  A\index{A} B\index{B} C\index{C} D\index{D} E\index{E} F\index{F}
  G\index{G} H\index{H} I\index{I} J\index{J} K\index{K} L\index{L}
  M\index{M} N\index{N} O\index{O} P\index{N} P\index{N} Q\index{Q}
  R\index{R} S\index{S} T\index{T} U\index{U} V\index{V} W\index{W} 
  X\index{X} Y\index{Y} Z\index{Z}
\end{frame}

\begin{frame}<handout>[allowframebreaks]
  \frametitle{Index}
  \printindex
\end{frame}
\end{document}
Gadgetto
Post Reply