Send As SMS

3/21/2006

make a table in latex

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.

\begin{center}
$\begin{array}{ccc}
& \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 \ \end{array}
$\end{center}
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:


1 Comments:

Anonymous said...

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

7/05/2006 12:11:06 AM  

Post a Comment

Links to this post:

Create a Link

<< Home

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://stinkpot.afraid.org:8080/tricks/ and update your bookmarks.