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/16 07:58] – 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: | ||
| - | \question{Comment diviser une cellule par une diagonale~?} %7.13 | + | ====== |
| - | \reponse Le package \pack{slashbox} disponible sur \CTAN fournit la commande | + | ===== Avec l'extension “diagbox” ===== |
| - | \cmd{backslashbox}, | + | |
| - | en deux, par un trait diagonal du coin supérieur gauche vers le coin | + | |
| - | inférieur droit, place son premier argument \emph{sous} ce trait et son | + | |
| - | deuxième argument \emph{au-dessus} du trait. Si la première ligne est trop | + | |
| - | haute, \pack{slashbox} n' | + | |
| - | gauche, il s' | + | |
| - | l'exemple~\vref{exslashbox}. | + | |
| - | \begin{exemple}{Le package | + | L' |
| - | \begin{center} | + | |
| + | <WRAP column 42ex> | ||
| + | <code latex> | ||
| + | \documentclass{article} | ||
| + | | ||
| + | |||
| + | \begin{document} | ||
| \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 column 40ex> | ||
| + | < | ||
| + | \documentclass{article} | ||
| + | \usepackage{diagbox} | ||
| + | \pagestyle{empty} | ||
| + | |||
| + | \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 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\' | + | \\ \hline |
| - | | + | Nico |
| - | | + | Hélène |
| - | Nico & 1 & 1 & 1 & 24 & 1 & 1 \\ \hline | + | Tof & |
| - | H\' | + | Xav & 1 & |
| - | Tof & & 1 & 1 & 15 & | + | |
| - | Xav & 1 & & | + | |
| \end{tabular} | \end{tabular} | ||
| - | \end{center} | + | \end{document} |
| - | \end{exemple} | + | </ |
| + | </ | ||
| + | <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> | ||
| - | \endinput | + | {{htmlmetatags> |
| + | metatag-og: | ||
| + | metatag-og: | ||
| + | }} | ||

