Description
The labelgraphic environment provides a way of adding text labels to a graphic. The graphic must be provided as a separate web-friendly file, and must be uploaded to your EDU class web site.
Syntax
\begin{labelgraphic}{filename}{width}{height} ... \end{labelgraphic}
- filename
- The name of the image file.
- width
- The width of the image file, in pixels.
- height
- The height of the image file, in pixels.
Notes
- Use the
\setImageBase
macro to define the path to your images. - The
\grlabel
macro is used to place the labels themselves.\grlabel{label}{x}{y}
- label
- The text of the label.
- x
- The x-coordinate of the label, in pixels, measured from the left edge of the image.
- y
- The y-coordinate of the label, in pixels, measured from top edge of the image (a positive value of y indicates distance below the top edge).
- More than one
\grlabel
may be used. - Without any
\grlabel
commands, the labelgraphic environment simply provides a method for incorporating an image file in a question. In this case, however,\image
is the preferred method.
Example
\begin{question}{Dimensioned Number} \qutext{A ball is thrown upward from the top of a 40 foot high tower at an initial velocity of 64 feet/second. The graph of the height of the ball versus time is shown below. What is the maximum height of the ball? Express your answer to an accuracy of at least 3 significant figures. \begin{labelgraphic}{ball.gif}{250}{200} \grlabel{time (seconds)}{120}{10} \grlabel{height (meters)}{10}{100} \end{labelgraphic}} \answer{136 ? 1 ft} \end{question}