Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
composition:tableaux:changer_l_orientation_d_un_tableau [2002/09/07 11:36] – créée markey3_composition:tableaux:changer_l_orientation_d_un_tableau [2021/11/28 15:07] (Version actuelle) – Correction de la mise en forme. Ajout des exemples compilés. yannick.tanguy
Ligne 1: Ligne 1:
-\question{Comment modifier l'orientation d'un tableau ?} %7.3+====== Comment modifier l'orientation d'un tableau? ======
  
-\reponse La commande \cmd{rotatebox} du package \pack{graphics} permet de +===== Avec l'extension “graphicx” ===== 
-faire tourner une bo\^ite, donc en particulier un tableau + 
-\begin{noexemple}+La commande ''\rotatebox'' de l'extension [[ctanpkg>graphicx]] permet de faire tourner une boîte et doncen particulierun tableau : 
 + 
 +<WRAP column 60ex> 
 +<code latex>
 \rotatebox{90}{% \rotatebox{90}{%
 \begin{tabular}{|c|c|} \begin{tabular}{|c|c|}
    \hline    \hline
     salut & coucou \\     salut & coucou \\
-    bonjour & hello+    bonjour & hello\\
    \hline    \hline
 \end{tabular}} \end{tabular}}
-\end{noexemple}+</code> 
 +</WRAP>
  
 +<WRAP column 60ex>
 +<latexdoc>
 +\documentclass{article}
 +\usepackage{graphicx}
 +\pagestyle{empty}
 +\begin{document}
 +\rotatebox{90}{%
 +\begin{tabular}{|c|c|}
 +   \hline
 +    salut & coucou \\
 +    bonjour & hello\\
 +   \hline
 +\end{tabular}}
 +\end{document}
 +</latexdoc>
  
 +</WRAP>
 +<WRAP clear />
  
-\reponse Le package \pack{lscape} permet de passer certaines pages en mode +===== Avec l'extension “lscape” =====
-<<~paysage~>>. Il utilise la commande \cmd{rotatebox} \'egalement. Il est +
-compatible avec le pckage \pack{longtable}.+
  
-\reponse Le package \pack{rotating} permet, grace \`a l'environnement +L'extension [[ctanpkg>lscape]] permet de passer certaines pages en mode « paysage ». Elle utilise la commande ''\rotatebox'' et est compatible avec l'extension [[ctanpkg>longtable]] (voir la question [[3_composition/tableaux/tableau_sur_plusieurs_pages|Comment composer un tableau s'étendant sur plus d'une page ?]]).
-\env{sideways}, de changer l'orientation d'un tableau. Voici un exemple rapide +
-+
  
-\DeleteShortVerb{\|} +===== Avec l'extension “rotating” ===== 
-\begin{exemple}{Utilisation de \pack{rotating}}+ 
 +L'extension [[ctanpkg>rotating]] permet, grâce à l'environnement ''sideways'', de changer l'orientation d'un tableau : 
 + 
 +<WRAP column 60ex> 
 +<code latex>
 \begin{sideways} \begin{sideways}
 \begin{tabular}{|c|c|} \begin{tabular}{|c|c|}
-\multicolumn{1}{c}{\begin{turn}{60}Note\end{turn}} & +\multicolumn{1}{c}{
-\multicolumn{1}{c}{\begin{turn}{60}Quantit\'e\end{turn}} \\+    \begin{turn}{60}Note\end{turn}} & 
 +\multicolumn{1}{c}{
 +    \begin{turn}{60}Quantité\end{turn}} \\
 \hline \hline
 0 & 3 \\ 0 & 3 \\
Ligne 39: Ligne 62:
 \end{tabular} \end{tabular}
 \end{sideways} \end{sideways}
-\end{exemple+</code> 
-\MakeShortVerb{\|}+</WRAP> 
 + 
 +<WRAP column 60ex> 
 +<latexdoc> 
 +\documentclass{article
 +\usepackage{rotating} 
 +\pagestyle{empty} 
 +\begin{document} 
 +\begin{sideways} 
 +\begin{tabular}{|c|c|} 
 +\multicolumn{1}{c}{% 
 +    \begin{turn}{60}Note\end{turn}} & 
 +\multicolumn{1}{c}{% 
 +    \begin{turn}{60}Quantité\end{turn}} \\ 
 +\hline 
 +0 & 3 \\ 
 +1 & 4 \\ 
 +2 & 11 \\ 
 +3 & 15 \\ 
 +4 & 23 \\ 
 +5 & 36 \\ 
 +\hline 
 +\end{tabular} 
 +\end{sideways} 
 +\end{document} 
 +</latexdoc> 
 +</WRAP> 
 +<WRAP clear /> 
 + 
 +===== Avec l'extension “rotfloat” =====
  
-\reponse Si le tableau est un flottant, le package \pack{rotfloatpermet de +Si le tableau est un [[3_composition/flottants/start|flottant]]l'extension [[ctanpkg>rotfloat]] permet de faire tourner les flottants (légende comprise). 
-faire tourner les flottants (et donc en particulier \'egalement la l\'egende). +
  
 +{{htmlmetatags>metatag-keywords=(LaTeX,flottants, tableaux,tourner,pivoter,rotation,paysage)
 +metatag-og:title=(Comment modifier l'orientation d'un tableau)
 +metatag-og:site_name=(FAQ LaTeX francophone)
 +}}
3_composition/tableaux/changer_l_orientation_d_un_tableau.1031398580.txt.gz · Dernière modification : 2002/09/07 11:36 de markey
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0