Skip to content

ned.com

Sections
Personal tools
You are here: Groups > Help > Workspace > Creating Tables
Not yet a member?
Sign in
Email address
  
Password
  
Forgot password?
No SSL support?

Help: Creating Tables

Subsections

UP | Help Index

see also: csv tables, Punctuation Help and Punctuation Help, More Formatting

Warning

Creating tables on ned.com is not for the faint of heart.

While the results can be satisfying, the method to achieve them has been known to cause hair loss.

Overview

The trick to creating tables on ned.com is to keep in mind how the table would look in plain text. Any given cell within the table can only be one unit wide by one unit tall (you can't have a cell span more than one column or row). All columns must be left-aligned, and each column must be separated by at least one space.

Parts of a Table

A table consists of three parts:

  1. The header: Every column in a table MUST have a header explaining what's below.
  2. The boundary symbols: These are equal signs (=) that delineate how wide the columns are and where the table begins and ends.
  3. The cell contents: The text that's going to appear within a table.

Example 1: Simple two-column table

Here's a simple two column table with the parts labeled:

======== ======== <-- the top table boundary
Header 1 Header 2 <-- the header line
======== ======== <-- the bottom of the header boundary
cell 1A  cell 2A  <-- the cell contents
cell 1B  cell 2B  <--  these can be as long as you want
cell 1C  cell 2C  <--  they'll keep going until the table boundary line
======== ======== <-- the bottom table boundary

And here's what it looks like fully rendered:

Header 1 Header 2
cell 1A cell 2A
cell 1B cell 2B
cell 1C cell 2C

Example 2: A multi-column table

This next example shows three things:

  1. The boundary for the last column only needs to be five "=" long.
  2. Every column EXCEPT the last column must be as wide as the widest cell contents. (see row FIRST below)
  3. You can see that the last column in a table can be as wide as the page, and the contents of the right-most column can even wrap to the next line in the same cell. (see row THIRD below)

So, if you make your table look like this:

====== ============ ======
short  wide column  really wide column
====== ============ ======
FIRST  This is wide But this is the widest column of all
Second So is this   And now you see that this column can go a little longer.
THIRD  and this is  You can see that the last column can stretch, just so long as you don't hit the return key.
====== ============ ======

It will render like this:

short wide column really wide column
FIRST This is wide But this is the widest column of all
Second So is this And now you see that this column can go a little longer.
THIRD and this is You can see that the last column can stretch, just so long as you don't hit the return key.

CVS Table example: ------------:

.. csv-table:: Variable Title
 :widths: 8,8,20
 :header: "Name of Functionality Desired","Workaround","Test"
 :delim: ;

 stuff;morestuff;moststuff
 ;;
 ;;
 ;;

Renders to this:

Variable Title
Name of Functionality Desired Workaround Test
stuff morestuff moststuff
     
     
     

For more advanced table techniques

We have used reStructuredText (RST) as our markup language. If you're inclined to understand technical documentation, more detailed table formatting can be found here at reStructuredText


Page name: Creating Tables
Last editor: Linda Nowakowski (230)
Date: Sat, 15 Sep 2007 23:29:48 PDT
Feedback score: 0

edit   revisions   backlinks   top top  

top back to top of page