Adding captions to graphics

From Apache OpenOffice Wiki
Jump to: navigation, search


You can add captions to graphics in three ways: automatically, by using the Caption dialog box, or manually.

Adding captions automatically

You can set up OOo to add captions automatically whenever you insert a graphic, a table, or other objects into a document. You can choose which objects are captioned automatically, what the sequence name is for each caption (for example, “Table” or “Illustration”), and the position of the caption.

To set up automatic captions:

  1. Click Tools > Options > OpenOffice.org Writer. Click on the + sign to open the different options. The Options – OpenOffice.org Writer – AutoCaption dialog box opens.
  2. Select AutoCaption. Now you can see several choices at the right of the dialog box for adding captions automatically.
  3. On the AutoCaption dialog box, choose which objects will be automatically captioned and specify the characteristics of the captions.

For more information, see "AutoCaption options” in Chapter 2 (Setting up Writer).

When you insert a graphic, if automatic captioning is enabled, the graphic will be placed in a frame along with a caption containing the default sequence name for graphics―Illustration. Position the cursor in the caption area and type the text for the caption. You can change the sequence name by selecting one from the drop-down Category list.

Documentation note.png You can specify where to place an automatic caption for any object except a picture; picture captions can only be automatically placed below the picture. If you need a caption above the picture (for example, for data plots in scientific publications), you must add the captions manually, as described in Adding captions manually.
Tip.png A common sequence name—Figure—is not one of the names provided: <None>, Drawing, Illustration, Table, and Text. If you want a custom name for your graphics, do the following:
  1. Open the Options – OpenOffice.org Writer—AutoCaption dialog box, described above.
  2. Under the Add captions automatically when inserting section, check OpenOffice.org Writer Picture.
  3. With the mouse, highlight the text Add captions automatically when inserting, if it is not already highlighted. This actives the Caption area in the dialog box for pictures (graphics).
  4. Under the Category drop-down list, enter the name that you want added (say, Figure), by overwriting any sequence name in the list. (Overwriting the term will not delete it from the drop-down list.) You can also set some options for the number style and for a separator between the name and the number, if desired. Click OK to save the changes.


Using the Caption dialog box

To add captions using the Caption dialog box:

  1. Insert the graphic, then select it and click Insert > Caption.
  2. Under Properties on the Caption dialog box, make your selections for the Category, Numbering, and Separator fields (Illustration, Arabic (1 2 3), and a colon (:), respectively, for the example in the figure) and type your caption text in the Caption text box at the top. Whatever text you enter for the caption appears in the box at the bottom, after the sequence name, number, and separator.
  3. Defining the caption
    Defining the caption for an illustration

    Tip.png In the Category box, you can type any name you want, for example, Figure. OOo will create a numbering sequence using that name.


  4. Click OK. The graphic and its caption are placed in a frame, as shown below.
  5. Example of graphic and caption
    An example of a graphic and its caption contained in a frame. The outer box shows the edge of the frame; this border is normally set to be invisible.

Adding captions manually

You can add a caption to a graphic manually in two ways.

Method 1: Override the category and positioning defaults for captions

  1. Select the picture, right-click on it, and select Caption.
  2. On the Caption dialog box, select <None> in the Category list and click OK.
  3. Right-click on the picture and select Caption. Now you can select a caption type (or type your own sequence category) in the Category drop-down list and, optionally, select Above in the Position list. (If you want the caption to appear at the top, you must add the caption manually.) You can type the actual caption in the box under Caption or you can fill it in later—after the (incomplete) caption is inserted.
  4. Click OK.
Documentation note.png If you want the caption to appear at the bottom, you can skip step 2 and the first part of step 3.

Method 2: Place the graphic and its caption in separate paragraphs

  1. Insert the graphic and anchor it to its paragraph as a character. Press Enter to create a new paragraph for the caption.
  2. In the caption paragraph, type, for example, Figure and add a space.
  3. To insert the figure number, click Insert > Fields > Other and select the Variables tab.
  4. Select Number range in the Type list. Select Figure in the Selection list and choose, for example, Arabic (1 2 3) in the Format drop-down list. Click the Insert button.
  5. A number will appear after the word “Figure” in the caption. Now, type the text of the caption.
Tip.png If you are manually adding captions to a lot of figures using Method 2, you might want to make an AutoText entry containing, for example, Figure and a space, the figure-number field, and an optional separator and a space after it.

You can also place the caption paragraph before (above) the picture paragraph. Using AutoText can be a convenient way to deal with the lack of automatic captioning above pictures.


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools