I am supposed to do a linked index for some lecture slides. There is no problem with the indexing itself, but with the linking - I can see the page numbers, but there are no links, although hyperref is loaded (and I think it is loaded by the beamer class anyway).
I have no clue, what I am doing wrong. Here is an example that can show my problem:
Code: Select all
\documentclass[16pt,pdftex]{beamer}
\usepackage{multicol}
\usepackage{makeidx}
\usepackage{hyperref}
\makeindex
\newenvironment{theindex}{
\let\item\par
\let\subitem\par
}{}
\newcommand\indexspace{}
\newcommand{\myindex}[1]{#1\index{#1}}
\newcommand{\mypart}[1]{\section{#1}}
\newcommand{\mysection}[1]{\subsection{#1}}
\newcommand{\mydef}[1]{\alert{#1}\index{#1}}
%\newcommand{\bb}[1]{\hyperpage{\textbf{#1}}}
\begin{document}
\begin{frame}
\frametitle{TableOfContents}
\tableofcontents
\end{frame}
\begin{frame}
\frametitle{Part1SecA}
test \myindex{taindex} \myindex{waindex!ssubaz} \myindex{zbzindex!isubbu}
\end{frame}
\begin{frame}
\frametitle{Part1SecA}
test \myindex{taindex} \myindex{ezzz!ezsubaz} \myindex{ezzbindex!uzsubbu}
\end{frame}
\mypart{Part2}
\mysection{SecB}
\begin{frame}
\frametitle{Part2SecB}
test \myindex{binden}\myindex{aindex!suba2} \myindex{bindex!subb2}
\end{frame}
\begin{frame}[allowframebreaks]
\frametitle{Index}
\printindex
\end{frame}
\end{document}
|bb
behind the index terms). But that try didn't even compile.Can you tell me where the problem is and maybe what the solution is? I haven't found much about that topic in forums etc. so I am wondering if I am the only one with this problem?

Best regards and thanks in advance