-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplickers3.tex
96 lines (91 loc) · 2.5 KB
/
plickers3.tex
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
%%%%%%%%%%%%%%%%%%%%
% The Plickers cards available at
% https://assets.plickers.com/plickers-cards/PlickersCards_2up_LargeAnswers_1-40.pdf
% are here enlarged and tabbed for use in larger classrooms
%
% DIRECTIONS.
% Typeset twice to get positioning correct.
% Print single-sided on card stock,
% then cut out negative space around tabs.
% Tabs make it easy for students to find their
% Plickers card at beginning of each class
%%%%%%%%%%%%%%%%%%%%
\RequirePackage{luatex85}
\documentclass{article}
\usepackage[margin=0in, landscape]{geometry}
\usepackage{pdfpages, tikz}
\setlength\parindent{0mm}
%% DEFINE \Repeat{n}{content}
\usepackage{expl3}
\ExplSyntaxOn
\cs_new_eq:NN \Repeat \prg_replicate:nn
\ExplSyntaxOff
\newcounter{cardpage}
\newcommand\cardwrap[2]{
\newpage
\begin{tikzpicture}[overlay, remember picture, dashed]
\pgfmathtruncatemacro\top{mod(#1,10)}
\foreach \angle in {0, 180}{
\draw[rotate=\angle] (current page.center)
++(-11in/2 + 1.3in/2,
{8.5in/2 - 0.75in - mod(#1-1,10)*0.7in - 0.7in/2})
node[rotate=\angle] {\scalebox{5.5}{\textsf{\textbf{#1}}}};
\ifnum \top=1
\else
\draw[rotate=\angle]
(current page.center)
++(-11in/2, 8.5in/2 - 0.75in) rectangle
++(1.3in, {-mod(#1-1,10)*0.7in})
;
\fi
\ifnum \top=0
\else
\draw[rotate=\angle] (current page.center)
++(-11in/2,
{8.5in/2 - 0.75in - mod(#1-1,10)*0.7in - 0.7in})
rectangle
++(1.3in,
{-(9-mod(#1-1,10))*0.7in});
\fi
}
\end{tikzpicture}
\begin{minipage}{11in}
\centering
\includepdf[pages=\arabic{cardpage},
clip, trim=#2, height=8in]
{plickers40.pdf}
\end{minipage}
}
\newcommand\card{
\stepcounter{cardpage}
\pgfmathtruncatemacro\carda{\arabic{cardpage}*2-1}
\pgfmathtruncatemacro\cardb{\arabic{cardpage}*2}
\cardwrap\carda{58mm 159.75mm 58mm 20mm} %% trim = L B R T
\cardwrap\cardb{58mm 20mm 58mm 159.75mm} %% trim = L B R T
}
\newcounter{tencards}
\newcommand\listcards{
\newpage
\begin{tikzpicture}
[overlay, remember picture, dashed]
\pgfmathtruncatemacro\one{\arabic{tencards}*10+1}
\pgfmathtruncatemacro\ten{\arabic{tencards}*10+10}
\draw (current page.center)
node {\scalebox{20}{\textsf{\textbf{$$\one--\ten$$}}}}
;
\foreach \x in {\one,...,\ten}
\foreach \angle in {0, 180}
\draw[rotate=\angle]
(current page.center)
++(-11in/2 + 1.3in/2,
{8.5in/2 - 0.75in - mod(\x-1,10)*0.7in - 0.35in})
node[rotate=\angle] {\scalebox{5.5}{\textsf{\textbf{\x}}}}
;
\end{tikzpicture}
\stepcounter{tencards}
}
\begin{document}
\Repeat{4}{\listcards}
%\setcounter{cardpage}{10}
\Repeat{20}{\card}
\end{document}