diff options
author | Ian Jauslin <jauslin@ias.edu> | 2018-02-06 19:57:42 +0000 |
---|---|---|
committer | Ian Jauslin <jauslin@ias.edu> | 2018-02-06 19:57:42 +0000 |
commit | bfed53d2c76cc0449d2d6ef1963863092fb98d03 (patch) | |
tree | f9ab1f9e84474684dcdaa37b8a0743c4fa93c1b6 /figs/square_packing.fig |
Diffstat (limited to 'figs/square_packing.fig')
l--------- | figs/square_packing.fig/Makefile | 1 | ||||
l--------- | figs/square_packing.fig/libs/shapes.sty | 1 | ||||
-rw-r--r-- | figs/square_packing.fig/square_packing.tikz.tex | 20 | ||||
-rw-r--r-- | figs/square_packing.fig/square_packing_slide.tikz.tex | 25 |
4 files changed, 47 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.tikz.tex b/figs/square_packing.fig/square_packing.tikz.tex new file mode 100644 index 0000000..297e72e --- /dev/null +++ b/figs/square_packing.fig/square_packing.tikz.tex @@ -0,0 +1,20 @@ +\documentclass{standalone} + +\usepackage{tikz} +\usepackage{shapes} + +\begin{document} +\begin{tikzpicture} +\foreach \i in {0,...,3}{ + \ttsquare{teal}{(2*\i,0)} + \ttsquare{teal}{(2*\i,2)} + \ttsquare{teal}{(2*\i,4)} +} +\grid86{[color=red, dashed](-1,-1)} +\foreach \i in {0,...,3}{ + \ttsquareempty{(2*\i,0)} + \ttsquareempty{(2*\i,2)} + \ttsquareempty{(2*\i,4)} +} +\end{tikzpicture} +\end{document} 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..c02485a --- /dev/null +++ b/figs/square_packing.fig/square_packing_slide.tikz.tex @@ -0,0 +1,25 @@ +\documentclass{standalone} + +\usepackage{tikz} +\usepackage{shapes} + +\begin{document} +\begin{tikzpicture} +\clip(-1.01,-1.01)--(7.01,-1.01)--(7.01,5.01)--(-1.01,5.01)--cycle; +\foreach \i in {0,...,3}{ + \ttsquare{teal}{(2*\i,0)} + \ttsquare{teal}{(2*\i+1,2)} + \ttsquare{teal}{(2*\i,4)} +} +\ttsquare{teal}{(-1,2)} + +\grid86{[color=red, dashed](-1,-1)} + +\foreach \i in {0,...,3}{ + \ttsquareempty{(2*\i,0)} + \ttsquareempty{(2*\i+1,2)} + \ttsquareempty{(2*\i,4)} +} +\ttsquareempty{(-1,2)} +\end{tikzpicture} +\end{document} |