The \image macro is the recommended method for including graphics in a question. If the file is available locally as an Encapsulated Postscript (eps or epsf) file, it is included (\image calls \epsfig to include the graphic).
You can also embed Maple plots in questions using the Question Bank Editor.
Important: Do not explicitly call \epsfig. Using \epsfig directly does not ensure that proper Maple T.A. code results.
To include graphics:
Select a location in your Maple T.A. class Web site for graphics files. It is recommended that you use a distinct folder for the images in each question bank. Upload the graphic to your class Web site.
Insert the \setImageBase directive near the top of your question bank TeX source file to specify the path to this location. For example, if your Maple T.A. classname is calculus205, and your graphics folder is the chapter1 folder of your Maple T.A. class Web site, use the directive:
\setImageBase{../classes/calculus205/chapter1/}
Note: The final slash is optional.
Include graphics in a question using the \image macro. The format for the \image macro is:
\image[extension]{filename}
The extension argument is optional. It specifies the extension to be appended to the filename (the second argument) when the question bank is converted to Maple T.A. format. The default value is jpg.
If the filename argument is a filename with an extension, the first argument is ignored. If the filename argument is a filename without an extension, the .eps extension is used in preview mode, and extension (or the default .jpg) is used in production processing.
\image{graphic}
Places the file graphic.eps from the current directory in the dvi output in preview mode. In production processing, it produces an image tag pointing to graphic.jpg in the directory specified by \setImageBase.
\image[gif]{graphic}
Places the file graphic.eps from the current directory in the dvi output in preview mode. In production processing, it produces an image tag pointing to graphic.gif in the \setImageBase directory.
\image{graphic.pct}
Does not place the file graphic.pct in the dvi output. In production processing, it produces an image tag pointing to graphic.pct in the \setImageBase directory.
While the \epsfig macro allows various options, for example, width, \image does not support any options. Encapsulated Postscript files appear at full size in the dvi file.
The conversion tools do not provide graphic conversion services. You must use third-party tools to produce Web image files.
\begin{question}{True False}
\qutext{The following graph is the graph of a function.\newline
True or False?\newline
\image{graphic}}
\true
\end{question}