Debian Codegraph @

texmf-dist/doc/latex/setdeck/setdeck.tex

raw
1 \title{LaTeX Set Deck: Documentation}
2 \date{\today}
3 \author{Gwyn Whieldon}
4
5
6 \documentclass{article}
7
8 \usepackage[margin=1.25in, headheight=14pt]{geometry}
9
10 \usepackage{setdeck}
11
12
13
14
15
16
17 \begin{document}
18
19 \maketitle
20
21 This document describes a package for typesetting Set cards using TikZ in LaTeX. We use the conventions:
22
23 \begin{center}
24 \begin{tabular}{| c | c | c | c | c |}
25 \hline
26 Coordinate & Number & Shading & Color & Shape \\
27 \hline
28 1 & 1 & plain & red & diamond \\
29 2 & 2 & striped & green & oval \\
30 3 & 3 & solid & purple & squiggle \\
31 \hline
32 \end{tabular}
33 \end{center}
34
35 To typeset a basic Set card, we use the commands \verb|\setcard| or \verb|\smallsetcard|, with arguments
36
37 \verb|\setcard{<Number>}{<Shading>}{<Color>}{<Shape>}{<Scaling>} |.
38
39 \vspace{10pt}
40
41 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:
42 \vspace{10pt}
43 \begin{center}
44 \setcard{2}{2}{3}{1}{1}
45 \end{center}
46
47 \vspace{10pt}
48
49 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):
50
51 \vspace{10pt}
52 \begin{center}
53 \setcard{3}{3}{1}{3}{0.5}$\;\;\;\;\;\;\;\;\;\;$\smallsetcard{3}{3}{1}{3}{0.5}
54 \end{center}
55
56 Here is a preview of all cards (produced with \verb|\smallsetcard|) produced by the \verb|setdeck.sty| package:
57
58 \vspace{10pt}
59
60 \begin{center}
61 \foreach \shading in {1,2,3}{
62 \foreach \shape in {1,2,3} {
63 \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}
64
65 \vspace{5pt}
66
67 }
68 \vspace{15pt}
69 }
70 \end{center}
71
72
73 \end{document}
74
75
76