如何在演示文稿中创建思维导图节点链接

如何在演示文稿中创建思维导图节点链接

想要使二级和三级节点链接到演示文稿中的其他框架。一个很好的例子是将山地自行车节点链接到标题为“山地自行车”的框架。我构建的代码如下:

\documentclass{beamer}

 \usetheme{Frankfurt}
 \usecolortheme{dolphin}
 \usefonttheme{structuresmallcapsserif}
 \usefonttheme{serif}
 \usepackage{tikz}
 \usetikzlibrary{mindmap}

 \begin{document}

 \begin{frame}
     \makebox[\textwidth][c]{%
       \begin{tikzpicture}
        \path[mindmap,concept color=blue, text=white, transform shape]
        node[concept,scale=0.8]{bicycle}
        child[grow=0, concept color=red]{node[concept]{road bicycle}
            child[grow=30]{node[concept]{time trial bicycle}}
            child[grow=90]{node[concept]{road racing bicycle}}}
        child[grow=60, concept color=black]{node[concept]{mountain bicycle}}    
        child[grow=120, concept color=orange]{node[concept]{tandem bicycle}};
    \end{tikzpicture}
    }
 \end{frame}

    \begin{frame}
   \frametitle{mountain bicycle}
   \begin{itemize}
   \centering
   \begin{Large}
   \item \hyperlink{PARTICIPANTS}{\beamergotobutton{Participants}} 
   \item \hyperlink{PRESENTERS}{\beamergotobutton{Presenters}}
   \item \hyperlink{KEYNOTESPEAKER}{\beamergotobutton{Keynote Speaker}}
   \item \hyperlink{SPONSOR}{\beamergotobutton{Sponsors}}
   \end{Large}  
   \end{itemize}
   \end{frame}
\end{document}

答案1

您可以使用\hypertarget,\hyperlink机制;语法是

\hypertarget{<name>}{<text>}

\hyperlink{<name>}{<text>}

一个简单的例子:

\documentclass[T]{beamer}

\definecolor{links}{HTML}{2A1B81}
\hypersetup{colorlinks,linkcolor=,urlcolor=red}

\usetheme{Frankfurt}
\usecolortheme{dolphin}
\usefonttheme{structuresmallcapsserif}
\usefonttheme{serif}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{caption}
\usepackage{hyperref}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\usepackage[graphics,tightpage]{preview}

\setbeamertemplate{button}{\tikz
\node[
inner xsep=10pt,
draw=structure!80,
fill=structure!50,
rounded corners=4pt]  {\Large\insertbuttontext};}


\title{Presentation Template}
\setbeamercolor{author}{fg=yellow}
\author{asdfasdfa}
\setbeamercolor{date}{fg=yellow}
\date\today



\begin{document}

\begin{frame}
\titlepage
\end{frame}

\section*{Outline}


\begin{frame}
\begin{multicols}{2}
\frametitle{Contents}
\tableofcontents
\end{multicols} 
\end{frame}

\section{Timeline}
\begin{frame}
\frametitle{ Timeline}
\centering

\end{frame}

\begin{frame}
\resizebox{\textwidth}{!}{%
\begin{tikzpicture}
            \path[mindmap,concept color=blue, text=white, transform shape]
            node[concept,scale=0.8]{bicycle}
            child[grow=0, concept color=red]{node[concept]{\hyperlink{rb}{road bicycle}}
                child[grow=30]{node[concept]{time trial bicycle}}
                child[grow=90]{node[concept]{road racing bicycle}}}
            child[grow=60, concept color=black]{node[concept]{\hyperlink{mb}{mountain bicycle}}}    
            child[grow=120, concept color=orange]{node[concept]{\hyperlink{tb}{tandem bicycle}}};
        \end{tikzpicture}%
}
\end{frame}

\begin{frame}
\frametitle{\hypertarget{rb}{Road bycicle}}
\end{frame}

\begin{frame}
\frametitle{\hypertarget{mb}{mountain bycicle}}
\end{frame}

\begin{frame}
\frametitle{\hypertarget{tb}{tandem bycicle}}
\end{frame}

\end{document}

相关内容