graphics.sty
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sun, 21 Sep 2014 11:46:49 +0100
changeset 252 e8ef8f38ca84
parent 242 35104ee14f87
child 253 75c469893514
permissions -rw-r--r--
added style files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
242
35104ee14f87 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
\usepackage{tikz}
35104ee14f87 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
\usepackage{pgf}
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
     3
\usetikzlibrary{positioning}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
     4
\usetikzlibrary{calc}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
     5
\usepackage{graphicx} 
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
     6
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
     7
\newenvironment{bubble}[1][]{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
     8
\begin{tikzpicture}%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
     9
\draw (0,0) node[inner sep=2mm,fill=cream,ultra thick,draw=red,rounded corners=2mm]% 
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
    10
\bgroup\begin{minipage}{#1}\raggedright{}}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
    11
{\end{minipage}\egroup;%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 242
diff changeset
    12
\end{tikzpicture}}