diff options
author | Norbert Preining <norbert@preining.info> | 2023-11-04 03:02:41 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-11-04 03:02:41 +0000 |
commit | 85065bdead032a07c9a7b37784d07bced1f9d9c1 (patch) | |
tree | c8bb68803a33de87093e437b7b90cb1f329f6653 /info/formation-latex-ul/doc/exercice-subcaption.tex | |
parent | 1e464deefd235880a2fac2390e896bfd2b523151 (diff) |
CTAN sync 202311040302
Diffstat (limited to 'info/formation-latex-ul/doc/exercice-subcaption.tex')
-rw-r--r-- | info/formation-latex-ul/doc/exercice-subcaption.tex | 52 |
1 files changed, 52 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..8a75780857 --- /dev/null +++ b/info/formation-latex-ul/doc/exercice-subcaption.tex @@ -0,0 +1,52 @@ +\documentclass[11pt,article,french]{memoir} + %% ===== Ne rien modifier dans ce bloc ===================== + \usepackage{iftex} % détection du moteur utilisé + \iftutex % XeLaTeX + \usepackage{fontspec} + \else % pdfLaTeX + \usepackage[utf8]{inputenc} + \usepackage[T1]{fontenc} + \fi + %% ========================================================= + \usepackage{babel} + \usepackage[autolanguage]{numprint} + \usepackage{icomma} % charger vers la fin + + %% 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} |