Contents Up << >>

imagemap:3

This is translated to an HTML image map reference, or (in LaTeX) a PostScript psbox command. This allows images in HTML to have hotspots, where the user clicks on a part of the image and the browser jumps to a particular file.

The first argument is the same as the first argument to the \image command (ignored in HTML). The second argument must be the name of the image map entry, and the second is the filename to be displayed inline.

    \imagemap{}{tree.gif}{myname}
translates to:

    <a href="/cgi-bin/imagemap/mymap">
      <img src="tree.gif" ismap></a><p>
The snag with this is that, apart from the inconvenience of having to register a map file with the server, the map file will also have references to particular HTML files. If they exist in the current document, these names are not known until the file is generated. In which case, the map entries should probably refer to symbolic links that can be easily changed later.