\documentclass{article} \begin{document} \newcommand{\tag}[1]{$<$#1$>$} \renewcommand{\arg}[1]{\texttt{#1}} { \LARGE \bf LON-CAPA Homework Engine } \section{Tags} \begin{itemize} \item Output Tags This set of tags control how and when data gets sent to the student, it also provides hints to the data's markup and when it should be autoconverted, and when it should be ignored. All of these tags except \tag{outtext} are valid and parsed by \&parsed() inside a \tag{script}. Additionaly any perl style variables are replaced with the values of the variable in the problem namespace. \begin{itemize} \item \tag{outtext} all data inside is assumed to be valid html, the handler will attempt to autoconvert to the output type. The only thing tags allowed inside are the ones listed below. \item \tag{target} This tag specifies data that is not in HTMl format inside an \tag{outtext}. Takes a required argument \arg{type} and an optional argument \arg{dest}. \arg{type} specifies a known valid output target which is the format of the data. \arg{dest} specifies a list of possible output targets that the data should be autoconverted for. The \arg{type} of the data is assumed to be a \arg{dest}. If the current target is not a \arg{dest} then the data is ignored. \item \tag{tex} shorthand for $<$target type=``tex''$>$ \arg{dest} is a valid argument. \item \tag{ascii} shorthand for $<$target type=``ascii''$>$ \arg{dest} is a valid argument. \item \tag{web} shorthand for $<$target type=``web''$>$ \arg{dest} is a valid argument. \item \tag{mathml} shorthand for $<$target type=``mathml''$>$ \arg{dest} is a valid argument, mathml may be passed along unconverted in a web output target. \end{itemize} \item Form Elements: This set of tags soley generate a representation of the proper form element on the output device. Need to look at what should be provided when an exam is wanted. \begin{itemize} \item \tag{radio} web - provides a single button to check on and off, when checked on all other radio buttons in the current \tag{answergroup} level will be set to off. tex - generates a circle before the data inside \item \tag{list} web - provides a drop down box of all the possible options tex - the list is displayed an students can select the correct option \item \tag{textline} web - a single line of reponse is provided to type into. tex - a line is provided. \item \tag{textarea} web - a textarea form is provided allowing multiples lines of response tex - a configureable number of lines is provided, configured through the argument numlines, defaults to 10 \item \tag{check} web - either a checkbutton, or two radio buttons are provided tex - a small box that can be checked is provided. \item \tag{button} - Not sure this is useful \end{itemize} \item Randomiztion \begin{itemize} \item \tag{randomlist} this tag will cause the parser to randomly select the order that it parses the next level of tags, tags another leveldown will be done in order though.Example \tag{randomlist}\\ \hspace5pt \tag{tag1}\\ \tag{subtag1}\\ \tag{/subtag1}\\ \tag{subtag2}\\ \tag{/subtag2}\\ \tag{/tag1}\\ \tag{tag2}\\ \tag{subtag1}\\ \tag{/subtag1}\\ \tag{subtag2}\\ \tag{/subtag2}\\ \tag{/tag2}\\ \tag{/randomlist}\\ In this example, \tag{tag1} or \tag{tag2} will be done first, but \tag{subtag1} will always happen before \tag{subtag2}. \item \tag{foil} \item \tag{showfoil} \item \tag{showrandomfoil} \end{itemize} \item Answer Section \begin{itemize} \item \tag{answergroup} \item \tag{*response} \end{itemize} \item Problem Contruction \begin{itemize} \item \tag{block} \item \tag{part} \item \tag{include} \item \tag{script} \item \tag{problem} \item \tag{entryform} \item \tag{survey} \item \tag{graded} \item \tag{while} \end{itemize} \item Libraries \begin{itemize} \item \tag{scriptlib} \item \tag{parserlib} \end{itemize} \end{itemize} \section{CAPA compatability function Calls} \begin{itemize} \item random \item random\_normal \item random\_beta \item random\_gamma \item random\_poisson \item random\_exponential \item random\_chi \item random\_noncentral\_chi \item choose \item var\_in\_tex \item capa\_id \item class, section, set, problem, name, student\_number \item due\_date, open\_date, answer\_date \item to\_string \item sub\_string \item strlen \item get\_seed \item set\_seed \item init\_array \item array\_max, array\_min \item array\_moments \item to\_int \item format \item pick \item sin, cos, tan, asin, acos, atan, atan2 \item sinh, cosh, tanh, asinh, acosh, atanh \item j0, j1, jn, y0, y1, yn \item log, log10 \item exp, pow \item erf, erfc \item sqrt \item min, max \item abs, floor, ceil, sgn, mod, remainder \item factorial \item roundto \item eval\_formula \item capa\_id\_plus \item seat\_number \item duration \item is\_open, is\_due, is\_answer \item managermode \end{itemize} \end{document}