2014-05-08 12:08:01 -04:00
|
|
|
% LoVullo rater specification questions
|
|
|
|
%%
|
|
|
|
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
\ProvidesClass{raterspec/question}
|
|
|
|
\ProcessOptions\relax
|
|
|
|
|
|
|
|
|
|
|
|
\newlength\questionparsep
|
|
|
|
\questionparsep\the\marginparsep
|
|
|
|
\newenvironment{qgroup}[1]%
|
|
|
|
{%
|
|
|
|
\subsubsection{#1}%
|
|
|
|
\begin{description}%
|
|
|
|
}%
|
|
|
|
{%
|
|
|
|
\end{description}%
|
|
|
|
}
|
|
|
|
|
|
|
|
\newenvironment{subquestions}%
|
|
|
|
{%
|
|
|
|
\begin{description}%
|
2014-05-20 15:29:32 -04:00
|
|
|
\advance\questionparsep by \parindent\relax
|
2014-05-20 16:27:26 -04:00
|
|
|
\vspace{0.5\baselineskip}
|
2014-05-08 12:08:01 -04:00
|
|
|
}
|
|
|
|
{%
|
|
|
|
\end{description}%
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-05-20 15:50:49 -04:00
|
|
|
\def\@qtypedesc@currency{any dollar and cent amount.}
|
|
|
|
\def\@qtypedesc@date{a valid date.}
|
2014-05-08 12:08:01 -04:00
|
|
|
\def\@qtypedesc@float{any floating point value.}
|
|
|
|
\def\@qtypedesc@noyes{one of either {\sl No\/} or~{\sl Yes}.}
|
2014-05-20 15:50:49 -04:00
|
|
|
\def\@qtypedesc@number{any whole number.}
|
2014-05-20 16:27:32 -04:00
|
|
|
\def\@qtypedesc@percent{any valid percent.}
|
2014-06-02 11:17:56 -04:00
|
|
|
\def\@qtypedesc@select{one of the options enumerated below.}
|
2014-05-20 15:50:49 -04:00
|
|
|
\def\@qtypedesc@text{any string of characters.}
|
2014-05-08 12:08:01 -04:00
|
|
|
\newcommand\question[5][]{%
|
2014-05-20 15:29:32 -04:00
|
|
|
\item
|
2014-05-08 12:08:01 -04:00
|
|
|
\beginundersletter
|
|
|
|
\llap{%
|
|
|
|
\tt\scriptsize\raisebox{-1em}[0em][0em]{%
|
|
|
|
\shortstack[r]{%
|
|
|
|
\scantokens{#2}\\
|
|
|
|
{\tiny \scantokens{#4}}%
|
|
|
|
}%
|
|
|
|
}%
|
|
|
|
\hspace{\the\questionparsep}%
|
|
|
|
}%
|
|
|
|
\endundersletter
|
2014-05-20 15:29:32 -04:00
|
|
|
\vskip-1.5\baselineskip
|
|
|
|
\ignorespaces{\sf#5}\unskip
|
|
|
|
\par
|
2014-05-20 15:50:49 -04:00
|
|
|
\vskip-0.5\baselineskip
|
2014-05-08 12:08:01 -04:00
|
|
|
\@margin@sig
|
|
|
|
\begingroup
|
|
|
|
\def\@mapsto{#3}%
|
|
|
|
\ifx\@mapsto\empty
|
|
|
|
\May not map to any rater input parameter.%
|
|
|
|
\else
|
|
|
|
\Shall map to rater input parameter \paramref{#3}.%
|
|
|
|
\fi
|
|
|
|
\endgroup
|
|
|
|
\space Input value \shall be \csname @qtypedesc@#4\endcsname\space
|
|
|
|
\ignorespaces
|
|
|
|
}
|
|
|
|
|
2014-05-20 15:29:39 -04:00
|
|
|
|
|
|
|
% sectioning abstraction
|
|
|
|
\def\proguistep#1{\subsection{#1}}
|
|
|
|
|