Beamer 中的思维导图

Beamer 中的思维导图

在 Beamer 中包含思维导图的正确方法是什么,例如以下方法(改编自此处http://www.texample.net/tikz/examples/computer-science-mindmap/)?

includegraphics是否应与结果对象一起插入?

另外,我应该选择哪些颜色才能更好地适应演示文稿的标准?

% Author: Till Tantau
% Source: The PGF/TikZ manual
\documentclass[french]{standalone}

\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}
  \path[mindmap,concept color=blue,text=white]
    node[concept] {Polyvalence}
    [clockwise from=0]
    child[concept color=green!50!black] {
      node[concept] {Divers}
      [clockwise from=90]
      child { node[concept] {Analyse dimension\-nelle} }
      child { node[concept] {Électricité} }
      child { node[concept] {Métho\-dologie} }
      child { node[concept] {Outils numériques} }
    }  
    child[concept color=blue!50!black] {
      node[concept] {Mécanique}
      [clockwise from=-30]
      child { node[concept] {Solide indéfor\-mable} }
       child { node[concept] {Milieux continus} }
      child { node[concept] {Point matériel} }
    }
    child[concept color=red] { node[concept] {Thermo.} }
    child[concept color=orange] { node[concept] {TP Physique} }
    child[concept color=red!40!black] {
      node[concept] {Lpro}
      [clockwise from=145]
      child { node[concept] {Machines thermiques} }
      child { node[concept] {Risques physiques} }
    }
    child[concept color=pink!80!black] {
      node[concept] {Unité enseignement ouverture}
      [clockwise from=45]
      child { node[concept] {Machines thermiques} }
    };
\end{tikzpicture}\end{document}

在此处输入图片描述

编辑(进入beamer

\documentclass[svgnames]{beamer}

\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\begin{document}
\begin{frame}{Enseignements}
\begin{tikzpicture}
  \path[mindmap,concept color=blue,text=white]
    node[concept] {Polyvalence}
    [clockwise from=0]
    child[concept color=green!50!black] {
      node[concept] {Divers}
      [clockwise from=90]
      child { node[concept] {Analyse dimension\-nelle} }
      child { node[concept] {Électricité} }
      child { node[concept] {Métho\-dologie} }
      child { node[concept] {Outils numériques} }
    }  
    child[concept color=blue!50!black] {
      node[concept] {Mécanique}
      [clockwise from=-30]
      child { node[concept] {Solide indéfor\-mable} }
       child { node[concept] {Milieux continus} }
      child { node[concept] {Point matériel} }
    }
    child[concept color=red] { node[concept] {Thermo.} }
    child[concept color=orange] { node[concept] {TP Physique} }
    child[concept color=red!40!black] {
      node[concept] {Lpro}
      [clockwise from=145]
      child { node[concept] {Machines thermiques} }
      child { node[concept] {Risques physiques} }
    }
    child[concept color=pink!80!black] {
      node[concept] {Unité enseignement ouverture}
      [clockwise from=45]
      child { node[concept] {Machines thermiques} }
    };
\end{tikzpicture}
\end{frame}
\end{document}

在此处输入图片描述

答案1

您可以scale选择。在这种情况下,scale=0.5我认为没问题。但是,大文本会弄乱您的图片,所以我添加了选项,transform shape以便文本也会缩放。

\documentclass[svgnames]{beamer}

\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\begin{document}
\begin{frame}{Enseignements}
\centering
\begin{tikzpicture}[scale=0.5,transform shape]
  \path[mindmap,concept color=blue,text=white]
    node[concept] {Polyvalence}
    [clockwise from=0]
    child[concept color=green!50!black] {
      node[concept] {Divers}
      [clockwise from=90]
      child { node[concept] {Analyse dimension\-nelle} }
      child { node[concept] {Électricité} }
      child { node[concept] {Métho\-dologie} }
      child { node[concept] {Outils numériques} }
    }  
    child[concept color=blue!50!black] {
      node[concept] {Mécanique}
      [clockwise from=-30]
      child { node[concept] {Solide indéfor\-mable} }
       child { node[concept] {Milieux continus} }
      child { node[concept] {Point matériel} }
    }
    child[concept color=red] { node[concept] {Thermo.} }
    child[concept color=orange] { node[concept] {TP Physique} }
    child[concept color=red!40!black] {
      node[concept] {Lpro}
      [clockwise from=145]
      child { node[concept] {Machines thermiques} }
      child { node[concept] {Risques physiques} }
    }
    child[concept color=pink!80!black] {
      node[concept] {Unité enseignement ouverture}
      [clockwise from=45]
      child { node[concept] {Machines thermiques} }
    };
\end{tikzpicture}
\end{frame}
\end{document}

在此处输入图片描述

不过,请小心!文本大小对于演示来说可能有点小。

至于颜色推荐,我不知道。我觉得这个颜色就够好了。

相关内容