Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| composition:tableaux:changer_l_orientation_d_un_tableau [2016/10/16 07:58] – jejust | 3_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' | + | ====== |
| - | \reponse | + | ===== Avec l' |
| - | faire tourner une boîte, donc en particulier un tableau. | + | |
| - | \begin{noexemple} | + | La commande |
| + | |||
| + | <WRAP column 60ex> | ||
| + | <code latex> | ||
| \rotatebox{90}{% | \rotatebox{90}{% | ||
| \begin{tabular}{|c|c|} | \begin{tabular}{|c|c|} | ||
| Ligne 11: | Ligne 14: | ||
| | | ||
| \end{tabular}} | \end{tabular}} | ||
| - | \end{noexemple} | + | </ |
| + | </ | ||
| - | \reponse Le package | + | <WRAP column 60ex> |
| - | «~paysage~». Il utilise la commande | + | < |
| - | compatible avec le package | + | \documentclass{article} |
| + | \usepackage{graphicx} | ||
| + | \pagestyle{empty} | ||
| + | \begin{document} | ||
| + | \rotatebox{90}{% | ||
| + | \begin{tabular}{|c|c|} | ||
| + | | ||
| + | salut & coucou \\ | ||
| + | bonjour & hello\\ | ||
| + | | ||
| + | \end{tabular}} | ||
| + | \end{document} | ||
| + | </ | ||
| - | \reponse Le package \pack{rotating} permet, grâce à l' | + | </ |
| - | \env{sideways}, de changer l' | + | <WRAP clear /> |
| - | tableau. Consultez~\ref{expl=Utilisation_rotating} pour un exemple rapide. | + | |
| + | ===== Avec l' | ||
| + | |||
| + | L' | ||
| + | |||
| + | ===== Avec l' | ||
| + | |||
| + | L' | ||
| + | |||
| + | <WRAP column 60ex> | ||
| + | <code latex> | ||
| + | \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} | ||
| + | </ | ||
| + | </ | ||
| - | % 1 | + | <WRAP column 60ex> |
| - | %23456789012345678901234567890123456789012345678901234567890 | + | < |
| - | \begin{exemple}{Utilisation de | + | \documentclass{article} |
| - | \pack{rotating}\label{expl=Utilisation_rotating}} | + | \usepackage{rotating} |
| + | \pagestyle{empty} | ||
| + | \begin{document} | ||
| \begin{sideways} | \begin{sideways} | ||
| \begin{tabular}{|c|c|} | \begin{tabular}{|c|c|} | ||
| Ligne 30: | Ligne 76: | ||
| \begin{turn}{60}Note\end{turn}} & | \begin{turn}{60}Note\end{turn}} & | ||
| \multicolumn{1}{c}{% | \multicolumn{1}{c}{% | ||
| - | \begin{turn}{60}Quantit\' | + | \begin{turn}{60}Quantité\end{turn}} \\ |
| \hline | \hline | ||
| 0 & 3 \\ | 0 & 3 \\ | ||
| Ligne 41: | Ligne 87: | ||
| \end{tabular} | \end{tabular} | ||
| \end{sideways} | \end{sideways} | ||
| - | \end{exemple} | + | \end{document} |
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| - | \reponse Si le tableau est un flottant, le package \pack{rotfloat} permet de | + | ===== Avec l' |
| - | faire tourner les flottants (et donc en particulier également la légende). | + | |
| - | \endinput | + | Si le tableau est un [[3_composition/ |
| + | {{htmlmetatags> | ||
| + | metatag-og: | ||
| + | metatag-og: | ||
| + | }} | ||

