summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/formation-latex-ul/tableaux-diapos.tex
blob: c84e6dd33b27492facf45808d3646750fe66104d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
%%% Copyright (C) 2015-2023 Vincent Goulet
%%%
%%% Ce fichier fait partie du projet
%%% «Rédaction avec LaTeX»
%%% https://gitlab.com/vigou3/formation-latex-ul
%%%
%%% Cette création est mise à disposition sous licence
%%% Attribution-Partage dans les mêmes conditions 4.0
%%% International de Creative Commons.
%%% https://creativecommons.org/licenses/by-sa/4.0/

\section{Tableaux}

\begin{frame}
  \frametitle{De la conception de beaux tableaux}

  Lequel de ces deux tableaux est le plus facile à consulter?
  \begin{center}
  \hfill
  \begin{tabular}{|>{$}c<{$}|>{$}r<{$}|>{$}r<{$}|}
    \hline\hline
    i &
    \multicolumn{1}{c|}{$v$} &
    \multicolumn{1}{c|}{$b_i$} \\
    \hline
    0 & \nombre{91492} &  60 \\
    \hline
    1 &  \nombre{1524} &  60 \\
    \hline
    2 &            25  &  24 \\
    \hline
    3 &             1  & 365 \\
    \hline\hline
  \end{tabular}
  \hfill
  \begin{tabular}{>{$}c<{$}>{$}r<{$}>{$}r<{$}}
    \toprule
    i &
    \multicolumn{1}{c}{$v$} &
    \multicolumn{1}{c}{$b_i$} \\
    \midrule
    0 & \nombre{91492} &  60 \\
    1 &  \nombre{1524} &  60 \\
    2 &            25  &  24 \\
    3 &             1  & 365 \\
    \bottomrule
  \end{tabular}
  \hspace*{\fill}
  \end{center}

  \pause
  Deux règles d'or:
  \begin{enumerate}
  \item \alert{jamais} de filets verticaux
  \item pas de filets doubles
  \end{enumerate}
\end{frame}

\begin{frame}[fragile=singleslide]
  \frametitle{Paquetage essentiel}

  \begin{itemize}
  \item Vous voulez utiliser le paquetage \pkg{booktabs}
\begin{lstlisting}
\usepackage{booktabs}
\end{lstlisting}
  \item Fonctionnalités intégrées dans la classe \class{memoir}
  \end{itemize}
\end{frame}

\begin{frame}[fragile=singleslide]
  \frametitle{Exemple de tableau}

  \begin{center}
    \begin{tabular}{lcrr}
      \toprule
      Produit & Quantité & Prix unitaire (\$) & Prix (\$) \\
      \midrule
      Vis à bois    & 2 & 9,90 & 19,80 \\
      Clous vrillés & 5 & 4,35 & 21,75 \\
      \midrule
      TOTAL         & 7 &      & 41,55 \\
      \bottomrule
    \end{tabular}
  \end{center}

\begin{lstlisting}
\begin{tabular}{lcrr}
  \toprule
  Produit & Quantité & Prix unitaire (\$) & Prix (\$) \\
  \midrule
  Vis à bois    & 2 & 9,90 & 19,80 \\
  Clous vrillés & 5 & 4,35 & 21,75 \\
  \midrule
  TOTAL         & 7 &      & 41,55 \\
  \bottomrule
\end{tabular}
\end{lstlisting}
\end{frame}

%%% Local Variables:
%%% TeX-master: "formation-latex-ul-diapos"
%%% TeX-engine: xetex
%%% coding: utf-8
%%% End: