You can include any general image using the following constructs. The image will be converted to .pdf (with .eps intermediary, unless it's already in one of these formats).
<<img: file: Legenda>> <<img: file,posspec: Legenda>> <<img: file,posspec,sizespec: Legenda>> <<img: file,posspec,sizespec,trimspec: Legenda>>
where posspec is a LaTeX position spec. The file parameter specifies the file name without any extension. The extension is not relevant because pd2tex will automatically attempt conversion from a variety of file formats. If the automatic conversion fails, you may need to manually convert the image to .pdf format and place it in tex/ subdirectory (where it would have been placed by the automatic conversion).
Table 5:LaTeX position specs (with extensions)
| Spec | Meaning |
|---|---|
| ! | Try harder |
| H | Here, forces image here |
| h | here (if only spec, forces image here) |
| b | botton |
| t | top |
| p | floats page |
| !hp | Try hard here or floats page |
| Www | Wrap text around figure. Figure width ww cm. |
| R | Raw. Do not use float. Must leave caption empty. |
| * | Causes figure* to be used, as may be needed in twocolumn documents. |
sizespec can come in two variants: either as symbolic or as hard coordinates.
Table 6:Size specs
| Spec | Meaning |
|---|---|
| wXh | Hard absolute width by height (both can have units) |
| 2cmX3cm | 2 by 3 cm |
| th | LaTeX Text Height (can also be used as unit) |
| tw | LaTeX Text Width (can also be used as unit) |
| 1twX1thS | S is the stretch flag |
| n | Natural, size taken from image itself (no forced resize) |
| 1 | The default, corresponds to 1twX1th |
| 15 | 1.5, 67% size |
| 2 | Half size (50%) |
| 3 | Third size (33%) |
| 4 | Quarter size (25%) |
| 8 | Eigth size (12.5%) |
trimspec permits image to be cropped. It has format
L1B2R3T4
where first number specifies number of points to trim from left, second number specifies the points to trim from bottom, the third number specifies the points to trim on right, and the fourth number specifies how much to trim from top. Use this option for cropping badly behaving eps images (e.g. if original image is missing bounding box and ends up occupying a whole page).
If you are frustrated with LaTeX floats going all over the place, try
<<img: foo.png,R,n: >>
This causes Raw positioning (without float) and uses "natural" image size, i.e. whatever the original size of the image is, without any attempt to squeeze or stretch the image. Note that if you use R, you MUST NOT supply caption. If you use this approach and are not happy with image size, you should edit your image in your favorite image editor (this exercise may make you eventually appreciate the built-in scaling features).