\documentclass{article}
\usepackage{amsmath,amssymb}
%\usepackage{graphicx}
\usepackage[designiv,nodirectory]{web}
\usepackage{exerquiz}
\usepackage[procrespgrp]{dljslib}

\title{Demo File for the \textsf{dljslib} Package\texorpdfstring{\\[1ex]}{: }
    The Wagner, Arnold, Miles-Prystowsky Contribution}
\author{D. P. Story}
\university{The {Acro\!\TeX} Software Development Team}
\email{dpstory@uakron.edu}
\version{1.0}
\copyrightyears{\the\year}

\useBeginQuizButton[\textColor{0 0 1 rg}\CA{Exam}\AC{}\RC{}\rectW{}]
\useEndQuizButton[\textColor{0 0 1 rg}\CA{End}\AC{}\RC{}\rectW{}]


\parindent=0pt

\makeatletter
\let\web@copyright\@gobble
\let\web@revision\@gobble
\makeatother

%%% some convenience macros
\def\numberbox#1#2{\RespBoxMath{#1}[\thequestionno]{1}{#2}{[0,1]}\CorrAnsButton{#1}}
\def\decimalbox#1#2{\RespBoxMath{#1}[\thequestionno]{1}{#2}{[0,1]}[{priorParse: DecimalsOnly }]\CorrAnsButton{#1}}
\def\numberlistbox#1#2{\RespBoxMath{#1}[\thequestionno]{1}{#2}{[0,1]}*{ProcRespListFormula}\CorrAnsButton{#1}}
\def\numbersetbox#1#2{\RespBoxMath{#1}[\thequestionno]{1}{#2}{[0,1]}*{ProcRespSetNum}\CorrAnsButton{#1}}
\def\vectorbox#1#2{\RespBoxMath{#1}[\thequestionno]{1}{#2}{[0,1]}*{ProcVec}\CorrAnsButton{#1}}
\def\pointbox#1#2{\RespBoxMath{#1}[\thequestionno]{1}{#2}{[0,1]}*{ProcPoint}\CorrAnsButton{#1}}
\def\formulabox#1#2#3{\RespBoxMath{#1}(#2)[\thequestionno]{10}{1.0E-15}{#3}\CorrAnsButton{#1}}
\def\formulalistbox#1#2#3{\RespBoxMath{#1}(#2)[\thequestionno]{10}{1.0E-15}{#3}*{ProcRespListFormula}\CorrAnsButton{#1}}
\def\formulasetbox#1#2#3{\RespBoxMath{#1}(#2)[\thequestionno]{10}{1.0E-15}{#3}*{ProcRespSetFormula}\kern1bp\CorrAnsButton{#1}}
\def\formulavectorbox#1#2#3{\RespBoxMath{#1}(#2)[\thequestionno]{10}{1.0E-15}{#3}*{ProcVec}\CorrAnsButton{#1}}
\def\formulapointbox#1#2#3{\RespBoxMath{#1}(#2)[\thequestionno]{10}{1.0E-15}{#3}*{ProcPoint}\CorrAnsButton{#1}}
\def\factorsbox#1#2#3{\RespBoxMath{#1}(#2)[\thequestionno]{10}{1.0E-15}{#3}*{ProcRespFactors}\CorrAnsButton{#1}}
\def\equationbox#1#2#3{\RespBoxMath{#1}(#2)[\thequestionno]{10}{1.0E-15}{#3}*{ProcRespEq}\CorrAnsButton{#1}}
\def\restrictedformula#1#2{\RespBoxMath{#1}[\thequestionno]{1}{#2}{[0,1]}[{priorParse: NoTrigLogAllowed }]\CorrAnsButton{#1}}
\def\intervalbox#1{\RespBoxMath{#1}(infU)[\thequestionno]{10}{1.0E-4}{[0,1]x[0,1]x[0,1]x[0,1]}*{ProcRespIntervals}\CorrAnsButton{#1}}
%%% end macros

\begin{document}

\maketitle

\begin{quiz}*{quiz}

\begin{questions}

\smallskip

\item Expected response is an interval. Answer: \verb!(-inf,4]U[5,inf)!

\intervalbox{(-inf,4]U[5,inf)}

\item Expected response is an interval. Answer: \verb!(-inf,4)U[5,inf)!

\intervalbox{(-inf,4)U[5,inf\eqbs)}

\item Expected response is an unordered comma delimited list.\\Answer: \verb!x, x^2, x^3!

\formulasetbox{x,x^2,x^3}{x}{[1,2]}

\item Expected response is a factored expression.\\Answer: \verb!3x(x^2+1)(2x-1)^3!

\factorsbox{3x(x^2+1)(2x-1)^3}{x}{[0,1]}

\item Expected response an ordered pair of numbers. Answer: \verb!(-1,4)!

\pointbox{(-1,4)}{.0001}

\item Expected response an ordered pair of functions. Answer: \verb!(e^t,te^t)!

\formulapointbox{(e^t,te^t)}{t}{[0,1]}

\end{questions}
\end{quiz}\qquad\PointsField\currQuiz\eqButton\currQuiz

\noindent
Answers: \AnswerField\currQuiz

\end{document}
