This question here garnered an interesting response on how to make TikZ node text clickable.
I am using the graphdrawing
package in order to automatically set up the graph, so I am unable to use the \hyperlink
command in the \graph
"environment. My file at the moment looks like this:
\documentclass{article}
\usepackage{hyperref}
\usepackage{bookmark}
\usepackage{tikz}
\usetikzlibrary{trees,calc}
\usepackage{tikz}
\usetikzlibrary{graphs, graphdrawing}
\usegdlibrary{trees, layered}
\begin{document}
\begin{tikzpicture}
\tikz [rounded corners]
\graph [layered layout, sibling distance=8mm, level distance=8mm]
{
A -> B -> C -> A
};
\end{tikzpicture}
\clearpage
\section{Target A}
\label{sec:A}
\clearpage
\section{Target B}
\label{sec:B}
\clearpage
\section{Target C}
\label{sec:C}
\end{document}
How could I set up hyperlinks to be such that if click on A in the graph, it takes me to the section titled "A" if I am using graphdrawing
?