LaTeX Question Bank Document Structure

Questions are grouped into topics. Use the LaTeX topic environment to mark the beginning and end of topics.

 

Each question is wrapped inside a question environment. The EDU question type must be provided as an argument to the opening statement.

 

The example format below shows one topic containing two questions. The ellipses ... indicate necessary entries that you must provide.

 

The LaTeX package epsfig is loaded by default. Other standard LaTeX packages, for example, amsmath, can be included using the \usepackage macro. You can also define additional LaTeX macros as usual.

 

To include graphics:

  1. Select a location in your EDU class Web site for graphics files. It is recommended that you use a distinct folder for the images in each testbank. Upload the graphic to your class Web site.

  2. Insert the \setImageBase directive near the top of your testbank TeX source file to specify the path to this location. For example, if your EDU classname is calculus205, and your graphics folder is the chapter1 folder of your EDU class Web site, use the directive:

  3. \setImageBase{../classes/calculus205/chapter1/}

    Note: The final slash is optional.

 

Example Structure

\documentclass[12pt]{article}
\usepackage{ed}
% Optionally set the location for graphics files on the EDU system.
\setImageBase{../classes/MapleTAclassname/images_folder/}
\begin{document}
\begin{topic}{...}
\begin{question}{...}
...
\end{question}
\begin{question}{...}
...
\end{question}
\end{topic}
\end{document}

 

See Also:

Other Available Fields in LaTeX Questions