Description
Places an image at the current location. In preview processing, attempts to load aneps
file; in production processing (using the LaTeX2EDU conversion service), places an image
tag pointing to the indicated graphic.
Syntax
\image[ext]{filename}
- ext option
- The extension to be appended to the filename (the second argument) when the testbank is converted to EDU format. If the second argument is a full filename with extension, the first argument is ignored.
- filename
- The filename of the graphic.
The recommended way to use \image
is as
follows.
- In the document's preamble (between
\usepackage{ed}
and\begin{document}
), use:\setImageBase
to set the images' base pathname.\setDefaultExt{ext}
to set the default extension; omitting\setDefaultExt
will result injpg
being used as the default.
- Use the command
\image{graphic}
to place the imagegraphic.ext
, whereext
is either the argument to\setDefaultExt
or the defaultjpg
.
Notes
- While the
\epsfig
macro allows various options, such as "width=...
",\image
does not support any options. Encapsulated Postscript files will appear in full size in the dvi file. - The default extension, to be appended to
filenames in the case that the optional argument is omitted
from
\image
, is.jpg
. The\setDefaultExt
macro allows you to customize the default extension. - The conversion tools provide no graphic conversion capabilities. External means are necessary to produce web-friendly graphics and to place them on the server.
Examples
\image{graphic}
will attempt to incorporate the filegraphic.eps
from the current directory when processed in preview mode. Ifgraphic.eps
is not present, it will simply place the image filename in the dvi file. When processed using the LaTeX2EDU conversion service,\image{graphic}
will produce an image tag pointing tographic.jpg
in the directory specified by\setImageBase
.\image[gif]{graphic}
will attempt to place the filegraphic.eps
in the dvi output in preview mode. In production processing, it will produce an image tag pointing tographic.gif
in the\setImageBase
directory.\image{graphic.pct}
will not attempt to incorporate a graphic file into the dvi output. Instead, it will place an image tag indicating thatgraphic.pct
from the\setImageBase
directory will appear in the online question bank.