-
Notifications
You must be signed in to change notification settings - Fork 0
/
plickers2.tex
57 lines (53 loc) · 1.57 KB
/
plickers2.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
%%%%%%%%%%%%%%%%%%%%
% 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\card[2]{
\newpage
\begin{tikzpicture}[overlay, remember picture, dashed]
\foreach \angle in {0, 180} \draw[rotate=\angle]
(current page.center)
++({-4in+(1+mod(#1-1,20))*0.4in}, 4.25in) to
++(down: 0.2in + 0.15in)
++(left:0.2in)
node[rotate=\angle] {\scalebox{2.5}{#1}}
++(right:0.2in) to
++(down: 0.15in) to
++(right:{8in-(1+mod(#1-1,20))*0.4in}) to
++(up:0.5in)
;
\end{tikzpicture}
\begin{minipage}{11in}
\centering
\includepdf[pages=\arabic{cardpage}, clip, trim=#2, height=7.5in]{plickers40.pdf}
\end{minipage}
}
\begin{document}
\sf
\Repeat{20}{
\stepcounter{cardpage}
\pgfmathtruncatemacro\carda{\arabic{cardpage}*2-1}
\pgfmathtruncatemacro\cardb{\arabic{cardpage}*2}
\card\carda{58mm 159.75mm 58mm 20mm} %% trim = L B R T
\card\cardb{58mm 20mm 58mm 159.75mm} %% trim = L B R T
}
\end{document}