02 Mei 2011

basic table in latex



Here is a quite basic plus table creation in latex

\begin{tabular}{|l|l|l|l|l|l|l|l|}  \hline
& & &\multicolumn{5}{|c|}{Internalsinl} \\ \cline{4-8}
ID&Art&Test& aa1,12bb&aa1,100bb&aa1,1ujbb&aa1,1uj0bb&aa1,1ujbb $\cup$ \\
& & & & & & & aa1001,1uj0bb \\ \hline
Axd &Thi s time &Ex spr & hjtp & hjtp & hjtp & hjtp & hjtp \\ \cline{3-8}
&fora frica &Vale & 80 & hjtp & 1xd2& 6d44& 628r \\
& os bam b & & & & & & \\ \hline
Dxd &Waakaka &Expqr & xd2 & xd2 & xd2 & xd2 & xd2 \\ \cline{3-8}
&euey eee &Valy & xd6 & xd6 & 4x8 & 1f16& 1g12 \\ \hline
\end{tabular}

  • First line {|l ....|} determines the column, possible value "l/r/c", and without "|" means without vertical line
  • "&" separate each item in column
  • "cline" line on certain column
  • "hline" horizontal line entire column
  • beware of the number of "&" on each line,
  • every line ends with "\\"