Debian Codegraph @

texmf-dist/doc/latex/interactiveworkbook/documentation/interactiveworkbookmanual.tex

raw
1 \documentclass[12pt]{article}
2 \usepackage{epsf}
3 \oddsidemargin=0in \evensidemargin=0in \textwidth=6in \topmargin=0.5in \headheight=0in
4 \headsep=0in
5 \textheight=8.5in % better for US Letter paper
6
7 \font\bigbf=cmbx10 scaled \magstep5
8
9 \sloppy \raggedbottom
10
11 \begin{document}
12
13 \noindent
14 {\LARGE\bf Interactiveworkbook Software Package} \\ \\
15 {J.R.D. Kuhn}, \\
16 {6 June 1999}, \\
17 {revised 18 July 2002}, \\
18 {Mathematics and Physics Section}, {[email protected]} \\
19 {Purdue University North Central, Westville, IN 46391--4197}
20
21
22 \section{Introduction}
23
24 \noindent The interactiveworkbook software package, along with
25 other packages (dvips, epsfig, color, xspace, ifthen and a pstopdf
26 converter), gives the user the ability to write \LaTeX\,\,
27 documents which, ultimately, create interactive
28 question--and--answer PDF--based tutorials. Interactiveworkbook is
29 a major revision of the software package called pdfflash, written
30 by Aaron Montgomery. The main advantage this package has over
31 other similar packages is the ability to {\it easily} employ
32 mathematical symbols in an automated interactive question and
33 answer tutorial package. An earlier version of this package has
34 been used in an Introductory Statistics course, given over the
35 Internet and taught at Purdue University North Central. On the
36 Internet, go to:
37 \begin{center}
38 http://faculty.purduenc.edu/jkuhn/courses/previous/workbooks/301i/301i.html
39 \end{center}
40 Interactiveworkbook was created with the assistance of IHETS grant
41 652 9395-2956 and so portions are copyrighted by Purdue University
42 North Central.
43
44 \section{What Is In The Interactiveworkbook Software Package}
45
46 The interactiveworkbook software package consists of one style
47 file, interactiveworkbook.sty, and eighty--six EPS files,
48 including:
49 \begin{itemize}
50 \item one big buttonappearance.eps file, written in Postscript, and
51 used to draw the outlines of the various buttons,
52 \item forty--five small ``button'' files, written with a kind of
53 Postscript called PDF and, more particularly, an set
54 of PDF commands which make the language ``interactive'', called PDFmarks, and include
55 \begin{itemize}
56 \item fifteen files related to different {\it check} box buttons
57 (each question can have up to five check boxes, where each check
58 box must appear on three pages--question page, correct response page and
59 incorrect response page), including
60 pageonecheckone.eps, pagetwocheckone.eps, pagethreecheckone.eps, \ldots
61 pageonecheckfive.eps, pagetwocheckfive.eps, pagethreecheckfive.eps,
62 \item fifteen files related to different text {\it field} buttons, including
63 pageonefieldone.eps, \ldots, pagethreefieldfive.eps,
64 \item fifteen files related to different {\it popup} menu buttons, including
65 pageonepopupone.eps, \ldots, pagethreepopupfive.eps,
66 \item fifteen files related to different {\it radio} buttons, including
67 pageoneradioone.eps, \ldots, pagethreeradiofive.eps,
68 \end{itemize}
69 \item three files related to the previous (question in the exercise),
70 index (of all questions in the exercise) and next (question in the exercise) buttons;
71 namely, prev.eps, ndex.eps, and next.eps, respectively, all of which use PDFmark
72 commands and Javascript (and which is also true of all the remaining files described
73 below),
74 \item twenty buttons related to the buttons which appear on the index
75 page and which link the index page of an
76 exercise to all of the questions in the exercise: exerques1.eps, \ldots, exerques20.eps
77 \item four submit (to see if correct or not) buttons:
78 checksubmit.eps, fieldsubmit.eps, popupsubmit.eps, radiosubmit.eps,
79 \item eight ``give--the--correct--answer'' (whether on the correct or incorrect
80 response page) buttons:
81 rightcheckcorrect.eps, wrongcheckcorrect.eps, and similar
82 files for ``field'', ``popup'' and ``radio'',
83 \item four ``clear--the--answer'' buttons:
84 checkclear.eps, fieldclear.eps, popupclear.eps, radioclear.eps,
85 \item and one return (from correct or incorrect response page to question
86 page) button, return.eps.
87 \end{itemize}
88
89 In addition to the files in interactiveworkbook software package
90 and this \LaTeX\, Readme file with corresponding PDF file, there
91 are five \LaTeX\, files, along with their corresponding
92 interactive question--and--answer PDF files, including:
93 \begin{itemize}
94 \item a sample index \LaTeX\, file, ndex.tex, and corresponding PDF
95 file, ndex.pdf,
96 \item \LaTeX\, and PDF files which demonstrate the use of interactive check boxes:
97 check.tex and check.pdf,
98 \item \LaTeX\, and PDF files which demonstrate the use of the interactive text fields:
99 field.tex and field.pdf,
100 \item \LaTeX\, and PDF files which demonstrate the use of the interactive popup menus:
101 popup.tex and popup.pdf
102 \item \LaTeX\, and PDF files which demonstrate the use of the interactive radio buttons:
103 radio.tex and radio.pdf.
104 \end{itemize}
105 The five PDF files are been tied together with the ndex.pdf file
106 as a sample exercise.
107
108
109 \section{Installation Of Interactiveworkbook Software Package}
110
111 To {\it create} an interactive exercise, you must save the
112 interactiveworkbook style file, interactiveworkbook.sty, in the
113 style file location. For WinEdt 5.3, this is in the folder
114 C:/texmf/tex/latex/graphics. Also, the eighty--size EPS files are
115 located in the same directory as the five \LaTeX\, files listed
116 previously.
117
118 \section{Using The Sample Interactive PDF Exercise}
119
120 To {\it run} (as opposed to create) the sample interactive PDF
121 exercise, you will need to have Adobe Acrobat Reader version 4.0.
122 Acrobat Reader is free and available to download at Adobe's
123 web-site:
124 \begin{center}
125 http://www.adobe.com
126 \end{center}
127 Click on any one of the five sample PDF files, ndex.pdf,
128 check.pdf, popup.pdf, field. pdf or radio.pdf, to start.
129
130 \section{Using Interactiveworkbook To Create Interactive Question--and--Answer PDF Exercises}
131
132 The interactive question--and--answer PDF {\it sample} exercise
133 was created running the five sample \LaTeX\, files, ndex.tex,
134 check.tex, popup.tex, field.tex and radio.tex, using the MiKTeX
135 version of \LaTeX2e on a Pentium II 16 Meg Ram, 6 Gig Hard disk,
136 266 MHz Aptiva PC. One style file, interactiveworkbook.sty, is
137 located in the /tex/latex/graphics directory and eighty--size EPS
138 files are located in the same directory as the five \LaTeX\, files
139 listed previously.
140
141 The four \LaTeX\, files, check.tex, popup.tex, field.tex and radio.tex, are all very
142 similar to one another. Consequently, only one, check.tex, will be discussed in
143 detail here. Documentation included in the other three files will be assumed to
144 suffice as enough explanation for these files. After discussing check.tex, the index
145 file, ndex.tex, will be briefly described afterwards.
146
147 \subsection{check.tex}
148
149 The entire (short) check.tex program is given below.
150 \begin{verbatim}
151 \documentclass[dvips]{article}
152 \usepackage{interactiveworkbook}
153
154 \begin{document}
155
156 \questionandresponses{check}
157 {ndex.pdf}{ndex.pdf}{popup.pdf}
158 {Question 1. $\;$ A multiple check box question. \\ \\
159 \noindent
160 \checkone Off \answercheckone{Off} \\
161 \checktwo On \answerchecktwo{On} \\
162 \checkthree {\it no} X \answercheckthree{Off} \\
163 \checkfour X \answercheckfour{On} \\
164 \checkfive {\it do not} click \answercheckfive{Off}
165 }
166 {Yes, correct.}
167 {No, try again.}
168
169 \end{document}
170 \end{verbatim}
171
172 The first thing to notice is that this program requires the use
173 of the style file, interactiveworkbook, as given in the command
174 ``\verb+\+usepackage\{interactiveworkbook\}'', otherwise the special
175 commands, described below, will not function.
176
177 The command ``\verb+\+questionandresponses'' has {\it seven} arguments.
178 (Notice that all seven arguments are enclosed with brackets, ``\{\}''.)
179 \begin{itemize}
180 \item The first argument, ``check'', tells interactiveworkbook that the type
181 of question being asked in this case will involve check boxes. This first argument
182 may take on one of following four values:
183 \begin{center}
184 check, popup, field or radio
185 \end{center}
186 \item The second, third and fourth arguments, give the name of the PDF files
187 that a user jumps to when clicking on the Previous, Index and Next buttons,
188 respectively. In this case, a user jumps back to the Index file, ndex.pdf, when
189 clicking on either the Previous or Index buttons, but jumps to the popup.pdf
190 file, when clicking on the Next button.
191 \item The question asked is given in the fifth argument. In this case, it
192 is question 1, a check box question which uses five check boxes.
193
194 The five check boxes are called ``\verb+\+checkone'', through to ``\verb+\+checkfive''.
195 The twenty possible commands are:
196 \begin{itemize}
197 \item \verb+\+checkone, ..., \verb+\+checkfive, {\it or}
198 \item \verb+\+popupone, ..., \verb+\+popupfive, {\it or}
199 \item \verb+\+fieldone, ..., \verb+\+fieldfive, {\it or}
200 \item \verb+\+radioone, ..., \verb+\+radiofive.
201 \end{itemize}
202 There can only be five possible answers, all of one type for a
203 single question. This command {\it must} match up with the first argument of
204 ``\verb+\+questionandresponses''. For example, although it is possible to use
205 ``\verb+\+popupone'' in a ``popup'' type of question, it is not possible to use
206 this command, here, in a ``check'' type of question.
207
208 In addition to the check boxes, the question giver also provides the correct
209 answers to the check boxes. The five answers to the check boxes are called
210 ``\verb+\+answercheckone'', through to ``\verb+\+answercheckfive''. The twenty
211 possible commands are:
212 \begin{itemize}
213 \item \verb+\+answercheckone, ..., \verb+\+answercheckfive,
214 \item \verb+\+answerpopupone, ..., \verb+\+answerpopupfive,
215 \item \verb+\+answerfieldone, ..., \verb+\+answerfieldfive,
216 \item \verb+\+answerradioone, ..., \verb+\+answerradiofive.
217 \end{itemize}
218 In this case, the correct answer has check boxes two
219 and four ``On'' (or Xed), and check boxes one, three and five ``Off''. These
220 answers do not appear on the question page. They appear on either the correct
221 response page or incorrect response pages, if requested by the question taker.
222 \item Correct response and incorrect response comments are given in the sixth
223 and seventh arguments. The correct response comment, in this case is ``Yes, correct.'',
224 whereas the incorrect response comment is ``No, try again.''. These comments
225 appear below the question on the correct and incorrect pages of the interactive
226 PDF file.
227 \end{itemize}
228
229 \subsection{ndex.tex}
230
231 The entire (short) check.tex program is given below.
232 \begin{verbatim}
233 \documentclass[dvips]{article}
234 \usepackage{interactiveworkbook}
235
236 \begin{document}
237
238 \exerciseintroduction{Index. $\;$ This is an index of, at most, twenty questions:
239 a multiple check box question, a multiple popup question, a multiple text
240 field question and a radio button question.
241 }
242
243 \vspace{.2in}
244 \exerquessetupone{check.pdf}
245 \exerquessetuptwo{popup.pdf}
246 \exerquessetupthree{field.pdf}
247 \exerquessetupfour{radio.pdf}
248 \vdots
249 \exerquessetuptwenty{radio.pdf}
250
251 \begin{center}
252 \begin{tabular}{||lc|lc||} \hline
253 Q1. Check & \exerquesone & Q11. Field & \exerqueseleven \\ \hline
254 Q2. Popup & \exerquestwo & Q12. Radio & \exerquestwelve\\ \hline
255 Q3. Field & \exerquesthree & Q13. Check & \exerquesthirteen\\ \hline
256 Q4. Radio & \exerquesfour & Q14. Popup & \exerquesfourteen\\ \hline
257 Q5. Check & \exerquesfive & Q15. Field & \exerquesfifteen \\ \hline
258 Q6. Popup & \exerquessix & Q16. Radio & \exerquessixteen\\ \hline
259 Q7. Field & \exerquesseven & Q17. Check & \exerquesseventeen\\ \hline
260 Q8. Radio & \exerqueseight & Q18. Popup & \exerqueseighteen\\ \hline
261 Q9. Check & \exerquesnine & Q19. Field & \exerquesnineteen\\ \hline
262 Q10. Popup & \exerquesten & Q20. Radio & \exerquestwenty\\ \hline
263 \end{tabular}
264 \end{center}
265 \end{verbatim}
266
267 The introductory blurb to this sample PDF exercise is given in the argument
268 of the command ``\verb+\+exerciseintroduction''. In this case, it starts,
269 ``Index. This is \ldots.''.
270 The ``\verb+\+exerquessetupone'', through to ``\verb+\+exerquessetuptwenty'',
271 give the names of the four (there can be as many as twenty) PDF questions in this exercise.
272 The ``\verb+\+exerquesone'', through to ``\verb+\+exerquestwenty'' commands
273 creates twenty (but can be fewer) index buttons.
274
275 \section{What is an Interactive Question--and--Answer PDF Exercise?}
276
277 A user (or question taker) submits an answer to an interactive PDF
278 question and the computer responds as to whether or not the given
279 answer is correct (matches a preset answer). An interactive index
280 is a PDF file which not only lists all of the questions in the
281 exercise, but also allows the question taker to jump from this
282 index to any particular question on the list. An interactive
283 question--and--answer PDF exercise is a series of interactive PDF
284 questions tied together by an interactive index.
285
286 A sample interactive question--and--answer PDF exercise has been
287 included with this interactive software package. In addition to
288 the PDF index, called ndex.pdf, there are four interactive PDF
289 question--and--answer files, which demonstrate the four basic
290 different question types, in this sample exercise. The four
291 interactive PDF files are given below.
292 \begin{itemize}
293 \item {\it check.pdf}. In this type of question, five (although less can be used)
294 check boxes are displayed as part of the question. The question taker answers the
295 question by choosing none, one or more of these check boxes.
296 \item {\it field.pdf}. Five (although less can be used)
297 text fields are displayed. The question taker answers this fill--in--the--blank
298 kind of question by typing answers into these text fields.
299 \item {\it popup.pdf} Five (although less can be used) popup menus are displayed.
300 Each of the five popup menu provides the question taker with nine choices, ``a'', ``b'',
301 \ldots, ``i''.
302 \item {\it radio.pdf}. Five (although less can be used) radio buttons are displayed.
303 The question taker answers the question by choosing one (and {\it only} one) of
304 these radio buttons.
305 \end{itemize}
306 Although these four button types have been positioned in a
307 particular way for this sample exercise, they can, in fact, be
308 positioned {\it anywhere} on the question page.
309
310 Whether a check, field, popup or radio type of question, all
311 interactive PDF files have three pages. The first page of the
312 file displays the question, the second page displays information
313 if the question taker gives a correct response to the question and
314 the third page displays information if the question taker gives an
315 {\it in}correct response to the question.
316
317 The question page of each interactive PDF file has a number of
318 different components. In addition to the question (check, field,
319 popup or radio), there are five {\it navigational} buttons located
320 at the bottom of this page.
321 \begin{itemize}
322 \item {\it Clear}. This button, on the lower left of the question page, clears
323 the question page of any answers.
324 \item {\it Submit}. Clicking on this button on the lower right of the question
325 page both determines whether the given answer is correct or not and then jumps
326 to either to the correct response page or incorrect response page.
327 \item {\it Previous.} By clicking on this lower middle button, a jump is made
328 {\it outside} the present question to the previous question in the interactive
329 {\it exercise}.
330 \item {\it Index.} By clicking on this lower middle button, a jump is made
331 outside the present question to the index PDF file in the interactive
332 exercise.
333 \item {\it Next.} By clicking on this lower middle button, a jump is made
334 outside the present question to the {\it next} question in the interactive
335 exercise.
336 \end{itemize}
337 The position of the navigational buttons cannot be altered from
338 the positions displayed in the sample interactive PDF exercise.
339
340 The correct response and incorrect response pages of each
341 interactive PDF file have a number of different components.
342 First, a {\it blank} version of the question (check, field, popup
343 or radio), given on the first page, is displayed on both of these
344 two pages. Second, either a (blue colored) correct response
345 comment or a (red colored) incorrect response comment are shown
346 just below the (black colored) question. Third, there are five
347 {\it navigational} buttons located at the bottom of this page. As
348 on the question page, the Previous, Index and Next buttons are
349 given in the lower middle of both the correct and incorrect
350 response pages. In addition to these three buttons, there are two
351 other buttons.
352 \begin{itemize}
353 \item {\it Answer}. This button, on the lower left of the question page, fills
354 the blank question page with correct answers.
355 \item {\it Return}. Clicking on this button on the lower right of the question
356 page returns the user from either the correct response page or incorrect response
357 page back to the first (question) page of the current interactive
358 PDF question.
359 \end{itemize}
360
361 The sample interactive index PDF file, unlike the interactive
362 question--and--answer PDF file, consists of one page. This page
363 has two components. The first component consists of introductory
364 remarks on the questions which make up the exercise. The second
365 component consists of a list of twenty (although less can be used)
366 buttons. Each of these buttons links to one of the four (although
367 there could be as many as twenty) questions which make up this
368 sample exercise. The index buttons can be positioned anywhere on
369 the index page.
370
371 \end{document}