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:cellules:diviser_une_cellule_en_diagonale [2016/10/20 20:46] – jejust | 3_composition:tableaux:cellules:diviser_une_cellule_en_diagonale [2021/11/27 14:08] (Version actuelle) – Correction de la mise en forme. yannick.tanguy | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Comment diviser une cellule par une diagonale~? ====== | + | ====== Comment diviser une cellule par une diagonale? ====== |
| + | ===== Avec l' | ||
| - | $\Reponse$ | + | L' |
| - | '' | + | |
| - | en deux, par un trait diagonal du coin supérieur gauche vers le coin | + | |
| - | inférieur droit, place son premier argument //sous// ce trait et son | + | |
| - | deuxième argument // | + | |
| - | haute, [[ctanpkg> | + | |
| - | gauche, il s' | + | |
| - | l'exemple~\vref{exslashbox}. | + | |
| + | <WRAP column 42ex> | ||
| + | <code latex> | ||
| + | \documentclass{article} | ||
| + | \usepackage{diagbox} | ||
| - | Le package [[ctanpkg> | + | \begin{document} |
| + | \begin{tabular}{|l|c|c|c|c|c|c|} | ||
| + | \hline | ||
| + | \diagbox{qui}{quoi} & | ||
| + | | ||
| + | \hline | ||
| + | Nico & 1 & 1 & 1 \\ \hline | ||
| + | Hélène & & | ||
| + | Tof & & 1 & 1 \\ \hline | ||
| + | Xav & 1 & & | ||
| + | \end{tabular} | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP column 40ex> | ||
| + | < | ||
| + | \documentclass{article} | ||
| + | \usepackage{diagbox} | ||
| + | | ||
| - | <code latex> | + | \begin{document} |
| - | \begin{center} | + | |
| \begin{tabular}{|l|c|c|c|c|c|c|} | \begin{tabular}{|l|c|c|c|c|c|c|} | ||
| \hline | \hline | ||
| - | \backslashbox{qui}{quoi} & | + | \diagbox{qui}{quoi} & |
| + | | ||
| + | \hline | ||
| + | Nico & 1 & 1 & 1 \\ \hline | ||
| + | Hélène & & | ||
| + | Tof & & 1 & 1 \\ \hline | ||
| + | Xav & 1 & & | ||
| + | \end{tabular} | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| + | |||
| + | Si la première ligne est trop haute, [[ctanpkg> | ||
| + | <WRAP clear /> | ||
| + | |||
| + | <WRAP column 45ex> | ||
| + | <code latex> | ||
| + | \documentclass{article} | ||
| + | \usepackage{diagbox} | ||
| + | \usepackage{rotating} | ||
| + | |||
| + | \begin{document} | ||
| + | \begin{tabular}{|l|c|c|c|} | ||
| + | \hline | ||
| + | \diagbox{qui}{quoi} & | ||
| | | ||
| | | ||
| - | | + | |
| - | \begin{turn}{90}dégaines\end{turn} & | + | \\ \hline |
| - | | + | Nico |
| - | | + | Hélène & |
| - | Nico & 1 & 1 & 1 & 24 & 1 & 1 \\ \hline | + | Tof & |
| - | Hélène & & & 1 & 10 & 1 & 1 \\ \hline | + | Xav & 1 & |
| - | Tof & & 1 & 1 & 15 & | + | |
| - | Xav & 1 & & | + | |
| \end{tabular} | \end{tabular} | ||
| - | \end{center} | + | \end{document} |
| </ | </ | ||
| + | </ | ||
| + | <WRAP column 40ex> | ||
| + | < | ||
| + | \documentclass{article} | ||
| + | \usepackage{diagbox} | ||
| + | \usepackage{rotating} | ||
| + | \pagestyle{empty} | ||
| + | |||
| + | \begin{document} | ||
| + | \begin{tabular}{|l|c|c|c|} | ||
| + | \hline | ||
| + | \diagbox{qui}{quoi} & | ||
| + | | ||
| + | | ||
| + | | ||
| + | \\ \hline | ||
| + | Nico & 1 & 1 & 1 \\ \hline | ||
| + | Hélène & & | ||
| + | Tof & & 1 & 1 \\ \hline | ||
| + | Xav & 1 & & | ||
| + | \end{tabular} | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| + | |||
| + | Il est également possible de passer trois argument à '' | ||
| + | |||
| + | <WRAP column 45ex> | ||
| + | <code latex> | ||
| + | \begin{tabular}{|l|c|c|c|} | ||
| + | \hline | ||
| + | \diagbox{heure}{Bureau 1}{jour} & | ||
| + | Lundi & Mardi & Mercredi \\ | ||
| + | \hline | ||
| + | 9h -- 12h & occupé & occupé & \\ | ||
| + | \hline | ||
| + | 14h -- 17h & & occupé & occupé \\ | ||
| + | \hline | ||
| + | \end{tabular} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP column 40ex> | ||
| + | < | ||
| + | \documentclass{article} | ||
| + | \usepackage{diagbox} | ||
| + | \pagestyle{empty} | ||
| + | |||
| + | \begin{document} | ||
| + | \begin{tabular}{|l|c|c|c|} | ||
| + | \hline | ||
| + | \diagbox{heure}{Bureau 1}{jour} & | ||
| + | Lundi & Mardi & Mercredi \\ \hline | ||
| + | 9h -- 12h & occupé & occupé & \\ \hline | ||
| + | 14h -- 17h & & occupé & occupé \\ \hline | ||
| + | \end{tabular} | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| + | |||
| + | ===== Extension “slashbox” ===== | ||
| + | |||
| + | :!: // | ||
| + | |||
| + | L' | ||
| + | L' | ||
| + | ----- | ||
| + | //Source:// [[faquk> | ||
| + | {{htmlmetatags> | ||
| + | metatag-og: | ||
| + | metatag-og: | ||
| + | }} | ||

