From 06e19c0db24d4c527f82ed934ecb56228ea0aee8 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Fri, 18 May 2018 22:53:34 +0000 Subject: Initial commit --- figs/plates.fig/Makefile | 1 + figs/plates.fig/plates.tikz.tex | 87 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 120000 figs/plates.fig/Makefile create mode 100644 figs/plates.fig/plates.tikz.tex (limited to 'figs/plates.fig') diff --git a/figs/plates.fig/Makefile b/figs/plates.fig/Makefile new file mode 120000 index 0000000..704310e --- /dev/null +++ b/figs/plates.fig/Makefile @@ -0,0 +1 @@ +../libs/Makefile \ No newline at end of file diff --git a/figs/plates.fig/plates.tikz.tex b/figs/plates.fig/plates.tikz.tex new file mode 100644 index 0000000..f8b821c --- /dev/null +++ b/figs/plates.fig/plates.tikz.tex @@ -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} -- cgit v1.2.3-54-g00ecf