Basic usage

You can use @image tag to include in the output a given image file. For example:

   1 { Diagram below shows how this procedure works:
   2   @image(diagram.png) }
   3 procedure DoSomething;

File diagram.png must exist when you call pasdoc. It will be copied by pasdoc to the output directory.

Note that the image file format (and extension) will not be altered by pasdoc. So make sure that your included image is in the format understood by WWW browsers (for html output), or latex or pdflatex (for latex output).

Specifying multiple image formats

Be aware that various documentation formats require various image formats:

PasDoc doesn't try to convert your supplied image to any image format. You must take care yourself to supply image in good image format. However, as you can see above, there is no single image format that is good for every possible output format.

So pasdoc allows you to put multiple image filenames inside one @image tag (each filename in a separate line). It is then understood that you have multiple versions of the same image, and pasdoc is free to use the best image format for each output.

Example

For example you can write

   1 { Diagram below shows how this procedure works:
   2   @image(diagram.eps
   3          diagram.pdf
   4          diagram.png) }
   5 procedure DoSomething;

and this means that

Detailed rules

The precise rules when choosing image for each output format are as follows:

If any case, if no image in the preferred format will be supplied, pasdoc will choose just the first image on the list.

ImageTag (last edited 2008-02-21 08:15:30 by MichalisKamburelis)