summaryrefslogtreecommitdiff
path: root/info/formation-latex-ul/doc/exercice_subcaption.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/formation-latex-ul/doc/exercice_subcaption.tex
Initial commit
Diffstat (limited to 'info/formation-latex-ul/doc/exercice_subcaption.tex')
-rw-r--r--info/formation-latex-ul/doc/exercice_subcaption.tex47
1 files changed, 47 insertions, 0 deletions
diff --git a/info/formation-latex-ul/doc/exercice_subcaption.tex b/info/formation-latex-ul/doc/exercice_subcaption.tex
new file mode 100644
index 0000000000..5f355bbfb1
--- /dev/null
+++ b/info/formation-latex-ul/doc/exercice_subcaption.tex
@@ -0,0 +1,47 @@
+\documentclass[11pt,article,french]{memoir}
+ \usepackage{babel}
+ \usepackage[autolanguage]{numprint}
+ %% Activer les lignes appropriées selon le moteur utilisé
+ \usepackage[utf8]{inputenc} % LaTeX
+ \usepackage[T1]{fontenc} % LaTeX
+ % \usepackage{fontspec} % XeLaTeX
+ \usepackage{icomma} % virgule intelligente en mathématiques
+
+ %% Sous-légendes dans les environnements 'table'
+ \newsubfloat{table}
+
+\begin{document}
+
+\begin{table}
+ \caption{Conversion du nombre décimal $23,31$ en binaire.}
+ \begin{minipage}[t]{0.45\linewidth}
+ \begin{tabular*}{\linewidth}{crrcc}
+ \toprule
+ $i$ & \multicolumn{1}{c}{$v$} & $\lfloor v/2 \rfloor$ & $v \bmod 2$ & $x_i$ \\
+ \midrule
+ $0$ & $23$ & $11$ & $1$ & $1$ \\
+ $1$ & $11$ & $5$ & $1$ & $1$ \\
+ $2$ & $5$ & $2$ & $1$ & $1$ \\
+ $3$ & $2$ & $1$ & $0$ & $0$ \\
+ $4$ & $1$ & $0$ & $1$ & $1$ \\
+ \bottomrule
+ \end{tabular*}
+ \end{minipage}
+ \hfill
+ \begin{minipage}[t]{0.45\linewidth}
+ \begin{tabular*}{\linewidth}{ccccc}
+ \toprule
+ $i$ & $v$ & $2v$ & $\lfloor 2v \rfloor$ & $x_{-i}$ \\
+ \midrule
+ $1$ & $0,31$ & $0,62$ & $0$ & $0$ \\
+ $2$ & $0,62$ & $1,24$ & $1$ & $1$ \\
+ $3$ & $0,24$ & $0,48$ & $0$ & $0$ \\
+ $4$ & $0,48$ & $0,96$ & $0$ & $0$ \\
+ $5$ & $0,96$ & $1,92$ & $1$ & $1$ \\
+ \bottomrule
+ \end{tabular*}
+ \end{minipage}
+\end{table}
+
+
+\end{document}