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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

&\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 }\\
& \bf AS& \bf A\& A & \bf Pub& \bf AS& \bf A\& A & \bf Pub & \bf AS & \bf A\& A & \bf Pub \\

\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\\
\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\\



\bf{\caption{Partager Publication dans le réseau 1}}
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
up vote 5 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



\noindent X\dotfill X


\multicolumn{2}{l|}{}&\multicolumn{3}{|c|} { $N_{min}$ Amis }& \multicolumn{3}{c|} { $N_{moy}$ Amis  }& \multicolumn{3}{c|} { $N_{max}$ Amis }\\ 
\multicolumn{2}{l|}{}&  AS&  A\&A &  Pub&  AS&  A\&A &  Pub &  AS &  A\&A &  Pub \\
\raisebox{-5pt}{xxx}&$N_{moy}$ Amis & 25.66&  26.66&  27& 33&  33&  33&  39.66&  39.66&  39.5\\
 &Moy Pages cibles & 25.66&  62&  100&  33&  71.33&  100&  39.66&  80.33&  100\\

\noindent X\dotfill X

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
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

Your Answer


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.