<!doctype html public "-//W30//DTD W3 HTML 2.0//EN">
<HTML>
<!-- This file was generated using SDF 2.001 by
Ian Clatworthy (ianc@mincom.com). SDF is freely
available from http://www.mincom.com/mtr/sdf. -->
<HEAD>
<TITLE>SDF 2.001: SDF User Guide: Adding Table Titles</TITLE>
<STYLE TYPE="text/css">
<!--
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
-->
</STYLE>
</HEAD>
<BODY BGCOLOR="ffffff">
<DIV CLASS="header">
<P><IMG SRC="../sdflogo.gif" ALIGN="Right"></P>
<DIV CLASS="navigate">
<P ALIGN="Center"><A HREF="ug_sdf.html">Contents</A> | <A HREF="in_tb.html">Parent Topic</A> | <A HREF="in_tbsty.html">Previous Topic</A> | <A HREF="in_tbsiz.html">Next Topic</A> <BR><A HREF="../index.html">Home</A> | <A HREF="../catalog.html">Catalog</A></P>
</DIV>
<BR CLEAR="Right">
</DIV>
<DIV CLASS="main">
<H1>5.3. Adding Table Titles</H1>
<HR>
<H2><A NAME="Adding a Title to a Table">5.3.1. Adding a Title to a Table</A></H2>
<P>To add a title, use the <EM>title</EM> attribute. For example:</P>
<PRE>
!block table; title="Phone numbers of good friends"
Name Phone
Bill 123 4567
Joe 789 1234
Mary 584 3333
!endblock
</PRE>
<P>The output is:</P>
<TABLE CLASS="columns" BORDER>
<CAPTION ALIGN=top>Phone numbers of good friends</CAPTION>
<TR CLASS="heading">
<TD>
<STRONG>Name</STRONG>
</TD>
<TD>
<STRONG>Phone</STRONG>
</TD>
</TR>
<TR>
<TD>
Bill
</TD>
<TD>
123 4567
</TD>
</TR>
<TR>
<TD>
Joe
</TD>
<TD>
789 1234
</TD>
</TR>
<TR>
<TD>
Mary
</TD>
<TD>
584 3333
</TD>
</TR>
</TABLE>
<HR>
<H2><A NAME="Adding a Title to a Psuedo Table">5.3.2. Adding a Title to a Psuedo Table</A></H2>
<P>Occasionally, it is useful to title a table by hand. To do this, use the TT (Table Title) paragraph style. For example:</P>
<PRE>
TT: My Boring Looking Table
!include "my_table.txt"; example; wide
</PRE>
<HR>
<H2><A NAME="Generating a List of Tables">5.3.3. Generating a List of Tables</A></H2>
<P>A list of tables can be generated from the table titles. To do this, set the <EM>DOC_LOT</EM> variable. For example:</P>
<PRE>
# Build the title
!define DOC_NAME "World Peace in 60 Days"
!define DOC_LOT
!build_title
</PRE>
<P>This will generate a list of tables after the table of contents.</P>
<HR>
<H2><A NAME="Changing the List of Tables Title">5.3.4. Changing the List of Tables Title</A></H2>
<P>The default title for the list of tables is "List of Tables". To change this, set the DOC_LOT_TITLE. For example:</P>
<PRE>
!define DOC_LOT_TITLE "Tables"
</PRE>
</DIV>
<DIV CLASS="footer">
<DIV CLASS="navigate">
<P ALIGN="Center"><A HREF="ug_sdf.html">Contents</A> | <A HREF="in_tb.html">Parent Topic</A> | <A HREF="in_tbsty.html">Previous Topic</A> | <A HREF="in_tbsiz.html">Next Topic</A> <BR><A HREF="../index.html">Home</A> | <A HREF="../catalog.html">Catalog</A></P>
</DIV>
</DIV>
</BODY>
</HTML>