Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jauslin <jauslin@ias.edu>2017-09-08 05:59:24 +0000
committerIan Jauslin <jauslin@ias.edu>2017-09-09 21:06:49 +0000
commitc6fe9f4dfa4d790031393370d4e9cf0c9226e03f (patch)
tree7fa880472e04d1edfb23d4897ed061120e040f19 /figs/libs/shapes.sty
parent1b13e14750d355b301dc3904702268687216608c (diff)
Update to v0.1:HEADv0.1master
Fixed: removed discussion on k-nearest neighbor exclusion models which do not cover the lattice perfectly. Fixed: extra assumption: particle configurations are determined by their defects. Fixed: miscellaneous minor tweaks, formatting and typos. Added: discussion about Lee-Yang zeros and their relation to the high-fugacity expansion. Added: open problem: soft exclusion potentials. Added: extended bibliography. Changed: Particles in figures are now always centered on the lattice, not the dual lattice. Changed: improved Makefile.
Diffstat (limited to 'figs/libs/shapes.sty')
-rw-r--r--figs/libs/shapes.sty16
1 files changed, 15 insertions, 1 deletions
diff --git a/figs/libs/shapes.sty b/figs/libs/shapes.sty
index 9e4633b..6e9e6ac 100644
--- a/figs/libs/shapes.sty
+++ b/figs/libs/shapes.sty
@@ -12,24 +12,38 @@
% 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);
+ \begin{scope}
+ \clip#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);
+ \grid44{[color=white]#2++(-2,-2)}
+ \end{scope}
\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;
+ \draw[color=white]#2++(-0.5,0)--++(1,0);
+ \draw[color=white]#2++(0,-0.5)--++(0,1);
}
% 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;
+ \draw[color=white]#2++(-1,0)--++(2,0);
+ \draw[color=white]#2++(0,-1)--++(0,2);
+}
+\def\ttsquareempty#1{
+ \draw[color=black]#1++(-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;
+ \begin{scope}
+ \clip#2++(0,-1)--++(1,1)--++(-1,1)--++(-1,-1)--cycle;
+ \grid22{[color=white]#2++(-1,-1)}
+ \end{scope}
\draw[color=black]#2++(0,-1)--++(1,1)--++(-1,1)--++(-1,-1)--cycle;
}