Up: Elements reference



<graphics>

Attributes:

file
filename without extension (required)
scale
scaling factor
kind
type of source image, "vector", "bitmap", "overlay" or "diagram" (required)
basefontsize
assumed font size within the graphics (default: same as in document)
xml:lang
human language (inherited)
id
unique name (identifier)
style/class
style properties and class (e.g. for CSS)

Possible Contents: psfrag*

Description:

This includes a graphics that is taken from file (without file name extension). kind is interpreted as follows:

"vector"
is an EPS file with correct bounding box.
"bitmap"
is a JPEG bitmap with correct dpi resolution information.
"overlay"
is a JPEG bitmap like "bitmap" with an equally big EPS vector image that is printed over the bitmap as a label layer. The EPS file has the file name file plus an `l'.
"diagram"
is a LaTeX fragment read in directly. It may be e.g. Gnuplot output.

Eventually the XML processor must see how to interpret kind. I explain here the way the current tbook tools go.

basefontsize may be "10pt", "11pt" or "12pt". Sometimes one changes the global font size in a document which may make all Psfrag labels look ugly, namely too big or too small. Or one graphics migrate from one document to another with a different main font size. With basefontsize you can switch locally to the old font size. Of course, you can also use this attribute to change the label size for a certain graphics.

Example

     <graphics kind="overlay" file="wafer1">
       <psfrag tag="GaAs"><ch>GaAs</ch></psfrag>
       <psfrag tag="AlAs"><ch>AlAs</ch></psfrag>
       <psfrag tag="4mu"><unit>4 &micro;m</unit></psfrag>
       <psfrag tag="top layer"/>
     </graphics>