Latex 表格

Latex 表格
\begin{tabular}{|c|c|c|c|c|c|}
\hline 
Accuracy & General & test 1 & test 2 & test 3 & test 4\tabularnewline
\hline 

Linear  & 0.8950695  & 0.8817864 & 0.8884132  & 0.8884036  & 0.9217801
\tabularnewline
\hline 

Polynomial Degree=2 & 0.927821  & 0.9118337 & 0.934325 & 0.913003 &
0.9335226\tabularnewline
\hline 
Polynomial Degree=2 & 0.8350725  & 0.8317865 & 0.8285052  & 0.8278306  &
0.852091
\tabularnewline
\hline 
Polynomial Degree=3 & 0.770894 & 0.7539803  & 0.7510282 &  0.7762011 &
0.7821553\tabularnewline
\hline 
Polynomial Degree=4 & 0.7172013 & 0.685079 & 0.6988003 & 0.7329987 &
0.7520278\tabularnewline

\hline 
\end{tabular}


=========================


  • Type one:

%%%%%%%%%%简单表格%%%%%%%%%%

\begin{tabular}{|c|c|}

\hline

a & b \\\hline

c & d\\

\hline

\end{tabular}

 

  • Type two:

%%%%%%%%%%简单表格,居中(一)%%%%%%%%%%

\begin{center}

\begin{tabular}{|c|c|}

\hline

a & b \\\hline

c & d\\

\hline

\end{tabular}

\end{center}

 

  • Type three:

%%%%%%%%%%简单表格,居中(二)%%%%%%%%%%

\centering

\begin{tabular}{|c|c|}

\hline

a & b \\\hline

c & d\\

\hline

\end{tabular}

This a Table~ ??

 

  • Type four:

%%%%%%%%%%简单表格,居中,标题,编号,固定位置%%%%%%%%%%

\begin{table}[h]

\centering

\caption{table}\label{tab:table}

\begin{tabular}{|c|c|}

\hline

a & b \\\hline

c & d\\

\hline

\end{tabular}

\end{table}

  • Type five:

%%%%%%%%%%一个完整的例子%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%Beginning of Table example%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{table}[ht]

\caption{Review paper} % title of Table

\centering % used for centering table

\begin{tabular}{|c|c|} % centered columns (2 columns)

\hline\hline %inserts double horizontal lines

Item 1 & Item 2 \\ [0.5ex] % inserts table heading

\hline % inserts single horizontal line

a & b \\ % inserting body of the table

c & d \\

e & f \\[1.5ex] % [1.5ex] adds vertical space

\hline %inserts single line

\end{tabular}

\label{table:nonlin} % is used to refer this table in the text

\end{table}

%%%%%%%%%%%%%%%%%% end of the example%%%%%%%%%%%%%%%%%%%%%%%%%

你可能感兴趣的:(Latex 表格)