Slides/graph.sty
author Chengsong
Mon, 04 Feb 2019 13:10:26 +0000
changeset 304 82a99eec5b73
parent 104 59bad592a009
permissions -rw-r--r--
3 files to be compiled together and then run scala Spiral a b where a, b are integers to see the time distribution

\usepackage{tikz}
\usepackage{pgf}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\usetikzlibrary{fit}
\usepackage{graphicx} 
\usepackage{pgfplots}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes}

\newenvironment{bubble}[1][]{%
\addtolength{\leftmargini}{4mm}%
\begin{tikzpicture}[baseline=(current bounding box.north)]%
\draw (0,0) node[inner sep=2mm,fill=cream,ultra thick,draw=red,rounded corners=2mm]% 
\bgroup\begin{minipage}{#1}\raggedright{}}
{\end{minipage}\egroup;%
\end{tikzpicture}\bigskip}