Graphics, Figures & TablesTable Formatting

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
guess85
Posts: 2
Joined: Sun Aug 14, 2011 9:13 pm

Table Formatting

Post by guess85 »

Hi all.
I need to write a table that have this aspect:

Code: Select all

 ____________________________________________________________
|       |_______1000________|____10000_______|___20000_______|
| meas. |0.1  | 0.01 | 0.001| 0.1 |0.01|0.001| 0.1|0.01|0.001|
|_______|_____|______|______|_____|____|_____|____|____|_____|
| e     | 34  |453   |43563 | 3454|65  |63   |4534|4534|434  |
  
I use superabular enviornment, but I don't understand how set the header. I write this, but it doesn't work:

Code: Select all

\multicolumn{1}{|c|}{Distance measure} & \multicolumn{3}{c|}{1000 iterations}&{10000 iterations}&{20000 iterations} \\ \cline{2-10} & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 \\ \hline
}
Anyone can help me pleas? Thanks!
Last edited by guess85 on Mon Aug 15, 2011 7:09 pm, edited 3 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Table Formatting

Post by Stefan Kottwitz »

Hi,

perhaps show the complete code of your table (without real content) in a small compilable example. So our fellow users can test and improve it. Otherwise it's quite theoretical and nobody can make a verified suggestion without creating such a table code on its own.

Stefan
LaTeX.org admin
guess85
Posts: 2
Joined: Sun Aug 14, 2011 9:13 pm

Table Formatting

Post by guess85 »

Hi, trying to modify something, I have found a way to resolve. I post the code if someone are interested.

Code: Select all

\begin{center}
\small
\tablefirsthead{%
\hline
\multicolumn{11}{|c|}{SOM performance} \\ \hline
\multicolumn{1}{|c|}{Cluster number} & \multicolumn{1}{c|}{Distance measure} & \multicolumn{3}{c|}{1000 iterations}& \multicolumn{3}{c|}{10000 iterations}& \multicolumn{3}{c|}{20000 iterations} \\ \cline{3-11}& & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 \\ \hline
}
\tablehead{%
\hline
\multicolumn{11}{|l|}{\small\sl Continued from previous page}\\
\hline
\multicolumn{11}{|c|}{SOM performance} \\ \hline
\multicolumn{1}{|c|}{Cluster number} & \multicolumn{1}{c|}{Distance measure} & \multicolumn{3}{c|}{1000 iterations}& \multicolumn{3}{c|}{10000 iterations}& \multicolumn{3}{c|}{20000 iterations} \\ \cline{3-11} & & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 & $\tau$ 0.2 & $\tau$ 0.02 & $\tau$ 0.002 \\ \hline
}
\tabletail{%
\hline
\multicolumn{11}{|r|}{\small\sl Continued on the next page}\\
\hline}
\tablelasttail{\hline}
\bottomcaption{Best Performance of the SOM clustering in terms of the word error rate (WER)}
\label{tab:SOMBest}
\begin{supertabular}{|c|c|c|c|c|c|c|c|c|c|c|}
\multirow{2}{*}{$1679$} & Correlation & 47,54\%  & 50,97\%  & 66,09\%  & 44,24\%  & 46,52\%  & 52,74\%  & \textbf{41,91\%}  & 45,31\%  & 50,61\%  \\ \cline{2-11}
& Abs. value of corr. & 47,54\%  & 50,97\%  & 66,09\%  & 44,24\%  & 46,52\%  & 52,74\%  & \textbf{41,91\%}  & 45,31\%  & 50,61\%  \\ \hline
\multirow{2}{*}{$1000$} & Correlation & 47,54\%  & 50,97\%  & 66,09\%  & 44,24\%  & 46,52\%  & 52,74\%  & \textbf{41,91\%}  & 45,31\%  & 50,61\%  \\ \cline{2-11}
& Abs. value of corr. & 47,54\%  & 50,97\%  & 66,09\%  & 44,24\%  & 46,52\%  & 52,74\%  & \textbf{41,91\%}  & 45,31\%  & 50,61\% \\ \hline
\multirow{2}{*}{$800$} & Correlation & 47,54\%  & 50,97\%  & 66,09\%  & 44,24\%  & 46,52\%  & 52,74\%  & \textbf{41,91\%}  & 45,31\%  & 50,61\%  \\ \cline{2-11}
& Abs. value of corr. & 47,54\%  & 50,97\%  & 66,09\%  & 44,24\%  & 46,52\%  & 52,74\%  & \textbf{41,91\%}  & 45,31\%  & 50,61\% \\ \hline
\end{supertabular}
\end{center}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Table Formatting

Post by Stefan Kottwitz »

Nice, thanks for sharing the solution!

It would be great if you mark the question as solved then. This helps us to see the still open questions. Just edit your first post in this thread (the question) and choose the checkmark symbol as topic icon.

Stefan
LaTeX.org admin
Post Reply