Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 4

29 Oct '15, 11:03

pluton's gravatar image

pluton
1.2k22937

Une manière d'obtenir ce que vous souhaitez, c'est d'intégrer des tableaux dans un tableau comme suit : \documentclass{book} \begin{document} \begin{tabular}{ccc}\hline \begin{tabular}{c} A \\ A \\ A \end{tabular} & \begin{tabular}{c} B \\ B \end{tabular} & \begin{tabular}{c} C\end{tabular}\\ \hline \end{tabular} \end{document} Voici le résultat : ![alt text][1] Quand le contenu des cellules est plus compliqué et que l'on souhaite un alignement approprié, une solution est d'éliminer l'espacement horizontal par défaut dans l'environnement `tabular`. `tabular`, grâce à `\setlength{\tabcolsep}{0pt}`. \documentclass{book} \begin{document} \setlength{\tabcolsep}{0pt} \begin{tabular}{|l|l|c|l|l|} AAAAAAAAA & \makebox[1cm]{} & B &\makebox[1cm]{}& CCCCCC\\ \hline \setlength{\tabcolsep}{0pt}% \begin{tabular}{|l|} A \\ A \\ A \end{tabular} && \begin{tabular}{|l|} B \\ B \end{tabular} && \begin{tabular}{|l|} C\end{tabular}\\ \hline A && BBBBBBBBBBB && C\\ \end{tabular} \end{document} pour le résultat suivant : ![alt text][2] [1]: http://texnique.fr:80/osqa/upfiles/tableau.png [2]: http://texnique.fr:80/osqa/upfiles/tableau2.png
cliquez ici pour masquer/afficher la révision 3
Ajout espacement nul

29 Oct '15, 11:01

pluton's gravatar image

pluton
1.2k22937

Une manière d'obtenir ce que vous souhaitez, c'est d'intégrer des tableaux dans un tableau comme suit : \documentclass{book} \begin{document} \begin{tabular}{ccc}\hline \begin{tabular}{c} A \\ A \\ A \end{tabular} & \begin{tabular}{c} B \\ B \end{tabular} & \begin{tabular}{c} C\end{tabular}\\ \hline \end{tabular} \end{document} Voici le résultat : ![alt text][1] Quand le contenu des cellules est plus compliqué et que l'on souhaite un alignement approprié, une solution est d'éliminer l'espacement horizontal par défaut dans l'environnement `tabular`. \documentclass{book} \begin{document} \setlength{\tabcolsep}{0pt} \begin{tabular}{|l|l|c|l|l|} AAAAAAAAA & \makebox[1cm]{} & B &\makebox[1cm]{}& CCCCCC\\ \hline \setlength{\tabcolsep}{0pt}% \begin{tabular}{|l|} A \\ A \\ A \end{tabular} && \begin{tabular}{|l|} B \\ B \end{tabular} && \begin{tabular}{|l|} C\end{tabular}\\ \hline A && BBBBBBBBBBB && C\\ \end{tabular} \end{document} pour le résultat suivant : ![alt text][2] [1]: http://texnique.fr:80/osqa/upfiles/tableau.pnghttp://texnique.fr:80/osqa/upfiles/tableau.png [2]: http://texnique.fr:80/osqa/upfiles/tableau2.png
cliquez ici pour masquer/afficher la révision 2
ajout d'une figure

29 Oct '15, 02:12

pluton's gravatar image

pluton
1.2k22937

cliquez ici pour masquer/afficher la révision 1

29 Oct '15, 02:11

pluton's gravatar image

pluton
1.2k22937