I'm writing a presentation for the Shannon Switching Game. In this game, players take turns picking edges from a graph. For fun, I decided to try to include an example game in the presentation.
The effect I want: when I click on a certain edge, I go to a specified slide. The edges will not always be vertical or horizontal.
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}\label{picture:first}
\node (A) {$A$};
\node (B) [below right=2 and 3 of A] {$B$};
\path (A) edge[line width=5pt] (B); % I want this edge to be click-able
\end{tikzpicture}
\newpage
\begin{tikzpicture}\label{picture:second}
\node (A) {$A$};
\node (B) [below right=2 and 3 of A] {$B$};
\path (A) edge[line width=5pt,red] (B)
\end{tikzpicture}
\end{document}
I've found answers to similar questions, either where the node is a hyperlink or where the edge is horizontal. Until I find a way to do this, my temporary solution is to put a node by each edge to label it and click on the edge labels.
\path (A) edge[ultra thick] node {\hyperlink{210000}{1}} (1);which puts the label next to the edge (I think one of my packages changes this from default, which is centered on top of the edge). Doing it with empty labels, I would want to make a type of edge
edge[link=2100000]that creates nodes along its entire length. This is something I don't know how to do.Links: [http://tex.stackexchange.com/questions/120861/making-tikz-path-into-a-hyperlink?rq=1] [http://tex.stackexchange.com/questions/169111/using-tikz-path-as-hyperref-link?rq=1]
– Pi Fisher May 02 '16 at 01:17minimalfor examples. I've illustrated the idea I had, guessing how you created the links. You can just make the nodes invisible and on top of the edge. I created 6. Of course you could make more. – cfr May 02 '16 at 01:21