Versions Compared

Key

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

Regardless of the style of TeX Open question you would like to create, there are certain lines that are required for this question type. The code field must at least contain a specification of the expected answer, the syntax depends on the type of response you would like from students. For more information about the response type you'd like to create, please see the corresponding page:

Visit this page for more information about TeX/LaTeX and Javascript in Quest.

 

 

To add additional parts to a TeX Open TeX  question, simply add more designations (ex: %%%%%%%%%%%% quest 2 , %%%%%%%%%%%% expl 2) to the body of the question:

Code Block
languagetext
/* This is a comment describing the question
%%%%%%%%%%%% quest 1
Here is the text for my first question part. TeX equations, multiple choice options, images, and lists can go here. 
%%%%%%%%%%%% expl 1
Here is the explanation for the first question. 
%%%%%%%%%%%% quest 2
This is the second question part. 
%%%%%%%%%%%% expl 2
And its corresponding explanation. 

...


As well as additional answer variables to the code portion:

Code Block
languagetext
/* global double ans1 u={}*/
/* global double ans2 u={}*/


ans1 = 1;
ans2 = 1;

...


For more information about the code portion of TeX Open questions, please visit this page.

 

 


...