Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to make a table like this in the image please can someone tell how I can do thatenter image description here

    \begin{table}[!h]
\begin{center}
\begin{tabular}{l|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}}
\cline{2-10}
&\multicolumn{3}{|c|} {\bf $N_{min}$ Amis }& \multicolumn{3}{|c|} {\bf $N_{moy}$ Amis  }& \multicolumn{3}{|c|} {\bf $N_{max}$ Amis }\\ %\multicolumn{2}{|p{2.5cm}|} {\bf 750 Pages }& %\multicolumn{2}{|p{2.5cm}|} {\bf 1000 Pages }\\
\cline{2-10}
& \bf AS& \bf A\& A & \bf Pub& \bf AS& \bf A\& A & \bf Pub & \bf AS & \bf A\& A & \bf Pub \\
\hline



\multicolumn{1}{|l|}{$N_{moy}$ Amis} &\bf 25.66& \bf 26.66& \bf 27&\bf 33& \bf 33& \bf 33& \bf 39.66& \bf 39.66& \bf 39.5\\
\hline
\multicolumn{1}{|p{3.5cm}|}{Moy Pages cibles } &\bf 25.66& \bf 62& \bf 100& \bf 33& \bf 71.33& \bf 100& \bf 39.66& \bf 80.33& \bf 100\\

\hline

\end{tabular}
\end{center}

\bf{\caption{Partager Publication dans le réseau 1}}
\end{table}
share|improve this question
    
but the code that I propose is right but it is missing a column in the left before Nmoy Min and Nb Pages cibles –  boutheina May 9 '12 at 21:48
    
I modify the image do you understand what I want? –  boutheina May 9 '12 at 21:58
add comment

1 Answer

up vote 4 down vote accepted

It is virtually impossible to rela te your image to the posted code, but anyway I offer this, if it is not what you need then please edit the question to make it clearer. Also please note that \bf is an obsolete command (and even when used never takes an argument. It is not \bf{...} but {\bf ...} or better \bfseries.

enter image description here

\documentclass{article}



\begin{document}



\noindent X\dotfill X

\begin{table}[htbp]
\centering
\footnotesize
\bfseries

\hspace*{-2cm}\begin{tabular}{|l|l|*{11}{p{.8cm}|}}
\cline{3-11}
\multicolumn{2}{l|}{}&\multicolumn{3}{|c|} { $N_{min}$ Amis }& \multicolumn{3}{c|} { $N_{moy}$ Amis  }& \multicolumn{3}{c|} { $N_{max}$ Amis }\\ 
\cline{3-11}
\multicolumn{2}{l|}{}&  AS&  A\&A &  Pub&  AS&  A\&A &  Pub &  AS &  A\&A &  Pub \\
\hline
\raisebox{-5pt}{xxx}&$N_{moy}$ Amis & 25.66&  26.66&  27& 33&  33&  33&  39.66&  39.66&  39.5\\
\cline{2-11}
 &Moy Pages cibles & 25.66&  62&  100&  33&  71.33&  100&  39.66&  80.33&  100\\
\hline
\end{tabular}\hspace*{-2cm}
\end{table}

\noindent X\dotfill X

\end{document}
share|improve this answer
    
the code that you suggest gives the same result of the code that I proposed. But I want that before the two columns entitled N moyAmis Nb pages cibles we add a new cell that contain Num Réseau –  boutheina May 9 '12 at 23:03
2  
the code here fits on the page unlike the code in the question, how was anyone supposed to deduce that you wanted an extra cell with some text that doesn't appear anywhere in the question? I still have no idea where you want that text to appear. I suggest that you take the image from my answer and edit it in a bitmap editor and just add the text you want at the right place. that way we might have a clue, and can update the code to match. –  David Carlisle May 9 '12 at 23:07
    
Also do you want the numbers set flush left or do you want them aligned on the decimal point? –  David Carlisle May 9 '12 at 23:09
    
I don't know the difference betewen them but if it is necessary I want in the center of cell –  boutheina May 9 '12 at 23:12
    
I edit the image I hope that you can understand me now. –  boutheina May 9 '12 at 23:15
show 7 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.