summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.tex')
-rw-r--r--Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.tex36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.tex b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.tex
new file mode 100644
index 00000000000..ef302fe6359
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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}