Fig.[fig:erptsqfit] is your basic picture. The [htp] command works like usual to tell LaTeX how to position the graphic in the text.

The placement specifier p lets the figure take up a full page without waiting until the end of the chapter

centering tells LaTeX to centre everything within the graphics environment.

includegraphics is your basic command to include a graphics object. (The bits in […] shown below are various options that can be omitted. In the curly brackets is the name of the file you want included.) As you can see the extension of the graphics filename is omitted – LaTeX looks for this file with various possible extensions – .eps, .ps, … (Note: LaTeX will look for filename.ps before filename.eps.)

the most important option in […] is the size. There are a few choices that are useful …

[width=xxx cm], … [height=xxx cm], etc.

A slightly more complicated version looks like the below example. This is used to select only a portion of your picture, and the part of the caption in square brackets is taken as the caption in a list of figures. This means that you can format the caption that appears with your figure differently to the way it will appear in the list of figures. Also, the figure caption will typically be longer, and more detailed than that which appears in the list of figures.

The most useful option to use, I find, is to set the width or height you want your picture scaled to to be some fraction of the textwidth or height, as is done in the above, where we have [totalheight=0.8\textheight], that is, the total height of the figure is set to 80\,\% of the height of the text on a normal page of typing.

The viewport command needs some fiddling with to get right – if you choose to use it at all (you need it for mathematica files as they are saved very very poorly as PS files). Basically it’s the number of points to take off the top, left, bottom, right, in that order, I think. You just have to play around and see. The idea is, it takes this much space off all around the document, leaving only the inside bit that is what you want to see in your document. You need the “clip” command to force LaTeX to ignore the stuff outside the limits you specify by “viewport”.

The stuff in […] in the caption command tells LaTeX what to put in the table of contents. Otherwise is just uses the stuff in the curly brackets if you omit […]. The stuff in curly brackets is what appears as your figure caption.

Multiple figures

Multiple figures can be inserted in this manner (where here I have just used the same figure several times). The \hfill command gives you a nice spacing between the figures.