\documentclass{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{hyperref} \begin{document} \section{A graph for Omer} \begin{tikzpicture} \node(A) at (0,0) {$A$}; \node(B) at (10,0) {$B$}; \draw[->] (A)-- node[below]{\hyperlink{tikz_thm1}{Theorem 1}} (B); \end{tikzpicture} \begin{theorem}\label{thm1}\hypertarget{tikz_thm1} 1+1+2. \end{theorem} \end{document}
Graphics, Figures & Tables ⇒ hyperlinks in tikz
hyperlinks in tikz
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
hyperlinks in tikz
Code: Select all
\documentclass{article}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{hyperref}
\begin{document}
\section{A graph for Omer}
\begin{tikzpicture}
\node(A) at (0,0) {$A$};
\node(B) at (10,0) {$B$};
\draw[->] (A)-- node[below]{\autoref{thm1}} (B);
\end{tikzpicture}
\begin{theorem}\label{thm1}
1+1+2.
\end{theorem}
\end{document}
Rainer