7 Figure Environments

7.1 Supported Environments

To display PostScript figures in the document, we recommend the graphicx or epsf packages. They are activated by adding the lines

\usepackage{epsf}
\usepackage{graphicx}

in the header of the article. These packages can be used to display both PostScript and Encapsulated PostScript figures. We discourage authors from using the psfig package, as this may cause converter problems.

If you are using the graphicx package, you might also submit other image formats (preferably PDF).

7.2 Images

A straightforward way to include an image is demonstrated here:

View Image

Figure 1: Distribution of the quantities ϕ, u and γ on the numerical grid.
Figure 1View Image is generated using the command sequence in exImage.tex.
exImage.tex
View File Download File
Here figure.eps (see Line 3 of exImage.tex) is the name of the PostScript file. In Line 3 one can also set the scaling factor (here 0.8, which means scaling to 80% of the original size). The option [h] in Line 2 instructs LATEX to position the figure right at the place where the figure environment stands in the source with reference to the surrounding text paragraphs. Other options are [t] or [b] which position the figure at the top or bottom of the page, resp.

Please add a caption to every figure. Labels for referencing the figure are also obligatory.

Recently, we added support for the graphics package. This allows you to insert a figure using the well-known includegraphics command. You need to insert the usepackage{graphicx} after the usepackage{epubtk}.1

View Image

Figure 2: A figure included using includegraphics.
Figure 2View Image is generated using the command sequence in exImage2.tex.
exImage2.tex
View File Download File
Note that you should not provide a suffix for the figure in the \includegraphics command. You need to provide proper versions of the graphics, i.e. a rasterized version as the first parameter of epubtkImage and a pdf, png or jpg for inclusion in the pdf. Furthermore, it is possible to build a figure out of several independant subfigures without first combining them to a single figure:
View Image

Figure 3: A figure composed from several subfigures.
The source code for this example is available in exImage3.tex:
exImage3.tex
View File Download File

7.3 Movies

Movies (e.g. mpeg files) are supported as follows. A still from the movie has to be provided for the print versions of the article, while the movie itself will be linked from the online version of the article.

An example and the interface to include a movie in the article is shown below:

Watch/download Movie

Figure 4: mpeg-Movie (711 KB) An animation of the time evolution of the entropy in a core collapse supernova explosion. Visualization by Konstantinos Kifonidis. Movie taken from http://www.livingreviews.org/lrr-2003-4.
Figure 4Watch/download Movie is generated using the command sequence in exMovie.tex.
exMovie.tex
View File Download File
Note the wording of the caption text. The text given in the LATEX-source (Line 5) will be expanded to Still from a movie showing in the print versions (see 4Watch/download Movie), while only the word “Movie” together with some file format and size information is added in the online version.
  Go to previous page Go up Go to next page