diff --git a/Makefile b/Makefile index 3084ae1..008fbd4 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,7 @@ clean: -find . -name '*.aux' -delete -find . -name '*.log' -delete -rm -rf $(GENERATED_DIR) + -rm Makefile.deps print-% : ; @echo $* = $($*) diff --git a/iditaboard.tex b/iditaboard.tex index 16283f6..2677146 100644 --- a/iditaboard.tex +++ b/iditaboard.tex @@ -36,21 +36,6 @@ \draw [blue] (\left,0) -- (\right,0); } -% Draws a straight, vertical 15mm segment centered at 0,0 going down -\newcommand{\straightspace}{% - \fill [black] (-0.85,-0.85) rectangle (-0.65,0.85); - \fill [black] (0.65,-0.85) rectangle (0.85,0.85); - \fill [black] (-0.5,-0.725) rectangle (0.5,-0.775); -} - -% Draws an 'L' shaped 15mm segment centered at 0,0 -\newcommand{\Lspace}{% - \fill [black] (-0.85,-0.85) rectangle (-0.65,0.85); - \fill [black] (-0.85,-0.85) rectangle (0.85,-0.65); - \fill [black] (0.65,0.65) rectangle (0.85,0.85); - \fill [black] (0.725,-0.5) rectangle (0.775,0.5); -} - \newcommand{\sampletoken}{% \fill [blue] (0,0) circle (0.75); } diff --git a/iditacard.cls b/iditacard.cls index cd75cb3..671ad0f 100644 --- a/iditacard.cls +++ b/iditacard.cls @@ -113,7 +113,6 @@ \end{tikzpicture}% } -% Effects (%-- indicates should have icon) \newcommand{\daydraw}[1]{\texticon{-0.4cm}{0}{-0.2}{daydraw}{#1}} \newcommand{\draw}[1]{\texticon{-0.28cm}{-0.1}{-0.08}{draw}{#1}} \newcommand{\supply}[1]{\texticon{-0.4cm}{0}{-0.2}{supply}{#1}} @@ -145,6 +144,79 @@ {% End \end{tikzpicture}} +% Draws a straight, vertical 15mm segment centered at 0,0 going down +\newcommand{\straightspace}{% + \fill [black] (-0.85,-0.85) rectangle (-0.65,0.85); + \fill [black] (0.65,-0.85) rectangle (0.85,0.85); + \fill [black] (-0.5,-0.725) rectangle (0.5,-0.775); +} + +% Draws an 'L' shaped 15mm segment centered at 0,0 +\newcommand{\Lspace}{% + \fill [black] (-0.85,-0.85) rectangle (-0.65,0.85); + \fill [black] (-0.85,-0.85) rectangle (0.85,-0.65); + \fill [black] (0.65,0.65) rectangle (0.85,0.85); + \fill [black] (0.725,-0.5) rectangle (0.775,0.5); +} + +\newenvironment{leg} +{% Begin +\noindent\begin{tikzpicture}[x=1cm,y=1cm] + \fill [black] (0,0) rectangle (6.35,8.89); + \fill[rounded corners=10pt] [white] (0.423333,0.0) rectangle (5.92666,8.4666); + + % Draw the path itself + \scoped[shift={(1.675,0.85)},yscale=-1.0]{\straightspace} + \scoped[shift={(1.675,2.35)},yscale=-1.0]{\straightspace} + \scoped[shift={(1.675,3.85)},yscale=-1.0]{\straightspace} + \scoped[shift={(1.675,5.35)},yscale=-1.0]{\straightspace} + \scoped[shift={(1.675,6.85)},yscale=-1.0]{\Lspace} + \scoped[shift={(3.175,6.85)},rotate=90]{\straightspace} + \scoped[shift={(4.675,6.85)},xscale=-1.0,rotate=-90]{\Lspace} + \scoped[shift={(4.675,5.35)}]{\straightspace} + \scoped[shift={(4.675,3.85)}]{\straightspace} + \scoped[shift={(4.675,2.35)}]{\straightspace} + \scoped[shift={(4.675,0.85)}]{\straightspace} +} +{% End +\end{tikzpicture}} + +\newcommand{\legname}[1]{% +\node [rectangle, anchor=north, minimum width=2.15in, minimum height=2.0/3.0in, text centered, text width=1.833333in, inner sep=0mm] at (3.175,8.35) {\bf\fontsize{20}{30}\bebas#1\par}; +} + +% Returns the center of the argument'th space on a leg (0-indexed) +\newcommand{\legcoordx}[1]{% + \ifnum#1=0 1.675 \fi + \ifnum#1=1 1.675 \fi + \ifnum#1=2 1.675 \fi + \ifnum#1=3 1.675 \fi + \ifnum#1=4 1.675 \fi + \ifnum#1=5 3.175 \fi + \ifnum#1=6 4.675 \fi + \ifnum#1=7 4.675 \fi + \ifnum#1=8 4.675 \fi + \ifnum#1=9 4.675 \fi + \ifnum#1=10 4.675 \fi +} +\newcommand{\legcoordy}[1]{% + \ifnum#1=0 0.85 \fi + \ifnum#1=1 2.35 \fi + \ifnum#1=2 3.85 \fi + \ifnum#1=3 5.35 \fi + \ifnum#1=4 6.85 \fi + \ifnum#1=5 6.85 \fi + \ifnum#1=6 6.85 \fi + \ifnum#1=7 5.35 \fi + \ifnum#1=8 3.85 \fi + \ifnum#1=9 2.35 \fi + \ifnum#1=10 0.85 \fi +} + +\newcommand{\onlegspace}[2]{% + \node [rectangle, anchor=center, minimum width=1.5cm, minimum height=1.5cm, text centered, text width=1.5cm, inner sep=0mm] at (\legcoordx{#1},\legcoordy{#1}) {#2}; +} + \newenvironment{board} {% Begin \noindent\begin{tikzpicture}[x=1cm,y=1cm]