Feed on

here’s a quick bit of sample code for making a table in latex. note that i’ve left out things like vertical and horizontal lines for now; it’s really late at night.

& \mbox{wild-type} & \mbox{mutant} \\

C_1 & 0.9035 & 0.9328 \\

C_2 [\mbox{ M}^{-1}] & 0.0003 & -0.0001 \\

C_3 & 0.0259 & 0.1071 \\

K_d \mbox{ [M}] & 1.0939 & 1.1822 \\


note that the {ccc} following the \begin{array} tells you that there will be 3 columns, each of whose contents will be centered (hence the c’s). the ampersands separate columns and \\ denote newlines. the result of the above sample is the following:

Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

2 Responses to “make a table in latex”

  1. on 05 Jul 2006 at 12:11 am Anonymous

    I wish I knew how to draw vertical and horizontal lines for a table in LaTex. Thanks, anyways.

  2. on 12 Jul 2007 at 9:04 am anon`

    horizonatl lines are made using the command \hline at the end of the line and veritcal lines are made by placing the | symbol in bteween where you want the clumns to have vertical lines so \begin{array}{ccc} becomes \begin{array}{|ccc|} to give vertical lines at either side of the table.

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.