Slides/graph.sty
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 08 Mar 2016 05:03:47 +0000
changeset 126 e866678c29cb
parent 104 59bad592a009
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
103
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
\usepackage{tikz}
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
\usepackage{pgf}
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
\usetikzlibrary{positioning}
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
\usetikzlibrary{calc}
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
\usetikzlibrary{fit}
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
\usepackage{graphicx} 
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
\usepackage{pgfplots}
104
59bad592a009 updated theories and cleaned them up
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 103
diff changeset
     8
\usetikzlibrary{arrows}
59bad592a009 updated theories and cleaned them up
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 103
diff changeset
     9
\usetikzlibrary{shapes}
103
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
\newenvironment{bubble}[1][]{%
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
\addtolength{\leftmargini}{4mm}%
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
\begin{tikzpicture}[baseline=(current bounding box.north)]%
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
\draw (0,0) node[inner sep=2mm,fill=cream,ultra thick,draw=red,rounded corners=2mm]% 
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
\bgroup\begin{minipage}{#1}\raggedright{}}
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    16
{\end{minipage}\egroup;%
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
\end{tikzpicture}\bigskip}