Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TeX formatting is a powerful tool for creating content in Quest.  The upper TeX box serves as a display of the question. Write this code in TeX (and sometimes LaTeX). A standard TeX reference card can be found here, commonly used functions available here, and more tools for finding the appropriate commands for various symbols can be found here: Detexify (external site)

Image Added


Javascript (JS) or C

The lower code box (written in JS or C) performs calculations and initialize variables that are used in the top TeX portion. Each question part in the question body must define and initialize an answer in the code portion--it is in this code box where variable, any randomization, and the answer (ans1) are set. (Follow these steps to add more than one part.)

Image Added

As the name indicates, this question type requires either Javascript (JS) or C in the code portion of questions.  No TeX is allowed in the code portion of a TeX question, especially in the definition of answer units. To avoid errors, spell out units that require more complicated symbols, like degrees, percents, etc. 

...