summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/setdeck/setdeck.tex
blob: 946a727a7934d1d55955e049a312bdbb2d555ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
\title{LaTeX Set Deck:  Documentation}
\date{\today}
\author{Gwyn Whieldon}


\documentclass{article}

\usepackage[margin=1.25in, headheight=14pt]{geometry}

\usepackage{setdeck}






\begin{document}

\maketitle

This document describes a package for typesetting Set cards using TikZ in LaTeX.  We use the conventions:

\begin{center}
\begin{tabular}{| c | c | c | c | c |}
\hline
Coordinate & Number & Shading & Color & Shape \\
\hline
1 & 1 & plain & red & diamond \\
2 & 2 & striped & green & oval \\
3 & 3 & solid & purple & squiggle \\
\hline
\end{tabular}
\end{center}

To typeset a basic Set card, we use the commands \verb|\setcard| or \verb|\smallsetcard|, with arguments

\verb|\setcard{<Number>}{<Shading>}{<Color>}{<Shape>}{<Scaling>} |.

\vspace{10pt}

So to typeset, for example, the full-sized card with two striped purple diamonds, we use the command \verb|\setcard{2}{2}{3}{1}{1}|, which produces:
\vspace{10pt}
\begin{center}
\setcard{2}{2}{3}{1}{1}
\end{center}

\vspace{10pt}

For many purposes, this will be too large.  To typeset a more reasonably sized card (let's say, this time, we typeset three solid red squiggles) we might prefer to use \verb|\setcard{3}{3}{1}{3}{0.5}| or \verb|\smallsetcard{3}{3}{1}{3}{0.5}|, which produce (respectively):

\vspace{10pt}
\begin{center}
\setcard{3}{3}{1}{3}{0.5}$\;\;\;\;\;\;\;\;\;\;$\smallsetcard{3}{3}{1}{3}{0.5}
\end{center}

Here is a preview of all cards (produced with \verb|\smallsetcard|) produced by the \verb|setdeck.sty| package:

\vspace{10pt}

\begin{center}
\foreach \shading in {1,2,3}{
\foreach \shape in {1,2,3} {
\smallsetcard{1}{\shading}{1}{\shape}{0.25}\hspace{3pt}\smallsetcard{2}{\shading}{1}{\shape}{0.25}\hspace{3pt}\smallsetcard{3}{\shading}{1}{\shape}{0.25}\hspace{10pt}\smallsetcard{1}{\shading}{2}{\shape}{0.25}\hspace{3pt}\smallsetcard{2}{\shading}{2}{\shape}{0.25}\hspace{3pt}\smallsetcard{3}{\shading}{2}{\shape}{0.25}\hspace{10pt}\smallsetcard{1}{\shading}{3}{\shape}{0.25}\hspace{3pt}\smallsetcard{2}{\shading}{3}{\shape}{0.25}\hspace{3pt}\smallsetcard{3}{\shading}{3}{\shape}{0.25}

\vspace{5pt}

}
\vspace{15pt}
}
\end{center}
				

\end{document}