summaryrefslogtreecommitdiff
path: root/info/formation-latex-ul/source/tableaux-diapos.tex
diff options
context:
space:
mode:
Diffstat (limited to 'info/formation-latex-ul/source/tableaux-diapos.tex')
-rw-r--r--info/formation-latex-ul/source/tableaux-diapos.tex105
1 files changed, 105 insertions, 0 deletions
diff --git a/info/formation-latex-ul/source/tableaux-diapos.tex b/info/formation-latex-ul/source/tableaux-diapos.tex
new file mode 100644
index 0000000000..03bc0c78d4
--- /dev/null
+++ b/info/formation-latex-ul/source/tableaux-diapos.tex
@@ -0,0 +1,105 @@
+%%% Copyright (C) 2018 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: