Initial commit

This commit is contained in:
Ian Jauslin
2018-05-18 22:53:34 +00:00
commit 06e19c0db2
24 changed files with 2850 additions and 0 deletions

27
figs/libs/Makefile Normal file
View File

@ -0,0 +1,27 @@
PROJECTNAME=$(basename $(basename $(wildcard *.tikz.tex)))
LIBS=$(notdir $(wildcard libs/*))
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
all: $(PDFS)
$(PDFS): $(LIBS)
pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
install: $(PDFS)
cp $^ $(INSTALLDIR)/
$(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

24
figs/libs/grid.sty Normal file
View File

@ -0,0 +1,24 @@
% light gray color
\definecolor{lightgray}{gray}{0.7}
% a grid with starting from #1 mesh #2 of width #3*#2 and height #4*#2
\def\grid#1#2#3#4{
% vertical lines
\foreach\i in{0,...,#3}{
\draw[color=lightgray]#1++(\i*#2,0)--++(0,#4*#2);
}
% horizontal lines
\foreach\j in{0,...,#4}{
\draw[color=lightgray]#1++(0,\j*#2)--++(#3*#2,0);
}
}
% a square centered at #1 of side #2
\def\square#1#2{
\draw#1++(-0.5*#2,-0.5*#2)--++(#2,0)--++(0,#2)--++(-#2,0)--cycle;
}
% fill a square centered at #1 of side #2 and color #3
\def\fillsquare#1#2#3{
\fill[color=#3]#1++(-0.5*#2,-0.5*#2)--++(#2,0)--++(0,#2)--++(-#2,0)--cycle;
}

1
figs/peel.fig/Makefile Symbolic link
View File

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

1
figs/peel.fig/libs/grid.sty Symbolic link
View File

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

View File

@ -0,0 +1,21 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{grid}
\begin{document}
\begin{tikzpicture}
\fillsquare{(0,0.5)}5{red}
\fillsquare{(0,-0.5)}5{red}
\fillsquare{(3,2.5)}5{red}
\fillsquare{(3,3.5)}5{red}
\fillsquare{(6,2.5)}5{red}
\fillsquare{(6,3.5)}5{red}
\fillsquare{(0,0)}4{cyan}
\fillsquare{(3,3)}4{cyan}
\fillsquare{(6,3)}4{cyan}
\grid{(-3,-3.5)}{0.5}{24}{20}
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,23 @@
PROJECTNAME=$(basename $(wildcard *.gnuplot))
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
all: $(PDFS)
$(PDFS):
gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tikz.tex, $@)
pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
install: $(PDFS)
cp $^ $(INSTALLDIR)/
clean-aux:
rm -f $(addsuffix .tikz.tex, $(PROJECTNAME))
rm -f $(addsuffix .aux, $(PROJECTNAME))
rm -f $(addsuffix .log, $(PROJECTNAME))
clean-pdf:
rm -f $(PDFS)
clean: clean-aux clean-pdf

View File

@ -0,0 +1,44 @@
# to output to tikz
# default output canvas size: 12.5cm x 8.75cm
set term lua tikz standalone
# parameter: k
k=2
# ranges
set xrange[0:1]
set yrange [:1./k]
# label x axis
set xlabel "$\\alpha$"
set xtics 0,0.25
set xtics nomirror
# no y axis
unset ytics
set ylabel "density"
# no keu
set key off
# label phases
set object 1 circle at 0.15,0.18 size 0.03
set label "$I$" at 0.15,0.18 center
set object 2 circle at 0.15,0.31 size 0.03
set label "$N_+$" at 0.15,0.31 center
set object 3 circle at 0.83,0.21 size 0.03
set label "$N_-$" at 0.83,0.21 center
set object 4 circle at 0.50,0.30 size 0.03
set label "$N_b$" at 0.50,0.30 center
set object 5 circle at 0.50,0.21 size 0.03
set label "?" at 0.50,0.21 center
# set linestyle 1
set style line 1 linetype rgbcolor "#000000" linewidth 2
plot \
k**(-1-x) with filledcurves above x2 fillcolor rgbcolor "#999999", \
k**(-1-x) with lines linestyle 1, \
k**(-2-x) with lines linestyle 1, \
k**(-2) with lines linestyle 1, \
k**(-1-2*x) with lines linestyle 1

1
figs/plates.fig/Makefile Symbolic link
View File

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

View File

@ -0,0 +1,87 @@
\documentclass{standalone}
\usepackage{tikz}
% a global rescaling factor
\def\rescale{0.6}
% length of the axes
\def\axeslength{\rescale*3}
% width, length and height of a plate
\def\w{\rescale*2.5}
\def\l{\rescale*4}
\def\h{\rescale*0.2}
% space between figures
\def\interlen{\rescale*8}
% offset of the label of each figure
\def\labeloffsetx{\rescale*2}
\def\labeloffsety{\rescale*3}
% factor by which to multiply lengths to get depths
\def\rotx{0.5*0.5}
\def\roty{0.5*0.866}
% draw a plate at #1 of width #2, length #3 and height #4
\def\plate#1#2#3#4{
\def\width{#2}
\def\length{#3}
\def\height{#4}
% the center
\path#1coordinate(O);
% draw first half of axes
\draw(O)++(-\axeslength,0)--(O);
\path(O)++(\rotx*\axeslength,\roty*\axeslength)coordinate(t);
\draw[->](O)++(\rotx*0.5*\width,\roty*0.5*\width)--(t);
\draw(O)++(0,-\axeslength)--(O);
% define points
\path(O)++(-0.5*\length,-0.5*\height)++(-0.5*\rotx*\width,-0.5*\roty*\width)coordinate(A);
\path(A)++(\length,0)coordinate(B);
\path(B)++(\rotx*\width,\roty*\width)coordinate(C);
\path(C)++(-\length,0)coordinate(D);
\path(D)++(0,\height)coordinate(E);
\path(E)++(-\rotx*\width,-\roty*\width)coordinate(F);
\path(F)++(\length,0)coordinate(G);
\path(G)++(\rotx*\width,\roty*\width)coordinate(H);
% fill and stroke the plate (covers part of the axes)
\fill[color=white](A)--(B)--(C)--(H)--(E)--(F)--(A);
\draw(A)--(B)--(C)--(H)--(E)--(F)--(G)--(H);
\draw(A)--(F);
\draw(B)--(G);
% draw the second half of the axes after having filled the plate
\path(O)++(\axeslength,0)coordinate(t);
\draw[->](O)++(0.5*\length,0)--(t);
\path(O)++(-\rotx*0.5*\width,-\roty*0.5*\width)coordinate(t);
\draw(O)++(-\rotx*\axeslength,-\roty*\axeslength)--(t);
\path(O)++(0,\axeslength)coordinate(t);
\draw[->](O)++(0,0.5*\height)--(t);
}
\begin{document}
\begin{tikzpicture}
% 3a
\plate{(0,0)}{\w}{\l}{\h}
\path(-\labeloffsetx,\labeloffsety)node{$3_a$};
% 3b
\plate{(\interlen,0)}{\l}{\w}{\h}
\path(\interlen,0)++(-\labeloffsetx,\labeloffsety)node{$3_b$};
% 1a
\plate{(2*\interlen,0)}{\l}{\h}{\w}
\path(2*\interlen,0)++(-\labeloffsetx,\labeloffsety)node{$1_a$};
% 1b
\plate{(0,-\interlen)}{\w}{\h}{\l}
\path(0,-\interlen)++(-\labeloffsetx,\labeloffsety)node{$1_b$};
% 2a
\plate{(\interlen,-\interlen)}{\h}{\w}{\l}
\path(\interlen,-\interlen)++(-\labeloffsetx,\labeloffsety)node{$2_a$};
% 2b
\plate{(2*\interlen,-\interlen)}{\h}{\l}{\w}
\path(2*\interlen,-\interlen)++(-\labeloffsetx,\labeloffsety)node{$2_b$};
\end{tikzpicture}
\end{document}

View File

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

View File

@ -0,0 +1,18 @@
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[color=cyan](0,0)--++(2,0)--++(1,0.8)--++(0,2)--++(-2,0)--++(-1,-0.8);
\fill[color=red](0,0)--++(0,1)--++(1,0)--++(0,-1);
\draw(0,0)--++(2,0)--++(0,2)--++(-2,0)--cycle;
\draw(2,0)--++(1,0.8)--++(0,2)--++(-2,0)--++(-1,-0.8);
\draw(2,2)--++(1,0.8);
\draw(1,0)--++(0,2)--++(1,0.8);
\draw(0,1)--++(2,0)--++(1,0.8);
\draw(0,2)++(0.5,0.4)--++(2,0)--++(0,-2);
\end{tikzpicture}
\end{document}

View File

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

View File

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

View File

@ -0,0 +1,36 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{grid}
\begin{document}
\begin{tikzpicture}
% the positions of the smoothing cubes
\def\smoothingsquares{(0,0),(4,4),(-4,0),(-4,4),(-8,4),(-4,8),(0,12),(4,8),(12,12),(12,8),(16,4)}
% the positions of the bad cubes
\def\badsquares{(-0.5,0),(-1.5,0),(-2,0),(-0.5,0.5),(-1.5,0.5),(-2,0.5),(-7,4.5),(-7,5.5),(-6,4.5),(-6,5.5),(-5.5,5.5),(-5.5,5),(-5,7.5),(-5.5,7.5),(-5.5,8),(-5,8),(0,10.5),(-0.5,10.5),(0,11),(-0.5,11),(3.5,5.5),(4,5.5),(4,6),(3.5,6),(10.5,8.5),(10.5,9.5),(10.5,10.5),(10.5,11.5),(10.5,12),(11.5,12),(12.5,12),(12.5,11),(12.5,10),(12,9),(11.5,8.5),(12,9.5),(15,4),(16,4),(16,3),(15,3)}
% first fill the smearings
\foreach\pos in\smoothingsquares{
\fillsquare{\pos}5{blue}
}
% fill the smoothing cubes
\foreach\pos in\smoothingsquares{
\fillsquare{\pos}4{gray}
}
% fill the bad cubes
\foreach\pos in\badsquares{
\fillsquare{\pos}{1}{green}
}
% draw grid
\grid{(-11,-3)}{0.5}{60}{36}
% stroke the smoothing squares
\foreach\pos in\smoothingsquares{
\square{\pos}4
}
\end{tikzpicture}
\end{document}