Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/square_packing.fig/square_packing_slide.tikz.tex')
-rw-r--r--figs/square_packing.fig/square_packing_slide.tikz.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/figs/square_packing.fig/square_packing_slide.tikz.tex b/figs/square_packing.fig/square_packing_slide.tikz.tex
new file mode 100644
index 0000000..72b35a3
--- /dev/null
+++ b/figs/square_packing.fig/square_packing_slide.tikz.tex
@@ -0,0 +1,27 @@
+\documentclass{standalone}
+
+\usepackage{tikz}
+\usepackage{shapes}
+
+\begin{document}
+\begin{tikzpicture}
+\clip(-1.01,-3.01)--(7.01,-3.01)--(7.01,7.01)--(-1.01,7.01)--cycle;
+\foreach \i in {0,...,3}{
+ \ttsquare{teal}{(2*\i,-2)}
+ \ttsquare{teal}{(2*\i,0)}
+ \ttsquare{teal}{(2*\i+1,2)}
+ \ttsquare{teal}{(2*\i,4)}
+ \ttsquare{teal}{(2*\i,6)}
+}
+\ttsquare{teal}{(-1,2)}
+
+\foreach \i in {0,...,3}{
+ \ttsquareempty{(2*\i,-2)}
+ \ttsquareempty{(2*\i,0)}
+ \ttsquareempty{(2*\i+1,2)}
+ \ttsquareempty{(2*\i,4)}
+ \ttsquareempty{(2*\i,-6)}
+}
+\ttsquareempty{(-1,2)}
+\end{tikzpicture}
+\end{document}