diff options
Diffstat (limited to 'macros/latex/contrib/ran_toks/examples/mc-db.tex')
-rw-r--r-- | macros/latex/contrib/ran_toks/examples/mc-db.tex | 72 |
1 files changed, 45 insertions, 27 deletions
diff --git a/macros/latex/contrib/ran_toks/examples/mc-db.tex b/macros/latex/contrib/ran_toks/examples/mc-db.tex index 1eb2ce548a..549da16f2c 100644 --- a/macros/latex/contrib/ran_toks/examples/mc-db.tex +++ b/macros/latex/contrib/ran_toks/examples/mc-db.tex @@ -1,7 +1,9 @@ -\documentclass{article} -\usepackage[allowrandomize,nosolutions, - forpaper,pointsonleft,noparttotals]{eqexam} -\usepackage{ran_toks} +\documentclass[a4paper]{article} +\usepackage[% + allowrandomize, + nosolutions, + forpaper,pointsonleft,noparttotals]{eqexam} +\usepackage[usedbapp]{ran_toks} \useLastAsSeed % To reproduce the same pseudo-random sequence, you need to supply a seed @@ -13,14 +15,21 @@ \subject[MC]{My Course} \date{Spring \the\year} \keywords{Test~\nExam, Section 001} - -\university + \university {% THE UNIVERSITY OF AKRON\\ Theoretical and Applied Mathematics } \email{dpstory@uakron.edu} + + +%\uniqueXDBChoicesOn +%\viewIDstrue % to view the IDs of problems used\university +%\doNotRandomizeChoices % eqexam 2021/01/20 +%\allowRandomizedChoices % eqexam 2021/01/20 + + % Input the DB files used in the demo file \useTheseDBs{db1,db2,db3,db4} @@ -38,38 +47,47 @@ This part demonstrates how to not only randomly pull problems (two from each of to randomize the order they are listed in the exam. \end{instructions} -\ranToks{myExam}{% - {\useRanTok[DB1-]{1}} - {\useRanTok[DB1-]{2}} - {\useRanTok[DB2-]{1}} - {\useRanTok[DB2-]{2}} - {\useRanTok[DB3-]{1}} - {\useRanTok[DB3-]{2}} - {\useRanTok[DB4-]{1}} - {\useRanTok[DB4-]{2}} +\ranToksOff + +\ranToks{myExam} +{% + {\useRanTok[DB1]{1}} + {\useRanTok[DB1]{2}} + {\useRanTok[DB2]{1}} + {\useRanTok[DB2]{2}} + {\useRanTok[DB3]{1}} + {\useRanTok[DB3]{2}} + {\useRanTok[DB4]{1}} + {\useRanTok[DB4]{2}} } \displayListRandomly{myExam} \end{exam} +\newpage + +%\uniqueXDBChoicesOff + \begin{exam}{Part2} \begin{instructions} -In this part, we take the same two problems from each of the four DB files, but do not randomize -the order of the questions. +In this part, when \verb~\uniqueXDBChoicesOff~ (the default) is +expanded, we take the same two problems from each of the four DB +files, but here, we do not randomize the order of the questions. However, +when \verb~\uniqueXDBChoicesOn~ is expanded in the preamble, +this set of eight questions are entirely different from the ones +of \textsf{Part1}. \end{instructions} -\useRanTok[DB1-]{1} -\useRanTok[DB1-]{2} -\useRanTok[DB2-]{1} -\useRanTok[DB2-]{2} -\useRanTok[DB3-]{1} -\useRanTok[DB3-]{2} -\useRanTok[DB4-]{1} -\useRanTok[DB4-]{2} +\useRanTok[DB1]{1} +\useRanTok[DB1]{2} +\useRanTok[DB2]{1} +\useRanTok[DB2]{2} +\useRanTok[DB3]{1} +\useRanTok[DB3]{2} +\useRanTok[DB4]{1} +\useRanTok[DB4]{2} \end{exam} \end{document} - - |