Slides/graph.sty
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 15 Feb 2016 21:48:57 +0100
changeset 103 ffe5d850df62
child 104 59bad592a009
permissions -rw-r--r--
added some slides
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}
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
\newenvironment{bubble}[1][]{%
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
\addtolength{\leftmargini}{4mm}%
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
\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
    13
\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
    14
\bgroup\begin{minipage}{#1}\raggedright{}}
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
{\end{minipage}\egroup;%
ffe5d850df62 added some slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    16
\end{tikzpicture}\bigskip}