MakeIndex, Nomenclature, Glossaries and AcronymsGlossary with Page Breaks in Presentation

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
mafis103
Posts: 7
Joined: Sat Feb 23, 2013 9:29 am

Glossary with Page Breaks in Presentation

Post by mafis103 »

Hi everyone,

I have got the following problem: I am using the beamer class and added an index with datagidx from datatool. When I add a lot of indexes, the pages don't break and the indexes flow over the frame (see example).

Is there any solution for that?

Code: Select all

\documentclass[16pt,pdftex]{beamer}

\makeatletter
% beamer doesn't define \@idxitem, but it's used by the
% \printterms "index" style, so define it:
  \newcommand\@idxitem{\par\hangindent40pt}
\makeatother

\usepackage{datagidx}

\newgidx{index}{Index}
\DTLgidxSetDefaultDB{index}

\newterm{taindex}
\newterm{waindex}
\newterm[parent=waindex]{ssubaz}
\newterm{zbzindex}
\newterm[parent=zbzindex]{isubbu}
\newterm{ezzz}
\newterm[parent=ezzz]{ezsubaz}
\newterm{ezzbindex}
\newterm[parent=ezzbindex]{uzsubbu}
\newterm{binden}
\newterm{aindex}
\newterm[parent=aindex]{suba2}
\newterm{bindex}
\newterm[parent=bindex]{subb2}
\newterm{cindex}
\newterm{dindex}
\newterm{eindex}
\newterm{findex}
\newterm{gindex}
\newterm{hindex}
\newterm{iindex}
\newterm{jindex}
\newterm{kindex}
\newterm{dindex2}
\newterm{eindex2}
\newterm{findex2}
\newterm{gindex2}
\newterm{hindex2}
\newterm{iindex2}
\newterm{jindex2}
\newterm{kindex2}
\newterm{dindex3}
\newterm{eindex3}
\newterm{findex3}
\newterm{gindex3}
\newterm{hindex3}
\newterm{iindex3}
\newterm{jindex3}
\newterm{kindex3}

\begin{document}

\begin{frame}
  \frametitle{TableOfContents}
  \tableofcontents
\end{frame}

\begin{frame}
  \frametitle{Part1SecA}
  test \gls{taindex} \gls{ssubaz}
  \gls{isubbu}
\end{frame}

\begin{frame}
  \frametitle{Part1SecA}
  % Make the next term have a bold page number in the index:
  test \gls{[textbf]taindex}
  \gls{ezsubaz}
  \gls{dindex}
  \gls{eindex}
  \gls{findex}
  \gls{gindex}
  \gls{hindex}
  \gls{iindex}
  \gls{jindex}
  \gls{kindex}
  \gls{uzsubbu}
  \gls{dindex2}
  \gls{eindex2}
  \gls{findex2}
  \gls{gindex2}
  \gls{hindex2}
  \gls{iindex2}
  \gls{jindex2}
  \gls{kindex2}
  \gls{dindex3}
  \gls{eindex3}
  \gls{findex3}
  \gls{gindex3}
  \gls{hindex3}
  \gls{iindex3}
  \gls{jindex3}
  \gls{kindex3}
\end{frame}

\begin{frame}
  \frametitle{Part2SecB}
  test \gls{binden}\gls{suba2}
  \gls{subb2}
\end{frame}

\begin{frame}[allowframebreaks]
  \frametitle{Index}
  \printterms[style=index]
\end{frame}

\end{document}
Thanks in advance for any hint =)
And have a nice weekend.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Glossary with Page Breaks in Presentation

Post by nlct »

The problem seems to be that the multicols environment doesn't work properly with \begin{frame}[allowframebreaks]. The only solution I can think of is to switch to one column mode using:

Code: Select all

\printterms[style=index,columns=1]
This will allow frame breaks, although it looks a bit odd with just one column. (\twocolumn doesn't work with beamer, so unfortunately that's not an option either.)

Regards
Nicola Talbot
mafis103
Posts: 7
Joined: Sat Feb 23, 2013 9:29 am

Re: Glossary with Page Breaks in Presentation

Post by mafis103 »

Thank you very much Nicola,
that solved my problem (again ;) ).
Post Reply