
Intento generar un conjunto de piezas con enlaces en los que se puede hacer clic. encontréeste, pero lamentablemente no genera hipervínculos. Encontré la siguiente sugerencia que genera enlaces en los que se puede hacer clic, pero todos estos enlaces se refieren al propio parttoc.
\documentclass{beamer}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\newcommand{\dummyFrame}[1][1]{\begin{frame}{Test}\blindtext[#1]\end{frame}}
\usepackage{hyperref}
% for the list of parts
\makeatletter
\AtBeginPart{%
\addtocontents{toc}{%
\protect\beamer@partintoc{\the\c@part}{\beamer@partnameshort}{\the\c@page}%
}%
% \setcounter{framenumber}{0}
\frame{\partpage}
}
%% number, shortname, page.
\providecommand\beamer@partintoc[3]{%
\ifnum\c@tocdepth=-1\relax
% requesting onlyparts.
\makebox[6em]{Einheit #1:} \textcolor{green!30!blue}{\hyperlink{#2}{#2}}
\par
\fi
}
\define@key{beamertoc}{onlyparts}[]{%
\c@tocdepth=-1\relax
}
\makeatother%
\begin{document}
\begin{frame}{Inhaltsübersicht}
\tableofcontents[onlyparts]
\end{frame}
\part{MyPart One}
\dummyFrame
\part{MyPart Two}
\dummyFrame
\dummyFrame
\part{MyPart Three}
\dummyFrame
\dummyFrame
\end{document}
¿Cómo puedo hacer que estos enlaces apunten al marco correcto? Gracias de antemano por cualquier sugerencia
Respuesta1
Podrías asignar etiquetas a los marcos de las piezas que luego podrás usar como destinos de enlace:
\documentclass{beamer}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\newcommand{\dummyFrame}[1][1]{\begin{frame}{Test}\blindtext[#1]\end{frame}}
\usepackage{hyperref}
% for the list of parts
\makeatletter
\AtBeginPart{%
\addtocontents{toc}{%
\protect\beamer@partintoc{\the\c@part}{\hyperlink{part-\thepart}{\beamer@partnameshort}}{\the\c@page}%
}%
% \setcounter{framenumber}{0}
\frame[label=part-\thepart]{\partpage}
}
%% number, shortname, page.
\providecommand\beamer@partintoc[3]{%
\ifnum\c@tocdepth=-1\relax
% requesting onlyparts.
\makebox[6em]{Einheit #1:} \textcolor{green!30!blue}{#2}
\par
\fi
}
\define@key{beamertoc}{onlyparts}[]{%
\c@tocdepth=-1\relax
}
\makeatother%
\begin{document}
\begin{frame}{Inhaltsübersicht}
\tableofcontents[onlyparts]
\end{frame}
\part{MyPart One}
\dummyFrame
\part{MyPart Two}
\dummyFrame
\dummyFrame
\part{MyPart Three}
\dummyFrame
\dummyFrame
\end{document}