diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:44:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:44:40 +0000 |
commit | b4fc5f639874db951177ec539299d20908adb654 (patch) | |
tree | 52f08823ca58fffe3db6a9b075635038c567626c /Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles | |
parent | dec3d98ebe442d7ea93efbaa8dd2e2be8149a467 (diff) |
doc 4
git-svn-id: svn://tug.org/texlive/trunk@80 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles')
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.pdf | bin | 0 -> 36683 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.tex | 36 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/field.pdf | bin | 0 -> 33917 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/field.tex | 39 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/ndex.pdf | bin | 0 -> 295074 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/ndex.tex | 58 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/popup.pdf | bin | 0 -> 36575 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/popup.tex | 32 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/radio.pdf | bin | 0 -> 40135 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/radio.tex | 31 |
10 files changed, 196 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.pdf b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.pdf Binary files differnew file mode 100644 index 00000000000..668305a3cb4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/check.pdf 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} diff --git a/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/field.pdf b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/field.pdf Binary files differnew file mode 100644 index 00000000000..97d13ecf66c --- /dev/null +++ b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/field.pdf diff --git a/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/field.tex b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/field.tex new file mode 100644 index 00000000000..215e7527acc --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/ndex.pdf b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/ndex.pdf Binary files differnew file mode 100644 index 00000000000..054caf8eccc --- /dev/null +++ b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/ndex.pdf diff --git a/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/ndex.tex b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/ndex.tex new file mode 100644 index 00000000000..a420029ee99 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/popup.pdf b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/popup.pdf Binary files differnew file mode 100644 index 00000000000..1d4a40cc11a --- /dev/null +++ b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/popup.pdf diff --git a/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/popup.tex b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/popup.tex new file mode 100644 index 00000000000..b0cd1e064c3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/radio.pdf b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/radio.pdf Binary files differnew file mode 100644 index 00000000000..60f30fc0480 --- /dev/null +++ b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/radio.pdf diff --git a/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/radio.tex b/Master/texmf-dist/doc/latex/interactiveworkbook/samplefiles/radio.tex new file mode 100644 index 00000000000..ee2bd05ab09 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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} |