summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/interactiveworkbook/samplefiles
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/interactiveworkbook/samplefiles
Initial commit
Diffstat (limited to 'macros/latex/contrib/interactiveworkbook/samplefiles')
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/check.pdfbin0 -> 36683 bytes
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/check.tex36
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/field.pdfbin0 -> 33917 bytes
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/field.tex39
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/ndex.pdfbin0 -> 295074 bytes
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/ndex.tex58
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/popup.pdfbin0 -> 36575 bytes
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/popup.tex32
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/radio.pdfbin0 -> 40135 bytes
-rw-r--r--macros/latex/contrib/interactiveworkbook/samplefiles/radio.tex31
10 files changed, 196 insertions, 0 deletions
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/check.pdf b/macros/latex/contrib/interactiveworkbook/samplefiles/check.pdf
new file mode 100644
index 0000000000..668305a3cb
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/check.pdf
Binary files differ
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/check.tex b/macros/latex/contrib/interactiveworkbook/samplefiles/check.tex
new file mode 100644
index 0000000000..66e3544404
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/check.tex
@@ -0,0 +1,36 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% CHECK BOX LATEX FILE EXAMPLE: USES QUESTIONANDRESPONSES COMMAND, 7 ARGUMENTS
+% 1ST ARGUMENT INDICATES THIS IS "CHECK" TYPE QUESTION
+% 2ND, 3RD, 4TH ARGUMENTS GIVE NAMES OF PREVIOUS, INDEX, NEXT LINKING FILES
+% 5TH ARGUMENT GIVES QUESTION, WITH UP TO 5 CHECK BOXES, AND
+% WHETHER OR NOT THESE CHECK BOXES ARE "ON" OR "OFF"
+% ANY WHERE FROM NONE TO FIVE CHECK BOXES ARE ALLOWED TO BE "ON"
+% 6TH, 7TH ARGUMENTS GIVE RESPONSES IF USER ANSWER CORRECT OR INCORRECT
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\documentclass[dvips]{article}
+\usepackage{interactiveworkbook} % put in style directory; cannot appear in any other directory
+
+\begin{document}
+
+% question and responses has *seven* arguments
+\questionandresponses{check} % check box kind of question
+{ndex.pdf}{ndex.pdf}{popup.pdf} % previous, index and next files are 2nd, 3rd, 4th arguments
+{Question 1. $\;$ A multiple check box question. \\ \\ % question is 5th argument
+ % "checkbox..." is for question taker, "answercheck..." is for question giver
+ % "checkbox..." appears on screen; "answercheck..." does not appear on screen
+ % up to five check boxes can be "X"ed
+ \noindent
+ \checkone Off \answercheckone{Off} \\
+ % correct answer, next, has check box "On" ("X"ed)
+ \checktwo On \answerchecktwo{On} \\
+ % correct answer, next, "Off" (un"X"ed)
+ \checkthree {\it no} X \answercheckthree{Off} \\
+ \checkfour X \answercheckfour{On} \\
+ \checkfive {\it do not} click \answercheckfive{Off}
+} % end of 5th argument
+{Yes, correct.} % correct response hint is 6th argument
+{No, try again.} % incorrect response hint is 7th argument
+
+\end{document}
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/field.pdf b/macros/latex/contrib/interactiveworkbook/samplefiles/field.pdf
new file mode 100644
index 0000000000..97d13ecf66
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/field.pdf
Binary files differ
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/field.tex b/macros/latex/contrib/interactiveworkbook/samplefiles/field.tex
new file mode 100644
index 0000000000..99dbd57be0
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/field.tex
@@ -0,0 +1,39 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% TEXT FIELD LATEX FILE EXAMPLE: USES QUESTIONANDRESPONSES COMMAND, 7 ARGUMENTS
+% 1ST ARGUMENT INDICATES THIS IS "FIELD" TYPE QUESTION
+% 2ND, 3RD, 4TH ARGUMENTS GIVE NAMES OF PREVIOUS, INDEX, NEXT LINKING FILES
+% 5TH ARGUMENT GIVES QUESTION, WITH UP TO 5
+% BLANK TEXT FIELDS FOR QUESTION TAKER (USER); APPEAR ON SCREEN
+% ANSWER TEXT FIELDS FOR QUESTION GIVER; DO NOT APPEAR ON SCREEN
+% 6TH, 7TH ARGUMENTS GIVE RESPONSES IF USER ANSWER CORRECT OR INCORRECT
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\documentclass[dvips]{article}
+\usepackage{interactiveworkbook} % put in style directory; cannot appear in any other directory
+
+\begin{document}
+
+\questionandresponses{field} % tells style file choose fieldclear, fieldsubmit buttons
+{popup.pdf}{ndex.pdf}{radio.pdf} % previous, index and next files are 2nd, 3rd, 4th arguments
+{ % question and responses has *seven* arguments
+ Question 3. $\;$ A multiple text field question.
+ % question is 5th argument
+ \begin{center}
+ % "field..." shows blank text fields on screen; "answerfield..." not shown on screen
+ % question taker (user) types answer in "field..."; question giver uses "answer..."
+ % question taker types answer text "one" into argument of \answerfieldone{}
+ one \fieldone \answerfieldone{one} \\
+ two \fieldtwo \answerfieldtwo{two} \\ % question giver gives answer "two" in this case
+ three \fieldthree \answerfieldthree{three} \\
+ four \fieldfour \answerfieldfour{four} \\
+ five \fieldfive \answerfieldfive{five} % all five text fields do not have to be used
+ \end{center}
+} % end of first argument; "}" *must* appear after last line of question, with no blank lines
+{Yes, correct.} % correct response hint is 6th argument of questionandresponses command
+{No, at least one of the answers you typed in is not exactly the same
+as the preset question giver answers.} % incorrect response hint is 7th argument
+
+
+
+\end{document}
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/ndex.pdf b/macros/latex/contrib/interactiveworkbook/samplefiles/ndex.pdf
new file mode 100644
index 0000000000..054caf8ecc
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/ndex.pdf
Binary files differ
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/ndex.tex b/macros/latex/contrib/interactiveworkbook/samplefiles/ndex.tex
new file mode 100644
index 0000000000..173726af3b
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/ndex.tex
@@ -0,0 +1,58 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% INDEX LATEX FILE EXAMPLE
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\documentclass[dvips]{article}
+\usepackage{interactiveworkbook} % put in style directory; cannot appear in any other directory
+
+\begin{document}
+
+\exerciseintroduction{Index. $\;$ This is an index of, at most, twenty questions:
+a multiple check box question, a multiple popup question, a multiple text
+field question and a radio button question.
+}
+
+\vspace{.2in}
+
+% locations of twenty question files for this exercise
+% "exerquessetupone", ..., "exerquessetuptwenty" commands defined in buttonappearance.eps
+\exerquessetupone{check.pdf}
+\exerquessetuptwo{popup.pdf}
+\exerquessetupthree{field.pdf}
+\exerquessetupfour{radio.pdf}
+\exerquessetupfive{check.pdf}
+\exerquessetupsix{popup.pdf}
+\exerquessetupseven{field.pdf}
+\exerquessetupeight{radio.pdf}
+\exerquessetupnine{check.pdf}
+\exerquessetupten{popup.pdf}
+\exerquessetupeleven{field.pdf}
+\exerquessetuptwelve{radio.pdf}
+\exerquessetupthirteen{check.pdf}
+\exerquessetupfourteen{popup.pdf}
+\exerquessetupfifteen{field.pdf}
+\exerquessetupsixteen{radio.pdf}
+\exerquessetupseventeen{check.pdf}
+\exerquessetupeighteen{popup.pdf}
+\exerquessetupnineteen{field.pdf}
+\exerquessetuptwenty{radio.pdf}
+
+% twenty (blank) question buttons
+% "exerquesone", ..., "exerquestwenty" commands defined in buttonappearance.eps
+\begin{center}
+\begin{tabular}{||lc|lc||} \hline
+ Q1. Check & \exerquesone & Q11. Field & \exerqueseleven \\ \hline
+ Q2. Popup & \exerquestwo & Q12. Radio & \exerquestwelve\\ \hline
+ Q3. Field & \exerquesthree & Q13. Check & \exerquesthirteen\\ \hline
+ Q4. Radio & \exerquesfour & Q14. Popup & \exerquesfourteen\\ \hline
+ Q5. Check & \exerquesfive & Q15. Field & \exerquesfifteen \\ \hline
+ Q6. Popup & \exerquessix & Q16. Radio & \exerquessixteen\\ \hline
+ Q7. Field & \exerquesseven & Q17. Check & \exerquesseventeen\\ \hline
+ Q8. Radio & \exerqueseight & Q18. Popup & \exerqueseighteen\\ \hline
+ Q9. Check & \exerquesnine & Q19. Field & \exerquesnineteen\\ \hline
+ Q10. Popup & \exerquesten & Q20. Radio & \exerquestwenty\\ \hline
+\end{tabular}
+\end{center}
+
+\end{document}
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/popup.pdf b/macros/latex/contrib/interactiveworkbook/samplefiles/popup.pdf
new file mode 100644
index 0000000000..1d4a40cc11
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/popup.pdf
Binary files differ
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/popup.tex b/macros/latex/contrib/interactiveworkbook/samplefiles/popup.tex
new file mode 100644
index 0000000000..5d619c84d8
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/popup.tex
@@ -0,0 +1,32 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% POPUP MENU LATEX FILE EXAMPLE: USES QUESTIONANDRESPONSES COMMAND, 7 ARGUMENTS
+% 1ST ARGUMENT INDICATES THIS IS "POPUP" TYPE QUESTION
+% 2ND, 3RD, 4TH ARGUMENTS GIVE NAMES OF PREVIOUS, INDEX, NEXT LINKING FILES
+% 5TH ARGUMENT GIVES QUESTION, WITH UP TO 5 MENUS, AND
+% WHATEVER THESE MENUS ARE SET TO (A,B,C,D,E,F,G,H OR I)
+% 6TH, 7TH ARGUMENTS GIVE RESPONSES IF USER ANSWER CORRECT OR INCORRECT
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\documentclass[dvips]{article}
+\usepackage{interactiveworkbook} % put in style directory; cannot appear in any other directory
+
+\begin{document}
+
+% questionandresponses command has *seven* arguments
+
+\questionandresponses{popup} % popup menu kind of question, needed in style file
+{check.pdf}{ndex.pdf}{field.pdf} % previous, index and next files are 2nd, 3rd, 4th arguments
+{ Question 2. $\;$ A multiple popup question. % question is 5th argument
+ \begin{center}
+ a is correct \popupone \answerpopupone{a} $\quad$ % user gives "a" as the correct answer
+ try b \popuptwo \answerpopuptwo{b} $\quad$ % question giver gives "b" as the correct answer
+ c, not "c" \popupthree \answerpopupthree{c} \\ % "popupthree" is what question taker sees
+ g \popupfour \answerpopupfour{g} $\quad$
+ and i \popupfive \answerpopupfive{i}
+ \end{center}
+} % end of 5th argument
+{Yes, correct, because all choices correspond to the preset answers.} % correct response hint
+{No, try again.} % incorrect response hint is 7th argument
+
+\end{document}
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/radio.pdf b/macros/latex/contrib/interactiveworkbook/samplefiles/radio.pdf
new file mode 100644
index 0000000000..60f30fc048
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/radio.pdf
Binary files differ
diff --git a/macros/latex/contrib/interactiveworkbook/samplefiles/radio.tex b/macros/latex/contrib/interactiveworkbook/samplefiles/radio.tex
new file mode 100644
index 0000000000..79d2ca1dcc
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/samplefiles/radio.tex
@@ -0,0 +1,31 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% RADIO BUTTON LATEX FILE EXAMPLE: USES QUESTIONANDRESPONSES COMMAND, 7 ARGUMENTS
+% 1ST ARGUMENT INDICATES THIS IS "RADIO" TYPE QUESTION
+% 2ND, 3RD, 4TH ARGUMENTS GIVE NAMES OF PREVIOUS, INDEX, NEXT LINKING FILES
+% 5TH ARGUMENT GIVES QUESTION, WITH UP TO 5 BUTTONS, AND
+% WHETHER OR NOT THESE RADIO BUTTONS ARE "ON" OR "OFF"
+% ONE AND ONLY ONE RADIO BUTTON IS ALLOWED TO BE "ON"
+% 6TH, 7TH ARGUMENTS GIVE RESPONSES IF USER ANSWER CORRECT OR INCORRECT
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\documentclass[dvips]{article}
+\usepackage{interactiveworkbook} % put in style directory; cannot appear in any other directory
+
+\begin{document}
+
+\questionandresponses{radio} % radio button kind of question
+{popup.pdf}{ndex.pdf}{ndex.pdf} % previous, index and next files are 2nd, 3rd, 4th arguments
+{Question 4. $\;$ A multiple radio button question.
+ \begin{center}
+ not the one \radioone{} \answerradioone{Off} $\quad\quad$ % incorrect answer is "Off"
+ nope \radiotwo{} \answerradiotwo{Off} $\quad\quad$ % another incorrect answer
+ not yet \radiothree{} \answerradiothree{Off} \\ % radiothree has no argument {}
+ On \radiofour{} \answerradiofour{On} $\quad\quad$ % *one* of five radio buttons "On"
+ Off \radiofive{} \answerradiofive{Off} % radiofive{} appears on question and response pages
+ \end{center}
+}
+{Yes, correct.} % correct response hint is 6th argument of questionandresponses command
+{No, incorrect.} % incorrect response hint is 7th argument
+
+\end{document}