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

# 5.3. Adding Table Titles

## 5.3.1. Adding a Title to a Table

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

    !block table; title="Phone numbers of good friends"
    Name   Phone
    Bill   123 4567
    Joe    789 1234
    Mary   584 3333
    !endblock

The output is:

Phone numbers of good friends
Name | Phone
Bill | 123 4567
Joe | 789 1234
Mary | 584 3333

## 5.3.2. Adding a Title to a Psuedo Table

Occasionally, it is useful to title a table by hand. To do this, use the TT (Table Title) paragraph style. For example:

       TT: My Boring Looking Table
       !include "my_table.txt"; example; wide

## 5.3.3. Generating a List of Tables

A list of tables can be generated from the table titles. To do this, set the DOC_LOT variable. For example:

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

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

## 5.3.4. Changing the List of Tables Title

The default title for the list of tables is "List of Tables". To change this, set the DOC_LOT_TITLE. For example:

    !define DOC_LOT_TITLE "Tables"