Contents | Parent Topic | Previous Topic | Next Topic
Home | Catalog

# 4.3. Adding Figure Titles

## 4.3.1. Adding a Title to a Figure

To add a title, use the title attribute of the import macro. For example:

      !import "growth"; title="Predicted Growth"

## 4.3.2. Adding a Title to a Psuedo Figure

Occasionally, it is useful to label a source code example or ASCII graphic with a title. To do this, use the FT (Figure Title) paragraph style. For example:

       FT: Source code for main.c
       !include "main.c"; example; lang='C'

## 4.3.3. Generating a List of Figures

A list of figures can be generated from the figure titles. To do this, set the DOC_LOF variable. For example:

    # Build the title
    !define DOC_NAME "World Peace in 60 Days"
    !define DOC_LOF
    !build_title

This will generate a list of figures after the table of contents.

## 4.3.4. Changing the List of Figures Title

The default title for the list of figures is "List of Figures". To change this, set the DOC_LOF_TITLE. For example:

    !define DOC_LOF_TITLE "Figures"