I would like to be able to click inside a (white) box in an image like:
and then jump to the description of that function.
I tried:
\documentclass[twoside]{book}
\usepackage{float}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex,pagebackref=true]{hyperref}
\else
\usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
colorlinks=true,%
linkcolor=blue,%
citecolor=blue,%
unicode%
}
\begin{document}
\hypersetup{pageanchor=false,
bookmarksnumbered=true,
pdfencoding=unicode
}
\section{\texorpdfstring{fie1()}{fie1()}}
References \mbox{\hyperlink{aa_8h_af60813d22831048d88007bf793ba9df2}{fie2}} ().
Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=180pt]{aa_8h_a321294a1af6610f2dc1563ebee9cdfbe_cgraph}
\end{center}
\end{figure}
\section{\texorpdfstring{fie2()}{fie2()}}
\end{document}
with the include image based on (the .dot file):
digraph "fie1"
{
// INTERACTIVE_SVG=YES
edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"];
node [fontname="Helvetica",fontsize="10",shape=record];
rankdir="LR";
Node0 [label="fie1",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black"];
Node0 -> Node1 [color="midnightblue",fontsize="10",style="solid"];
Node1 [label="fie2",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$aa_8h.html#af60813d22831048d88007bf793ba9df2"];
}
but this leads not to a clickable situation. I also tried with svg (after installing Inkscape):
\documentclass[twoside]{book}
\usepackage{float}
\usepackage{svg}
\usepackage[utf8]{inputenc}
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex,pagebackref=true]{hyperref}
\else
\usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
colorlinks=true,%
linkcolor=blue,%
citecolor=blue,%
unicode%
}
\begin{document}
\hypersetup{pageanchor=false,
bookmarksnumbered=true,
pdfencoding=unicode
}
\section{\texorpdfstring{fie1()}{fie1()}}
References \mbox{\hyperlink{aa_8h_af60813d22831048d88007bf793ba9df2}{fie2}} ().
Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includesvg{aa_8h_a321294a1af6610f2dc1563ebee9cdfbe_cgraph}
\end{center}
\end{figure}
\section{\texorpdfstring{fie2()}{fie2()}}
\end{document}
with the necessary SVG file being:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.38.0 (20140413.2041)
-->
<!-- Title: fie1 Pages: 1 -->
<svg width="108pt" height="28pt"
viewBox="0.00 0.00 108.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 24)">
<title>fie1</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-24 104,-24 104,4 -4,4"/>
<!-- Node0 -->
<g id="node1" class="node"><title>Node0</title>
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 32,-19.5 32,-0.5 0,-0.5"/>
<text text-anchor="middle" x="16" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">fie1</text>
</g>
<!-- Node1 -->
<g id="node2" class="node"><title>Node1</title>
<g id="a_node2"><a xlink:href="aa_8h.html#af60813d22831048d88007bf793ba9df2" target="_top" xlink:title="fie2">
<polygon fill="white" stroke="black" points="68,-0.5 68,-19.5 100,-19.5 100,-0.5 68,-0.5"/>
<text text-anchor="middle" x="84" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">fie2</text>
</a>
</g>
</g>
<!-- Node0->Node1 -->
<g id="edge1" class="edge"><title>Node0->Node1</title>
<path fill="none" stroke="midnightblue" d="M32.3076,-10C39.8047,-10 49.0314,-10 57.5491,-10"/>
<polygon fill="midnightblue" stroke="midnightblue" points="57.7754,-13.5001 67.7754,-10 57.7754,-6.5001 57.7754,-13.5001"/>
</g>
</g>
</svg>
but unfortunately also without result.
There is a restriction that the image cannot be draw by hand as it is automatically generated and a document can have quite a few of these type of images that also change when the underlying code changes. It is, probably, possible to modify the generating code.
Any ideas?


\inputthe generated TikZ. As it's all LaTeX, you can also set is as link anchor forhyperref. – Oleg Lobachev May 19 '18 at 16:23.dotfile, made a small update of the question. I'll have a look at the svg2tikz package. – albert May 19 '18 at 16:32