Initial commit

This commit is contained in:
Ian Jauslin
2017-05-04 19:16:34 +00:00
commit 1b13e14750
35 changed files with 1735 additions and 0 deletions

1
figs/assymmetry/Makefile Symbolic link
View File

@ -0,0 +1 @@
../libs/Makefile

View File

@ -0,0 +1,25 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\fill[color=lightgray](4.5,0.5)--++(1.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(1.0,0.0)--++(0.0,1.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,1.0)--++(-1.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-1.0,0.0)--++(0.0,-1.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--cycle;
\cross{teal}{(5,2)}
\cross{teal}{(4,4)}
\cross{teal}{(3,6)}
\cross{teal}{(2,8)}
\cross{teal}{(7,3)}
\cross{teal}{(9,4)}
\cross{teal}{(11,5)}
\cross{teal}{(10,7)}
\cross{teal}{(9,9)}
\cross{teal}{(8,11)}
\cross{teal}{(6,10)}
\cross{teal}{(4,9)}
\draw[color=black,line width=6.0](4.5,0.5)--++(1.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(1.0,0.0)--++(0.0,1.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,1.0)--++(-1.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-1.0,0.0)--++(0.0,-1.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-1.1);
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,23 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\fill[color=lightgray](4.5,0.5)--++(1.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(1.0,0.0)--++(0.0,1.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,1.0)--++(-1.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-1.0,0.0)--++(0.0,-1.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--cycle;
\cross{green}{(10, 9)}
\cross{green}{( 8,10)}
\cross{green}{( 6,11)}
\cross{green}{( 5, 9)}
\cross{green}{( 2, 8)}
\cross{green}{( 3, 5)}
\cross{green}{( 4, 2)}
\cross{green}{( 7, 3)}
\cross{green}{(10, 4)}
\cross{green}{(11, 6)}
\draw[color=black,line width=6.0](4.5,0.5)--++(1.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(2.0,0.0)--++(0.0,1.0)--++(1.0,0.0)--++(0.0,1.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,2.0)--++(-1.0,0.0)--++(0.0,1.0)--++(-1.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-2.0,0.0)--++(0.0,-1.0)--++(-1.0,0.0)--++(0.0,-1.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-2.0)--++(1.0,0.0)--++(0.0,-1.1);
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1 @@
../../libs/shapes.sty

1
figs/cross_packing/Makefile Symbolic link
View File

@ -0,0 +1 @@
../libs/Makefile

View File

@ -0,0 +1,14 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\foreach \i in {0,...,3}{
\foreach \j in {0,...,3}{
\cross{green}{(-2*\j,\j)++(\i,2*\i)}
}
}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,14 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\foreach \i in {0,...,3}{
\foreach \j in {0,...,3}{
\cross{teal}{(-\j,2*\j)++(2*\i,\i)}
}
}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1 @@
../../libs/shapes.sty

1
figs/gaunt_fisher/Makefile Symbolic link
View File

@ -0,0 +1 @@
../libs/Makefile

View File

@ -0,0 +1,16 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\cross{cyan}{(4,4)}
\cross{cyan}{(1,5)}
\cross{cyan}{(2,8)}
\cross{cyan}{(5,7)}
\cross{black}{(3,6)}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,30 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\cross{cyan}{(4,4)}
\cross{cyan}{(3,6)}
\cross{cyan}{(7,3)}
\cross{cyan}{(9,4)}
\cross{cyan}{(10,7)}
\cross{cyan}{(4,9)}
\cross{cyan}{(6,6)}
\cross{cyan}{(7,8)}
\square{black}{(6,4)}
\square{black}{(5,5)}
\square{black}{(5,7)}
\square{black}{(4,7)}
\square{black}{(5,8)}
\square{black}{(7,5)}
\square{black}{(8,5)}
\square{black}{(8,6)}
\square{black}{(9,6)}
\square{black}{(8,7)}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,53 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\foreach\i in {2,...,4}{
\cross{cyan}{(2*\i,\i)}
\cross{cyan}{(5,15)++(\i,-2*\i)}
}
\foreach\i in {1,...,3}{
\cross{cyan}{(-5,10)++(2*\i,\i)}
}
\cross{cyan}{(3,5)}
\cross{cyan}{(5,9)}
\cross{cyan}{(-1,7)}
\cross{cyan}{(0,9)}
\cross{cyan}{(6,6)}
\cross{cyan}{(1,6)}
\cross{cyan}{(3,10)}
\cross{cyan}{(4,12)}
\cross{cyan}{(1,3)}
\cross{cyan}{(-2,4)}
\cross{cyan}{(-4,8)}
\square{black}{(3,3)}
\square{black}{(2,4)}
\square{black}{(4,4)}
\square{black}{(5,4)}
\square{black}{(5,5)}
\square{black}{(7,5)}
\square{black}{(8,6)}
\square{black}{(7,7)}
\square{black}{(7,8)}
\square{black}{(6,8)}
\square{black}{(6,10)}
\square{black}{(5,11)}
\square{black}{(2,12)}
\square{black}{(2,11)}
\square{black}{(1,11)}
\square{black}{(0,11)}
\square{black}{(1,10)}
\square{black}{(-1,10)}
\square{black}{(-2,10)}
\square{black}{(-2,9)}
\square{black}{(-3,9)}
\square{black}{(-2,8)}
\square{black}{(-1,5)}
\square{black}{(0,5)}
\square{black}{(0,4)}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1 @@
../../libs/shapes.sty

1
figs/hole_example/Makefile Symbolic link
View File

@ -0,0 +1 @@
../libs/Makefile

View File

@ -0,0 +1,36 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\cross{teal}{(5,2)}
\cross{teal}{(4,4)}
\cross{teal}{(3,6)}
\cross{teal}{(2,8)}
\cross{teal}{(7,3)}
\cross{teal}{(9,4)}
\cross{teal}{(11,5)}
\cross{teal}{(10,7)}
\cross{teal}{(9,9)}
\cross{teal}{(8,11)}
\cross{teal}{(6,10)}
\cross{teal}{(4,9)}
\cross{green}{(6,6)}
\cross{green}{(7,8)}
\square{black}{(6,4)}
\square{black}{(5,5)}
\square{black}{(5,7)}
\square{black}{(4,7)}
\square{black}{(5,8)}
\square{black}{(7,5)}
\square{black}{(8,5)}
\square{black}{(8,6)}
\square{black}{(9,6)}
\square{black}{(8,7)}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,24 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\foreach\i in {0,...,8}{
\ttsquare{teal}{(0,2*\i)}
\ttsquare{teal}{(4,2*\i)}
}
\ttsquare{teal}{(2,0)}
\ttsquare{teal}{(2,16)}
\foreach\i in {1,...,6}{
\ttsquare{green}{(2,2*\i+1)}
}
\square{black}{(1.5,1.5)}
\square{black}{(2.5,1.5)}
\square{black}{(1.5,14.5)}
\square{black}{(2.5,14.5)}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1 @@
../../libs/shapes.sty

1
figs/interface/Makefile Symbolic link
View File

@ -0,0 +1 @@
../libs/Makefile

View File

@ -0,0 +1,51 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\foreach\i in {0,...,5}{
\cross{teal}{(2*\i,\i)}
\cross{teal}{(-\i,2*\i)}
\cross{teal}{(-5,10)++(2*\i,\i)}
\cross{teal}{(5,15)++(\i,-2*\i)}
}
\foreach\i in {0,...,2}{
\foreach\j in {0,...,1}{
\cross{green}{(3,5)++(\i,2*\i)++(-2*\j,\j)}
}
}
\cross{green}{(-1,7)}
\cross{green}{(0,9)}
\cross{green}{(6,6)}
\cross{teal}{(4,12)}
\cross{teal}{(1,3)}
\square{black}{(3,3)}
\square{black}{(2,4)}
\square{black}{(4,4)}
\square{black}{(5,4)}
\square{black}{(5,5)}
\square{black}{(7,5)}
\square{black}{(8,6)}
\square{black}{(7,7)}
\square{black}{(7,8)}
\square{black}{(6,8)}
\square{black}{(6,10)}
\square{black}{(5,11)}
\square{black}{(2,12)}
\square{black}{(2,11)}
\square{black}{(1,11)}
\square{black}{(0,11)}
\square{black}{(1,10)}
\square{black}{(-1,10)}
\square{black}{(-2,10)}
\square{black}{(-2,9)}
\square{black}{(-3,9)}
\square{black}{(-2,8)}
\square{black}{(-1,5)}
\square{black}{(0,5)}
\square{black}{(0,4)}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1 @@
../../libs/shapes.sty

25
figs/libs/Makefile Normal file
View File

@ -0,0 +1,25 @@
PROJECTNAME=$(basename $(basename $(wildcard *.tikz.tex)))
LIBS=$(notdir $(wildcard libs/*))
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
all: $(PDFS)
$(PDFS): $(LIBS)
echo $(LIBS)
pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
$(LIBS):
ln -fs libs/$@ ./
clean-libs:
rm -f $(LIBS)
clean-aux:
rm -f $(addsuffix .aux, $(PROJECTNAME))
rm -f $(addsuffix .log, $(PROJECTNAME))
clean-tex:
rm -f $(PDFS)
clean: clean-libs clean-aux clean-tex

35
figs/libs/shapes.sty Normal file
View File

@ -0,0 +1,35 @@
% square lattice (width #1, height #2, origin #3)
\def\grid#1#2#3{
\foreach\i in {0,...,#2}{
\draw#3++(0,\i)--++(#1,0);
}
\foreach\i in {0,...,#1}{
\draw#3++(\i,0)--++(0,#2);
}
}
% cross (color #1, position #2)
\def\cross#1#2{
\fill[color=#1]#2++(0.5,0.5)--++(0,1)--++(-1,0)--++(0,-1)--++(-1,0)--++(0,-1)--++(1,0)--++(0,-1)--++(1,0)--++(0,1)--++(1,0)--++(0,1)--++(-1,0);
\draw[color=black]#2++(0.5,0.5)--++(0,1)--++(-1,0)--++(0,-1)--++(-1,0)--++(0,-1)--++(1,0)--++(0,-1)--++(1,0)--++(0,1)--++(1,0)--++(0,1)--++(-1,0);
}
% 1x1 square (color #1, position #2)
\def\square#1#2{
\fill[color=#1]#2++(-0.5,-0.5)--++(0,1)--++(1,0)--++(0,-1)--cycle;
\draw[color=black]#2++(-0.5,-0.5)--++(0,1)--++(1,0)--++(0,-1)--cycle;
}
% 2x2 square (color #1, position #2)
\def\ttsquare#1#2{
\fill[color=#1]#2++(-1,-1)--++(0,2)--++(2,0)--++(0,-2)--cycle;
\draw[color=black]#2++(-1,-1)--++(0,2)--++(2,0)--++(0,-2)--cycle;
}
% diamond (color #1, position #2)
\def\diamond#1#2{
\fill[color=#1]#2++(0,-1)--++(1,1)--++(-1,1)--++(-1,-1)--cycle;
\draw[color=black]#2++(0,-1)--++(1,1)--++(-1,1)--++(-1,-1)--cycle;
}

1
figs/shapes/Makefile Symbolic link
View File

@ -0,0 +1 @@
../libs/Makefile

View File

@ -0,0 +1,11 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\grid55{(-2.5,-2.5)}
\cross{cyan}{(0,0)}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,11 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\grid44{(-2,-2)}
\diamond{cyan}{(0,0)}
\end{tikzpicture}
\end{document}

1
figs/shapes/libs/shapes.sty Symbolic link
View File

@ -0,0 +1 @@
../../libs/shapes.sty

1
figs/sliding/Makefile Symbolic link
View File

@ -0,0 +1 @@
../libs/Makefile

View File

@ -0,0 +1 @@
../../libs/shapes.sty

View File

@ -0,0 +1,16 @@
\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{cyan}{(2*\i,0)}
\ttsquare{cyan}{(2*\i+1,2)}
\ttsquare{cyan}{(2*\i,4)}
}
\ttsquare{cyan}{(-1,2)}
\end{tikzpicture}
\end{document}