\documentclass{beamer} \usepackage{array} \usepackage{tikz} \usepackage{minted} \usepackage{booktabs} \begin{document} \begin{frame}[fragile] \frametitle{TikZ environment} Om tikz te importeren: \mintinline{latex}{\usepackage{tikz}}. Een TikZ environment wordt gestart met \mintinline{latex}{\begin{tikzpicture}} of \mintinline{latex}{\tikz} en bestaat uit instructies. Een instructie moet altijd eindigen met een \mintinline{latex}{;}. \newline \newline \begin{tabular}{m{5cm} | m{5cm}} \hline \mintinline{latex}{\begin{tikzpicture}} & \mintinline{latex}{\tikz}\\ \hline \begin{minted}[fontsize=\footnotesize]{latex} Dit zijn twee cirkels \begin{tikzpicture} \draw (0,0) circle (.2); \draw (.1,0) circle (.2); \end{tikzpicture} \end{minted} & \begin{minted}[fontsize=\footnotesize]{latex} Dit is een cirkel \tikz \draw (0,0) circle (0.2); en dit zijn twee cirkels \tikz { \draw (0,0) circle (0.2); \draw (.1,0) circle (.2); } \end{minted} \\ \hline Dit zijn twee cirkels \begin{tikzpicture} \draw (0,0) circle (.2); \draw (.1,0) circle (.2); \end{tikzpicture} & Dit is een cirkel \tikz \draw (0,0) circle (0.2); en dit zijn twee cirkels \tikz { \draw (0,0) circle (0.2); \draw (.1,0) circle (.2); } \end{tabular} \end{frame} \end{document}