Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jauslin <ian@jauslin.org>2020-12-15 16:28:00 +0100
committerIan Jauslin <ian@jauslin.org>2020-12-15 16:28:00 +0100
commitf11228d28d608a17691ee24719c6a91455503d17 (patch)
tree1aa1bf6d81a4e2f5c452e1de18dfbfcb87ce045c /figs/square_packing.fig
As presented at UMSM on 2020-12-15HEADv1.0master
Diffstat (limited to 'figs/square_packing.fig')
l---------figs/square_packing.fig/Makefile1
l---------figs/square_packing.fig/libs/shapes.sty1
-rw-r--r--figs/square_packing.fig/square_packing_slide.tikz.tex27
3 files changed, 29 insertions, 0 deletions
diff --git a/figs/square_packing.fig/Makefile b/figs/square_packing.fig/Makefile
new file mode 120000
index 0000000..704310e
--- /dev/null
+++ b/figs/square_packing.fig/Makefile
@@ -0,0 +1 @@
+../libs/Makefile \ No newline at end of file
diff --git a/figs/square_packing.fig/libs/shapes.sty b/figs/square_packing.fig/libs/shapes.sty
new file mode 120000
index 0000000..eaa25c7
--- /dev/null
+++ b/figs/square_packing.fig/libs/shapes.sty
@@ -0,0 +1 @@
+../../libs/shapes.sty \ No newline at end of file
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}