LaTeX Table Generator Example

Here is an example of table entry. In this case there are 5 columns separated by a double space (note that an example like Persian Gulf is a single entry with the two words separated by a single space). Click submit to produce the corresponding TeX table.


Table Columns:                   Text of Table:

Optional Customization Settings:

Table Style:    Bold 1st Row:     Bold 1st Col: 
Caption: 
Label:      Extra Row Spacing:      Extra Horizontal Padding:  
Vertical Stretch Factor:    Horizontal Cell Alignment:
Font Size:    Preferred Float Position:
Custom Format String:  
Footnote:  
Optional Delimiter Character:   (Default is space or tab)
       


Description of Customization Options:

General comments: Table entries must be valid LaTeX. The table will be compiled by LaTeX and you will be warned if there are compilation errors. Generally, you should be able to use any valid LaTeX for table entries that does not conflict with the assumed delimiters for table columns. Note that you can set a custom delimiter below if the default of white space is a problem.

Columns: Number of columns in table. This entry is mandatory.

Table Style: Choose between styles with horizontal and vertical lines and "book styles" with no vertical and minimal horizontal lines. Default is "bookstyle". This can be over-ridden with the Custom Format String below.

Bold 1st Row: If "yes", this assumes the first row of the table (after the caption if it is at the top) is a row of labels for the columns and makes them bold. Default value is "yes".

Bold 1st Column: If "yes", this makes the left-most column of the table bold. Default value is "no".

Caption: Caption for the table.

Label: The LaTeX referencing label for the table. Default is "none", which inserts no label. The table can be referenced in LaTeX using \ref{label}.

Extra Row Spacing: The amount of extra spacing between rows in points (72 points per inch, approximately). This, as well as Vertical Stretch Factor below, can be used to stretch the table out vertically (you probably don't need to use both; one or the other should be sufficient). Default value is 0 points.

Extra Horizontal Spacing: Extra horizontal spacing in points (~ 72 points/inch) between each table column. Default value is 0 points..

Vertical Stretch Factor: Factor to stretch the table in the vertical direction. Use either this or Extra Row Spacing above to spread out the lines of the table. Default value is 1.00.

Horizontal Cell Alignment: Alignment of individual table entries horizontally (choices are left, center, right; default is center). Choice is global for all table entries. This can be over-ridden with the Custom Format String option below.

Font Size: The font size for the main body of the table. Options in order of decreasing size are the LaTeX choices Large, large, normal, small, and footnotesize; default value is "normal". The actual font size depends on the LaTeX environment.

Preferred Float Position: Table is constructed as a floating body. The preferred position for insertion of this float is set by this button. Choices are top, here, bottom, and page of floats. The choice "here" forces insertion of the table at the point in the text where the table appears (if this is consistent with TeX page makeup); the other choices tell LaTeX to favor putting the table on the next available page top, page bottom, or separate page containing only floats (figures and tables). Note that since TeX is a typesetting language, these choices only give it suggestions. It will do what it damn well pleases about where the table actually goes.

Custom Format String: If this is other than "none", it is interpreted as a custom horizontal formatting string and passed to the table as an argument: \begin{tabular}{custom formatting string}. This over-rides choices above concerning horizontal spacing and whether the table has vertical lines and allows full custom specification of the horizontal layout. Example: the string ||r|r|c| would produce a table with two adjacent vertical lines on the left, two right aligned columns, and one centered column, with each column separated by vertical lines, and a vertical line on the right. More sophisticated formatting is possible; see the LaTeX documentation for the tabular environment.

Footnote: If this field contains text other than "none" the text will be inserted below the table as a footnote. Presently, the length of the footnote is limited to the width of the table. If the footnote is too long for the table environment it will be cut off on the right. Default value for this field is "none".

Optional Delimiter Character: The default delimiters for table columns are spaces or tabs. This can be changed by putting a non-blank entry in this field (for example, a comma or a colon). Then all entries in the rows of the table should be separated by this delimiter (and an abitrary amount of space). You may choose any character for a delimiter as long as it does not appear in the text of the table. Notice that if you erase this field without typing anything into it you will get error messages because the null character and a blank space may look the same to you but not to the computer.