tableau — Les-mathematiques.net The most powerful custom community solution in the world

tableau

Bonjour,
j'ai le tableau ci-dessous que je souhaite inclure dans un fichier .tex, et le problème est que ça ne compile pas. Qu'est-ce qu'il faut ajouter au préambule pour que ça compile ? S'il vous plaît.
Je vous remercie par avance.
\begin{table}
\tablewidth=9.0cm
\centering
\caption{Equivalent permeability values computed for the periodic
homogenization method using the conformal finite element method on 5x5
blocks of cells in the heterogeneous field. The values for the tensor are $%
K_{xx}$, $K_{xy}=K_{yx}$, and $K_{yy}$, from top to bottom, respectively for
the appropriate cell.}
\label{tab3}
\tabcolsep=.2cm
\begin{tabular}{rrrrrrr}
\hline
%& 1 & 2 & 3 & 4 & 5 & 6\\ 
%\hline
%$6$ &
\begin{tabular}{c}
10.0000 \\ 
0.0000 \\ 
10.0000
\end{tabular}
& 
\begin{tabular}{c}
6.1073 \\ 
-0.0001 \\ 
7.2762
\end{tabular}
& 
\begin{tabular}{c}
0.1753 \\ 
0.0110 \\ 
0.1391
\end{tabular}
& 
\begin{tabular}{c}
0.1000 \\ 
0.0000 \\ 
0.1000
\end{tabular}
& 
\begin{tabular}{c}
0.4497 \\ 
-0.0416 \\ 
0.4496
\end{tabular}
& 
\begin{tabular}{c}
3.4402 \\ 
0.0000 \\ 
7.4172
\end{tabular}
\\ \hline
%$5$ & 
\begin{tabular}{c}
3.8292 \\ 
0.1912 \\ 
2.7202
\end{tabular}
& 
\begin{tabular}{c}
5.8735 \\ 
0.3386 \\ 
7.8420
\end{tabular}
& 
\begin{tabular}{c}
0.1000 \\ 
0.0000 \\ 
0.1000
\end{tabular}
& 
\begin{tabular}{c}
0.1000 \\ 
0.0000 \\ 
0.1000
\end{tabular}
& 
\begin{tabular}{c}
0.1092 \\ 
0.0000 \\ 
0.1092
\end{tabular}
& 
\begin{tabular}{c}
4.7480 \\ 
0.1795 \\ 
6.9637
\end{tabular}
\\ \hline
%$4$ & 
\begin{tabular}{c}
1.0000 \\ 
0.0000 \\ 
1.0000
\end{tabular}
& 
\begin{tabular}{c}
2.5889 \\ 
-0.0787 \\ 
5.7037
\end{tabular}
& 
\begin{tabular}{c}
0.2432 \\ 
-0.0101 \\ 
2.3542
\end{tabular}
& 
\begin{tabular}{c}
0.1000 \\ 
0.0000 \\ 
0.1000
\end{tabular}
& 
\begin{tabular}{c}
0.2015 \\ 
0.0120 \\ 
3.0033
\end{tabular}
& 
\begin{tabular}{c}
0.2179 \\ 
0.0001 \\ 
4.3325
\end{tabular}
\\ \hline
%$3$ & 
\begin{tabular}{c}
1.0000 \\ 
0.0000 \\ 
1.0000
\end{tabular}
& 
\begin{tabular}{c}
0.6353 \\ 
0.0064 \\ 
2.5881
\end{tabular}
& 
\begin{tabular}{c}
5.2078 \\ 
-0.2286 \\ 
7.1734
\end{tabular}
& 
\begin{tabular}{c}
0.2080 \\ 
-0.0032 \\ 
0.2126
\end{tabular}
& 
\begin{tabular}{c}
5.8155 \\ 
0.4584 \\ 
7.2970
\end{tabular}
& 
\begin{tabular}{c}
0.1230 \\ 
0.0000 \\ 
0.2463
\end{tabular}
\\ \hline
%$2$ & 
\begin{tabular}{c}
0.9347 \\ 
0.0000 \\ 
0.9346
\end{tabular}
& 
\begin{tabular}{c}
0.2081 \\ 
0.0140 \\ 
0.2735
\end{tabular}
& 
\begin{tabular}{c}
8.3336 \\ 
0.0000 \\ 
8.9698
\end{tabular}
& 
\begin{tabular}{c}
10.0000 \\ 
0.0000 \\ 
10.0000
\end{tabular}
& 
\begin{tabular}{c}
5.8156 \\ 
0.4585 \\ 
7.2969
\end{tabular}
& 
\begin{tabular}{c}
0.1000 \\ 
0.0000 \\ 
0.1000
\end{tabular}
\\ \hline
%$1$ & 
\begin{tabular}{c}
0.2060 \\ 
0.0047 \\ 
0.1466
\end{tabular}
& 
\begin{tabular}{c}
0.7137 \\ 
0.0000 \\ 
0.8640
\end{tabular}
& 
\begin{tabular}{c}
2.5058 \\ 
-0.0754 \\ 
5.3132
\end{tabular}
& 
\begin{tabular}{c}
10.0000 \\ 
0.0000 \\ 
10.0000
\end{tabular}
& 
\begin{tabular}{c}
1.6822 \\ 
0.0479 \\ 
3.9697
\end{tabular}
& 
\begin{tabular}{c}
0.1597 \\ 
-0.0101 \\ 
0.1597
\end{tabular}
\\ \hline
\end{tabular}
\end{table}

Réponses

  • Bonjour,

    C'est visiblement l'instruction \tablewidth qui n'est pas comprise.
    En la supprimant, tout se passe très bien chez moi.

    Il faut peut-être charger un "package" qui la définit.
  • Quel est ce package qui la définit ? Je ne trouve rien à ce sujet sur le net.
  • Bonsoir,
    Pour fixer la largeur d'un tableau tu peux remplacer tabular par tabular* :
    \begin{tabular*}{9cm}{ccccccc}
    \hline
    & 1 & 2 & 3 & 4 & 5 & 6\\ 
    \hline
    \end{tabular*}
    
    Mais ceci est assez vain puisque l'obésité des éléments placés dans les cellules va dépasser les limites du tableau.
    J'avoue ne pas comprendre pourquoi tu te fatigues à placer des petits tableaux dans un grand, mais bien sûr cela ne me regarde pas. :-)
Connectez-vous ou Inscrivez-vous pour répondre.
Success message!