Figures in format-independent documents are a problem. You cannot avoid contact with the final format (HTML, LaTeX or whatever) if you want to include figures in a text. The way Yodl approaches figures, is currently the folloowing. The macro to include a figure is called, appropriately, figure. It takes three arguments: For example, you might draw a picture or scan a photo and put it in a .gif file, for usage with HTML documents. The conversion to PostScript could be automated, e.g., using a Yodl macro:
SYSTEM(xpmtoppm picture.xpm | pnmtops > picture.ps)

See the discussion of the SYSTEM macro (section ??) for the danger of live data and how Yodl handles them.

After this, you would be reasonably safe that the picture is available for both HTML and LaTeX output. The picture would be typeset in a figure using:

figure(picture)
      (A photo of me.)
      (photo)

Note how the first argument, the filename, does not contain an extension. The third argument, which is a label, can be used in, e.g.,

See figure ref(photo) for a photograph.

Yodl has a few auxiliary macros, which are:

Finally, an example of a picture is shown in figure ??. The picture is also distributed with the Yodl package as Documentation/pictures/world.xpm.

figure 1 is shown here.
figure 1: Sample picture in a figure.



Go back to index of Yodl.

Please send Yodl questions and comments to yodl@icce.rug.nl.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997, 1998, 1999 Karel Kubat and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from Yodl-1.31.18 by

<(address unknown)>, Fri Dec 4 18:14:30 2009 UTC.