Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
composition:tableaux:changer_l_orientation_d_un_tableau [2002/09/07 11:36] – créée markey | 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\^ite, | + | |
- | \begin{noexemple} | + | La commande |
+ | |||
+ | <WRAP column 60ex> | ||
+ | <code latex> | ||
\rotatebox{90}{% | \rotatebox{90}{% | ||
\begin{tabular}{|c|c|} | \begin{tabular}{|c|c|} | ||
| | ||
salut & coucou \\ | salut & coucou \\ | ||
- | bonjour & hello | + | bonjour & hello\\ |
| | ||
\end{tabular}} | \end{tabular}} | ||
- | \end{noexemple} | + | </ |
+ | </ | ||
+ | <WRAP column 60ex> | ||
+ | < | ||
+ | \documentclass{article} | ||
+ | \usepackage{graphicx} | ||
+ | \pagestyle{empty} | ||
+ | \begin{document} | ||
+ | \rotatebox{90}{% | ||
+ | \begin{tabular}{|c|c|} | ||
+ | | ||
+ | salut & coucou \\ | ||
+ | bonjour & hello\\ | ||
+ | | ||
+ | \end{tabular}} | ||
+ | \end{document} | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP clear /> | ||
- | \reponse Le package \pack{lscape} permet de passer certaines pages en mode | + | ===== Avec l'extension “lscape” ===== |
- | << | + | |
- | compatible avec le pckage \pack{longtable}. | + | |
- | \reponse Le package \pack{rotating} | + | L' |
- | \env{sideways}, | + | |
- | : | + | |
- | \DeleteShortVerb{\|} | + | ===== Avec l' |
- | \begin{exemple}{Utilisation de \pack{rotating}} | + | |
+ | L' | ||
+ | |||
+ | <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\' | + | |
+ | \multicolumn{1}{c}{% | ||
+ | | ||
\hline | \hline | ||
0 & 3 \\ | 0 & 3 \\ | ||
Ligne 39: | Ligne 62: | ||
\end{tabular} | \end{tabular} | ||
\end{sideways} | \end{sideways} | ||
- | \end{exemple} | + | </ |
- | \MakeShortVerb{\|} | + | </ |
+ | |||
+ | <WRAP column 60ex> | ||
+ | < | ||
+ | \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} | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP clear /> | ||
+ | |||
+ | ===== Avec l' | ||
- | \reponse | + | Si le tableau est un [[3_composition/ |
- | faire tourner les flottants (et donc en particulier \' | + | |
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} |