## make a table in latex

March 21st, 2006 by Lawrence David

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:

on 05 Jul 2006 at 12:11 amAnonymousI wish I knew how to draw vertical and horizontal lines for a table in LaTex. Thanks, anyways.

on 12 Jul 2007 at 9:04 amanon`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.