[OS X TeX] Draw a table

Alan Munn amunn at gmx.com
Thu May 5 16:10:47 CEST 2011

On May 5, 2011, at 9:58 AM, Alireza Dehghani wrote:

> Hello, 
> i am new to LaTex and for my proposal, i need to draw a table (shown in the attached file) with the title of the table on top of it. 
> i need the source code for this plz. 

It seems that for such a basic question you should probably consult many of the good free resources on the web such as the latex wiki book.  It's section on tables is quite complete:


The placement of the caption is simply determined by where you place the \caption command within the table environment: if you do

\caption{The caption}

the caption will appear above the table.  If you put the \caption command after the \end{tabular} it will appear below the table.

I would highly recommend using the booktabs package for any tables, and removing most of the lines (both vertical and horizontal) in your table.

If you are using TeXShop to edit, you can construct the cells of your table in Excel and then use the Paste Spreadsheet Cells macro to paste them into your source.  If you choose the booktabs format, it will format the table nicely.

Since you have one column with decimals, the dcolumn package is useful for having the decimals line up correctly (or use siunitx which does this too, plus a whole lot more for formatting scientific units correctly.)


Alan Munn
amunn at gmx.com

More information about the macostex-archives mailing list