summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/jj-game/examples/jjg_test.tex
blob: 71f9f5168802163e7fc0d41b9db18d640c24fe03 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
%
% AcroTeX.Net : http://www.acrotex.net
% Copyright 2000-2007 D. P. Story
% dpstory@owc.edu
%
% Try this file with the various design options: jeopardy,florida,iceland,hornet,qatar,
% Norway,Germany,bananas,Spain
%
\documentclass{jj_game} % try the twoplayer option as well
\usepackage{amsmath}
%
% By bringing in the exerquiz package, you can also pose
% math fill-in and text-fill-in questions.
%

\titleBanner{The \TeX\ Game!}

\marginsize{.25in}{.25in}{.25in}{.25in} % the default

% This is a little messy because I have parameter values for the
% foils option included here.  I wouldn't think that this
% would be the normal practice.

\DeclareColors{linkColor: red}

\GameDesign
{
    Cat: \TeX,
    Cat: \LaTeX,
    Cat: Classes \&~Packages,
    NumQuestions: 3,
    CellWidth: 1in,
    CellHeight: .5in,
%    Goal: 1,500,              % specify absolute goal
    GoalPercentage: 90,        % specify relative goal
    ExtraHeight: 0pt,
}
\APHidden
{
    Champion: You are TeXerrific!,
    Size: 20,
}
\APDollar
{
    Size: 20,
}

\APRight
{
   Size: 20,
}
\APWrong
{
   Size: 20,
}
\APScore
{
    Font: Arial,
%    Font: TiRo,
    Size: 20,
    CellWidth: 2in,
    align: c,
%    Score: "Score: ",
%    Score: "",
%    Currency: "\string\\u20ac",
    Currency: "$",
}

\newcommand\cmd[1]{\texttt{\string#1}}

\begin{document}

\begin{instructions}
%
% Insert the Instruction page here
%
\textcolor{red}{\textbf{Method of Scoring.}} If you answer a
question correctly, the dollar value of that question is added to
your total.  If you miss a question, the dollar value is
\textit{subtracted} from your total.  So think carefully before
you answer!

\textcolor{red}{\textbf{Instructions.}} Solve the problems in
any order you wish. If your total at the end is more than \$\Goal,
you will be declared  \textbf{\TeX errific}.


\textcolor{red}{\textbf{Important:}} Acrobat Reader 5.0 or later required

\textcolor{red}{\textbf{To Begin:}} Go to the next page.

\end{instructions}

\begin{Questions}

\begin{Category}{TeX}

\begin{Question}[2]
The person who created \TeX. Who is \dots \vspace{2ex}

\Ans0 Sabastian Rahtz &
\Ans1 Donald Knuth \\[2ex]
\Ans0 Leslie Lamport &
\Ans0 David Carisle \\[2ex]
\Ans0 Michel Goossens &
\Ans0 Frank Mittelbach \\[2ex]
\Ans0 Alexander Samarin

\end{Question}

\begin{Question}
The number of scaled points in a point. What is\dots\dots
\Ans0 $72$
\Ans0 $1{,}157$
\Ans1 $65{,}536$
\Ans0 $120{,}745$
\end{Question}

\begin{Question}
When the Main Vertical List accumulates more than enough material
to construct a page, \TeX{} cuts off a chunk of it and places it
in a certain \cmd{\vbox}. What is \dots
\Ans0 \cmd{\box0}
\Ans0 \cmd{\box2}
\Ans1 \cmd{\box255}
\Ans0 \cmd{\box256}
\end{Question}

\end{Category}


\begin{Category}{LaTeX}

\begin{Question}
The command used to typeset the title of an \texttt{article} class
document, what is \dots
\Ans0 \cmd{\title}
\Ans1 \cmd{\maketitle}
\Ans0 \verb+\begin{title}...\end{title}+
\Ans0 \cmd{\typesettitle}
\end{Question}

\begin{Question}
The declaration version of the font command \cmd{\textbf}, what is
\dots
\Ans0 \cmd{\bffamily}
\Ans0 \cmd{\boldface}
\Ans0 \cmd{\bfshape}
\Ans1 \cmd{\bfseries}
\end{Question}

\begin{Question}[2]
The command necessary to typeset the math expression
$x_{a_1}^{2b}$, what is \dots
\Ans0 \verb+$x_a_1^{2b}$+    &
\Ans1 \verb+$x_{a_1}^{2b}$+  \\
\Ans0 \verb+$x_{a_1}^2b$+    &
\Ans0 \verb+$x_a_1^2^b$+     \\
\Ans0 \verb+$x_{a_1}^2^b$+   &
\Ans0 \verb+$x_a_1^2b$+
\end{Question}

\end{Category}

\begin{Category}{Classes \& Packages}

\begin{Question}
The standard \LaTeX{} command used to introduce a \LaTeX{} package into the
document, what is \dots
\Ans0 \cmd{\input}
\Ans0 \cmd{\include}
\Ans1 \cmd{\usepackage}
\Ans0 \cmd{\inputpackage}
\end{Question}

\begin{Question}
The package used to introduce language support into a \LaTeX{}
document, what is \dots
\Ans0 \texttt{multilingual}
\Ans0 \texttt{german}
\Ans0 \texttt{language}
\Ans1 \texttt{babel}
\end{Question}

\begin{Question}
The package used for introducing cross-reference links that become
active when the document is converted to PDF, what is \dots
\Ans1 \texttt{hyperref}
\Ans0 \texttt{x-links}
\Ans0 \cmd{\ref} and \cmd{\pageref}
\Ans0 \texttt{xr-hyper}
\end{Question}

\end{Category}

\end{Questions}

\end{document}