Graphics, Figures & TablesHyperlink flow chart boxes.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
cac100684
Posts: 8
Joined: Tue Nov 10, 2009 11:19 pm

Hyperlink flow chart boxes.

Post by cac100684 »

So I have attached a flow chart and I need to be able to link each box in my flow chart to a chapter in my document is this possible? I know you can do this in html it's called image mapping but is LaTeX capable of doing this and if so what format does the flow chart need to be in?
Thanks,
Carlee
OverviewFlowChart.pdf
(52.54 KiB) Downloaded 270 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Hyperlink flow chart boxes.

Post by gmedina »

Hi,

you could use the PGF/TikZ package to draw the chart and then use the \hyperlink and \hypertarget commands provided by the hyperref package. For further information, please refer to page 13 of the package documentation.

The following simple code illustrates this approach:

Code: Select all

\documentclass{book}
\usepackage{tikz}
\usepackage{lipsum}% justo to automatically generate some text
\usepackage{hyperref}

\begin{document}

\begin{tikzpicture}
  \draw (0,0) node[draw,fill=blue!30](a) {\hyperlink{link1}{Link1}} (1,1) 
    node[draw,fill=green!30](b) [draw] {\hyperlink{link2}{Link2}};
  \draw[->] (a.north) |- (b.west);
  \draw[color=red,<-] (a.east) -| (2,1.5) -| (b.north);
\end{tikzpicture}

\chapter{Test chapter one}
\lipsum[1-10]
Link1 on the initial diagram will lead you to \hypertarget{link1}{this text}.
\chapter{Test chapter two}
\lipsum[1-2]
Link2 on the initial diagram will lead you to \hypertarget{link2}{this other text}.

\lipsum[1-3]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply