Description
Creates a table of custom equivalent units available to any Numeric question in the question bank.
Syntax
\TableOfUnits{tablename}{units_list}
- tablename
- A name to assign to the table, made up of a-z characters (no spaces), to be used in referencing the table later in the document.
- units_list
- The list of acceptable units.
Notes
- To create a list of units, use the command
\TableOfUnits
in the LaTeX document's preamble—that is, somewhere before\begin{document}
(but necessarily after\usepackage{ed}
.) - Units are defined with statements like "cm
= 0.01m;", in which a new unit (cm) is defined in terms of
an existing unit (m). Each statement must end with a
semicolon. Units may be defined in terms of other units
appearing earlier in the table; for example, we could also
have "mm = 0.1cm". Note that all definitions must reduce to
the base SI units, which are
- m (meter)
- kg (kilogram)
- s (second)
- A (amp)
- K (kelvin)
- cd (Candela)
- To use a list of units, put the command
\units{tablename}
in the body of the numeric-mode question. Replacetablename
with the name assigned to the table (the first argument to\TableOfUnits
).